Jump to content

PHP4/Apache2: extension not loading


markjreed

Recommended Posts

I am completely flummoxed by this. 

 

There is only one php.ini file on the system.

 

Both command-line php and mod_php (both 4.4.7) report loading that php.ini file in phpinfo().

 

That php.ini file has the lines

 

extension_dir=/usr/lib/php/extensions

extension=syck.so

 

syck.so exists in that directory.

 

Command-line php loads the extension no problem; it is listed in phpinfo and the functions work.

 

In Apache  (which I have restarted multiple times), the extension is not loaded.  No error in the logs; the php.ini appears to have been processed.  But the extension is not loaded - not listed in phpinfo, functions not found.

 

Is there some security thing?  I mean, I know dl() doesn't work in multithreaded Apache2, but extension= in the php.ini file is supposed to work.  This is the only extension I'm using that's not compiled into php, though.

 

Any help?

 

Link to comment
https://forums.phpfreaks.com/topic/67507-php4apache2-extension-not-loading/
Share on other sites

Is the .so file readable / reachable by the apache user?

 

Do an su to the apache user, cd to the directory and see if you can access the directory.  Not sure which OS you're using, but I usually check to make sure it can load correctly using 'ldd' in solaris.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.