Bug 1086220 - phpmyadmin can't be accessed via browser for php-5.4 and zend-6.1 due to " Unable to load dynamic library /usr/lib64/php/modules/*.so"
Summary: phpmyadmin can't be accessed via browser for php-5.4 and zend-6.1 due to " Un...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-10 11:46 UTC by Lei Zhang
Modified: 2015-05-15 00:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-15 15:28:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Zend phpmyadmin.log (2.92 KB, text/plain)
2014-04-10 11:47 UTC, Lei Zhang
no flags Details
Php-5.3 phpmyadmin.log (3.00 KB, text/plain)
2014-04-10 11:48 UTC, Lei Zhang
no flags Details
yum list (61.08 KB, text/plain)
2014-04-14 08:20 UTC, Lei Zhang
no flags Details

Description Lei Zhang 2014-04-10 11:46:43 UTC
Description of problem:
Create php/zend app(e.g., myphp), add mysql and myphpadmin cartridge, access https://$appname-$domainname.dev.rhcloud.com/phpmyadmin/, no content returns, check app-root/logs/phpmyadmin.log in rhcsh, found Unable to load dynamic library /usr/lib64/php/modules/exif.so


[myphp-rayzhang.dev.rhcloud.com 534676d9b9679d6d240004c4]\> cat ./app-root/logs/phpmyadmin.log
[Thu Apr 10 06:48:30 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c0,c1009
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ldap.so' - /usr/lib64/php/modules/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ldap.so' - /usr/lib64/php/modules/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd.so' - /usr/lib64/php/modules/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 10 06:48:57 2014] [error] [client 127.1.248.131] PHP Fatal error:  Call to undefined function PMA_DBI_num_rows() in /usr/share/phpMyAdmin/libraries/navigation/Nodes/Node.class.php on line 408
66.187.233.202 - - [10/Apr/2014:06:48:57 -0400] "GET /phpmyadmin/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130104 Firefox/10.0.12"
[Thu Apr 10 06:50:42 2014] [error] [client 127.1.248.131] PHP Fatal error:  Call to undefined function PMA_DBI_num_rows() in /usr/share/phpMyAdmin/libraries/navigation/Nodes/Node.class.php on line 408


For zend app, when accessing https://$appname-$domainname.dev.rhcloud.com/phpmyadmin/, "phpMyAdmin - Error The json extension is missing. Please check your PHP configuration." returns, checking phpmyadmin.log:

[myzend61-rayzhang.dev.rhcloud.com 534675d9b9679d6d240004a4]\> cat ./app-root/logs/phpmyadmin.log
[Thu Apr 10 06:44:51 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c0,c1008
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/bz2.so' - /usr/lib64/php/modules/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0


Version-Release number of selected component (if applicable):
devenv_4649

How reproducible:
always

Steps to Reproduce:
1.create php/zend app embedded with mysql and phpmyadmin
#rhc app create myphp php-5.3 mysql-5.5 phpmyadmin-4
2.access phpmyadmin page from browser
3.

Actual results:
phpmyadmin can't be accessed from browser due to " Unable to load dynamic library /usr/lib64/php/modules/*.so"

Expected results:
phpmyadmin can be accessed successfully

Additional info:

Comment 1 Lei Zhang 2014-04-10 11:47:27 UTC
Created attachment 884910 [details]
Zend phpmyadmin.log

Comment 2 Lei Zhang 2014-04-10 11:48:23 UTC
Created attachment 884911 [details]
Php-5.3  phpmyadmin.log

Comment 3 Vojtech Vitek 2014-04-10 22:00:10 UTC
I can't reproduce the issue.

My steps:
1.
> rhc app-create p php-5.3 mysql-5.1 phpmyadmin --no-git
2.
> rhc app-show p
3. Access <app-url>/phpmyadmin/, fill-in credentials from 2.

=> PHPMyAdmin works

4.
> rhc ssh p "cat app-root/logs/phpmyadmin.log"

No warning. No error.


@Lei, can you please provide specific steps to reproduce this issue?

Comment 5 Lei Zhang 2014-04-10 22:54:22 UTC
Hi, it can be reproduced on PHP-5.4 and zend-6.1, not on PHP-5.3

Comment 6 Lei Zhang 2014-04-14 08:20:08 UTC
On devenv_4668, this bug still can be reproduced for php-5.4 and zend-6.1, For the output of command you mentioned, I attach the file(listfile.txt), pls have a look.

Comment 7 Lei Zhang 2014-04-14 08:20:39 UTC
Created attachment 886049 [details]
yum list

Comment 8 Vojtech Vitek 2014-04-14 17:34:20 UTC
https://github.com/openshift/origin-server/pull/5258

Comment 9 openshift-github-bot 2014-04-14 22:44:40 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/d01ee0409a35dc7dc85b48a7fbae220717c811cf
fix phpmyadmin PHP_INI_SCAN_DIR bug

PHPMyAdmin runs on PHP 5.3, even if it's attached to PHP 5.4 or Zend Server.

Bug 1086220 - https://bugzilla.redhat.com/show_bug.cgi?id=1086220

Comment 10 Lei Zhang 2014-04-16 01:45:09 UTC
Verified on INT(devenv_4681), https://$appname-$domainname.int.rhcloud.com/phpmyadmin can be accessed, no Warning info shows in app-root/logs/phpmyadmin.log.

[rayzhang@ray Work]$ rhc app create myphp54 php-5.4 mysql-5.5 phpmyadmin-4
Application Options
-------------------
Domain:     truhnq
Cartridges: php-5.4, mysql-5.5, phpmyadmin-4
Gear Size:  default
Scaling:    no

Creating application 'myphp54' ... done

  MySQL 5.5 database added.  Please make note of these credentials:

       Root User: admindkkC744
   Root Password: KUPLfBImi_Ej
   Database Name: myphp54

Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/

You can manage your new MySQL database by also embedding phpmyadmin.
The phpmyadmin username and password will be the same as the MySQL credentials above.

Please make note of these MySQL credentials again:
  Root User: admindkkC744
  Root Password: KUPLfBImi_Ej
URL: https://myphp54-truhnq.int.rhcloud.com/phpmyadmin/

Waiting for your DNS name to be available ... done

[rayzhang@ray Work]$ rhc app ssh myphp54 "grep Warning app-root/logs/phpmyadmin.log"
[rayzhang@ray Work]$ 

[rayzhang@ray Work]$ rhc app create myzend61 zend-6.1 mysql-5.5 phpmyadmin-4
Application Options
-------------------
Domain:     truhnq
Cartridges: zend-6.1, mysql-5.5, phpmyadmin-4
Gear Size:  default
Scaling:    no

Creating application 'myzend61' ... done

  Note: You should set password for the Zend Server Console at: https://myzend61-truhnq.int.rhcloud.com/ZendServer

MySQL 5.5 database added.  Please make note of these credentials:

       Root User: adminyDvaGHI
   Root Password: cJUvtDcDHUnd
   Database Name: myzend61

Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/

You can manage your new MySQL database by also embedding phpmyadmin.
The phpmyadmin username and password will be the same as the MySQL credentials above.

Please make note of these MySQL credentials again:
  Root User: adminyDvaGHI
  Root Password: cJUvtDcDHUnd
URL: https://myzend61-truhnq.int.rhcloud.com/phpmyadmin/
Zend Server 6 started successfully

Waiting for your DNS name to be available ... done

Cloning into 'myzend61'...
Warning: Permanently added 'myzend61-truhnq.int.rhcloud.com' (RSA) to the list of known hosts.

Your application 'myzend61' is now available.

  URL:        http://myzend61-truhnq.int.rhcloud.com/
  SSH to:     534ddd6703ef64b23900018a.rhcloud.com
  Git remote: ssh://534ddd6703ef64b23900018a.rhcloud.com/~/git/myzend61.git/
  Cloned to:  /home/rayzhang/Work/myzend61

Run 'rhc show-app myzend61' for more details about your app.
[rayzhang@ray Work]$rhc app ssh myzend61 "grep Warning app-root/logs/phpmyadmin.log"
[rayzhang@ray Work]$


Note You need to log in before you can comment on or make changes to this bug.