Page 1 of 1

[solved] php error after art upgrade

Posted: Thu Nov 30, 2006 7:38 am
by cosmicfantasia
Hi everybody,

I just upgraded a FC 3 server, and am getting the following errors when trying to start php:

Code: Select all

Failed loading /usr/lib/php4/php_ioncube_loader_lin_4.3.so:  /usr/lib/php4/php_ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sitebuilder.so' - /usr/lib/php/modules/sitebuilder.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/lib/php/modules/zip.so' - /usr/lib/php/modules/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.0.4 (cli) (built: Jan 29 2006 21:59:47)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
I did the necessary changes to the configurations files. But mv /etc/httpd/conf.d/php.conf.rpmnew didn't exist.

Any help would be more than appreciated.

Thanks...
[/code]

Posted: Thu Nov 30, 2006 10:14 am
by scott
You've got to upgrade ioncube when you update php. Also that php-zip module, thats not one of mine, so you might have another 3rd party php package in there. This will tell you what that belongs to if its from an rpm:

rpm -qf /usr/lib/php/modules/zip.so

continued...

Posted: Thu Nov 30, 2006 9:06 pm
by cosmicfantasia
Hi Scott,

Thanks heaps for your assistance. It is very much appreciated.

I am having issues updating ioncube, but I think I will get through those.

But, I am very worried about the sitebuilder.so and zip.so libraries. They are being looked for in the /usr/lib/php/modules/ as you said that where to point the php.ini file to. But they are actually in /usr/lib/php4/

I'm pretty sure you can't have 2 extension_dir entries and just copying them into the /usr/lib/php/modules/ doesn't do anything. What do you suggest?

Thanks again...

continued (a bit more)...

Posted: Thu Nov 30, 2006 9:21 pm
by cosmicfantasia
Some progress:

In the /etc/php.d directory I updated the zip.ini and sitebuilder.ini files to point to the directory they are in so now now probs there.

Now still having ioncube issues. If you were able to help shed some light it would be fantastic.

I updated the ioncube-loader.so file to point to the ioncube_loader_lin_5.0.so file as we now have php 5.0.4. But still get:

Code: Select all

Failed loading /usr/lib/php4/php_ioncube_loader_lin_5.0.so:  /usr/lib/php4/php_ioncube_loader_lin_5.0.so: cannot open shared object file: No such file or directory
The file is definantly there.

Thanks...
[/code]

continued (a bit more)...

Posted: Thu Nov 30, 2006 10:10 pm
by cosmicfantasia
Some more info. Hope it helps so that you can help me.

I ran the ioncube help script. It told me to do what I had already done with the php.d ioncue script and then restart httpd.

So tried to restart httpd and now get:

Starting httpd: Syntax error on line 2 of /var/www/vhosts/cosmicfantasia.net/conf/vhost_ssl.conf:
Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration

This is a file necessary to add no openbasedir for a domain on plesk which is required for my billing system which is the only app on this machine other than plesk.

The vhost_ssl.conf contains:

<Directory /var/www/vhosts/cosmicfantasia.net/httpsdocs>
php_admin_value open_basedir none
php_admin_value safe_mode 0
</Directory>

Which was working fine before this upgrade

????

ioncube loaded

Posted: Thu Nov 30, 2006 11:20 pm
by cosmicfantasia
Hi,

To see what would happen I deleted the contents of my /var/www/vhosts/cosmicfantasia.net/conf/vhost_ssl.conf and it allowed httpd to restart and ioncube loaded. So no php errors anymore.

But the problem with the vhost_ssl.conf remains if I add it again. If anybody has any thoughts on this please let me know.

Really don't know why this problem has come into existence since art upgrade. Hope somebody can help?

:)

fixed

Posted: Fri Dec 01, 2006 3:22 am
by cosmicfantasia
Really don't know what step fixed this. But have been working through different problems all day and one of them fixed it.

:)

Posted: Thu Sep 27, 2007 12:13 pm
by Traged1
You need to remove the ioncube_loader.ini file from your /etc/php.d folder, leaving ioncube.ini only then restart httpd