[SOLVED] PHP Update 2012-05-19 breaks extensions for apache
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
PHP Update 2012-05-19 breaks extensions for apache
I've just been bashing my head against the keyboard for the last few hours trying to track this one down.
The addition of php-fpm in the build script results in the extensions that were built earlier in the Apache2 build been overwritten with new ones that are incompatible.
Why the modules are incompatible I don't know.
Possible fixes :-
1. Don't build fpm (but someone will want it I'm sure)
2. Build fpm using different directories for it's modules (possible config file issues perhaps?)
3. Go for 2 different PHP packages (put the second package in extra with warnings that it replaces the other and is not an extension of it)
EDIT
Another gotcha from this update is mysql_install_db needs to be run from /usr due to a path issue.
Last edited by wildwizard; 05-20-2012 at 06:03 AM.
PHP Warning: PHP Startup: bcmath: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: bz2: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: calendar: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: ctype: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/curl.so' - /usr/lib64/php/extensions/curl.so: undefined symbol: file_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/dba.so' - /usr/lib64/php/extensions/dba.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: exif: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: ftp: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: gettext: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: gd: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: gmp: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/iconv.so' - /usr/lib64/php/extensions/iconv.so: undefined symbol: sapi_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/ldap.so' - /usr/lib64/php/extensions/ldap.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mbstring.so' - /usr/lib64/php/extensions/mbstring.so: undefined symbol: sapi_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysql.so' - /usr/lib64/php/extensions/mysql.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysqli.so' - /usr/lib64/php/extensions/mysqli.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/openssl.so' - /usr/lib64/php/extensions/openssl.so: undefined symbol: file_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/pdo.so' - /usr/lib64/php/extensions/pdo.so: undefined symbol: compiler_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/pdo_mysql.so' - /usr/lib64/php/extensions/pdo_mysql.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/pdo_sqlite.so' - /usr/lib64/php/extensions/pdo_sqlite.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: pspell: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: shmop: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/snmp.so' - /usr/lib64/php/extensions/snmp.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/soap.so' - /usr/lib64/php/extensions/soap.so: undefined symbol: sapi_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/sqlite3.so' - /usr/lib64/php/extensions/sqlite3.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/tokenizer.so' - /usr/lib64/php/extensions/tokenizer.so: undefined symbol: compiler_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/wddx.so' - /usr/lib64/php/extensions/wddx.so: undefined symbol: compiler_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/xsl.so' - /usr/lib64/php/extensions/xsl.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/zip.so' - /usr/lib64/php/extensions/zip.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/zlib.so' - /usr/lib64/php/extensions/zlib.so: undefined symbol: sapi_globals in Unknown on line 0
[Sun May 20 17:21:48.193334 2012] [mpm_event:notice] [pid 10013:tid 140068776830848] AH00489: Apache/2.4.2 (Unix) PHP/5.4.3 configured -- resuming normal operations
[Sun May 20 17:21:48.193505 2012] [core:notice] [pid 10013:tid 140068776830848] AH00094: Command line: '/usr/sbin/httpd'
With default configuration file also get this error in 32bit version:
Code:
[Mon May 21 09:39:46.466785 2012] [:crit] [pid 2963:tid 3070310144] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
in 64bit version, I don't get that error, but as the poster:
Code:
[..]
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysql.so' - /usr/lib64/php/extensions/mysql.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysqli.so' - /usr/lib64/php/extensions/mysqli.so: undefined symbol: core_globals in Unknown on line 0
[..]
for mysql_install_db to work I changed two lines (still gotta look why it got that variables wrong)
Code:
--- mysql_install_db.orig 2012-05-16 21:27:30.000000000 +0200
+++ mysql_install_db 2012-05-21 07:26:15.394000008 +0200
@@ -18,9 +18,9 @@
#
# All unrecognized arguments to this script are passed to mysqld.
-basedir=""
+basedir="/usr"
builddir=""
-ldata="./data"
+ldata="/var/lib/mysql"
langdir=""
srcdir=""
dunno if related (still had to check that too), but I drop this here: to rebuild graphviz, that includes libgv_php.so, I had to update swig to its latest version, because it doesn't generate right code (hinted here).
Sorry I posted that on Sunday night and it was the end of my limits (needed to get sleep for work today)
Code:
PHP Warning: PHP Startup: bcmath: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: bz2: Unable to initialize module\nModule compiled with build ID=API20100525,NTS\nPHP compiled with build ID=API20100525,TS\nThese options need to match\n in Unknown on line 0
These errors are followed by the other undefined symbol errors, which is most likely from the modules depending on the earlier modules.
mysql is actually worse in that it seems to have lost all ability to know where it actually is, mysql_install_db will also install the db in /usr/data instead of /var/lib/mysql
Actual error if you don't run it from /usr
Code:
FATAL ERROR: Could not find ./bin/my_print_defaults
for mysql_install_db to work I changed two lines (still gotta look why it got that variables wrong)
Code:
--- mysql_install_db.orig 2012-05-16 21:27:30.000000000 +0200
+++ mysql_install_db 2012-05-21 07:26:15.394000008 +0200
@@ -18,9 +18,9 @@
#
# All unrecognized arguments to this script are passed to mysqld.
-basedir=""
+basedir="/usr"
builddir=""
-ldata="./data"
+ldata="/var/lib/mysql"
langdir=""
srcdir=""
dunno if related (still had to check that too), but I drop this here: to rebuild graphviz, that includes libgv_php.so, I had to update swig to its latest version, because it doesn't generate right code (hinted here).
try have a look on your /etc/my.conf
MySQL 5.5 now uses
Quote:
skip-external-locking
and no longer uses
Quote:
skip-locking
probably this is the problem why it failed to start.
I changed it and it works normally again
With default configuration file also get this error in 32bit version:
Code:
[Mon May 21 09:39:46.466785 2012] [:crit] [pid 2963:tid 3070310144] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
This one is expected. There are many options on how to fix this, for example, use mod_fcgid and/or php-fpm, or switch the apache mpm.
Quote:
Originally Posted by conraid
in 64bit version, I don't get that error, but as the poster:
Code:
[..]
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysql.so' - /usr/lib64/php/extensions/mysql.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysqli.so' - /usr/lib64/php/extensions/mysqli.so: undefined symbol: core_globals in Unknown on line 0
[..]
Which is what I was interested in. It's interesting to see the errors only happen on x86_64.
@willy:
sorry, I forgot to say that I tried this on a fresh 64-current full install with latest updates: mysql seems to work fine here too, I only got that little annoyances with mysql_install_db (as wildwizard reported).
mysql is actually worse in that it seems to have lost all ability to know where it actually is, mysql_install_db will also install the db in /usr/data instead of /var/lib/mysql
Actual error if you don't run it from /usr
Code:
FATAL ERROR: Could not find ./bin/my_print_defaults
Hmm, I think I know what causes this. I stumbled over this yesterday when updating my mariadb slackbuild for 5.5. There are two cmake parameters for specifying the mysql data dir, the mysql slackbuild uses only one, the other one defaults to /usr/data (which is also installed and removed in the SlackBuild). The issue is that the second parameter seems to expect a relative path. Need to wrap my head around the cmake build system :/
I said, with the default file. But I don't think a fix can not use apache module
Yes, the default httpd config in -current does not work with mod_php. This is expected and can be fixed as mentioned above.
Quote:
No, in 32version apache+php not running, so I can not tell if php load modules :-)
Well, the errors you get in x86_64 appear before you'd get the other error. Suppose you fixed the php errors you'd end up with the mpm incompatibility message.
Hmm, I think I know what causes this. I stumbled over this yesterday when updating my mariadb slackbuild for 5.5. There are two cmake parameters for specifying the mysql data dir, the mysql slackbuild uses only one, the other one defaults to /usr/data (which is also installed and removed in the SlackBuild). The issue is that the second parameter seems to expect a relative path. Need to wrap my head around the cmake build system :/
you mean INSTALL_MYSQLDATADIR and MYSQL_DATADIR ??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.