LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-17-2010, 09:19 AM   #1
ccfalsesysadm
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
php-mysql dynamic module fails on RHEL 5.5 -- undefined symbol: executor_globals


I've recently installed a RedHat Enterprise Linux server and am attempting to get PHP/MySQL installed on it. It cannot load the dynamic php mysql module, giving me an error (in /var/log/error_log) that reads as follows:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: undefined symbol: executor_globals in Unknown on line 0

(In fact, it fails to load ALL of the dynamic php modules, either with the "undefined symbol: executor_global" or "undefined symbol: core_globals")

I am hoping to find someone else who is running RHEL who has come across this issue. I DO NOT WANT to compile anything -- I want to stay with stock RedHat released software.


[root@hostname-suppressed httpd]# uname -a
Linux hostname-suppressed 2.6.18-194.17.4.el5PAE #1 SMP Wed Oct 20 13:13:33 EDT 2010 i686 athlon i386 GNU/Linux

[root@hostname-suppressed httpd]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

[root@hostname-suppressed httpd]# rpm -qa | grep mysql
php-mysql-5.1.6-27.el5
mysql-5.0.77-4.el5_5.4
libdbi-dbd-mysql-0.8.1a-1.2.2
mysql-server-5.0.77-4.el5_5.4
mysql-connector-odbc-3.51.26r1127-1.el5
mysql-devel-5.0.77-4.el5_5.4
 
Old 11-17-2010, 09:38 AM   #2
indian_munnda
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Rep: Reputation: 0
Even i am facing this problem in my fedora 13.....

If you get an answer please do let me know also....I am subscribing this thread.....may be we get some answers.....
 
Old 11-17-2010, 10:53 AM   #3
ccfalsesysadm
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Getting closer, but not looking good

I examined the content of /etc/httpd/conf.d/php.ini and noticed the following directive:

<IfModule worker.c>
# Use of the "ZTS" build with worker is experimental, and no shared
# modules are supported.
LoadModule php5_module modules/libphp5-zts.so
</IfModule>

I then remembered that I *AM* running apache in "worker mode" (to support running SiteMinder software which is a requirement). I tried replacing the libphp5-zts.so with libphp5.so, and apache failed to start, telling me, "[crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.”

This is not looking good for my "must not recompile" directive. :/
 
Old 11-17-2010, 12:22 PM   #4
ccfalsesysadm
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Solved

The stock RedHat php extensions are not compiled such that they are thread-safe. Foo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache + php: undefined symbol: zend_parse_parameters meczo Linux - Server 3 01-28-2011 09:43 PM
PHP+Apache2: undefined symbol error on linux box vkaur Linux - General 4 06-15-2007 07:46 AM
Apache 2, PHP5, MySQL 5: Undefined symbol: php_escape_html_entities, c4onastick Slackware 3 08-18-2006 06:27 PM
PHP+apache undefined symbol:unixd_config error Emist Linux - Newbie 13 03-15-2005 10:49 AM
Compile a dynamic MySQL module/load into PHP dleone Linux - General 2 01-31-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration