[solved] php error after art upgrade

Support/Development for PHP
cosmicfantasia
Forum User
Forum User
Posts: 12
Joined: Thu Nov 30, 2006 7:32 am

[solved] php error after art upgrade

Unread post 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]
Last edited by cosmicfantasia on Fri Dec 01, 2006 3:20 am, edited 1 time in total.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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
cosmicfantasia
Forum User
Forum User
Posts: 12
Joined: Thu Nov 30, 2006 7:32 am

continued...

Unread post 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...
cosmicfantasia
Forum User
Forum User
Posts: 12
Joined: Thu Nov 30, 2006 7:32 am

continued (a bit more)...

Unread post 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]
cosmicfantasia
Forum User
Forum User
Posts: 12
Joined: Thu Nov 30, 2006 7:32 am

continued (a bit more)...

Unread post 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

????
cosmicfantasia
Forum User
Forum User
Posts: 12
Joined: Thu Nov 30, 2006 7:32 am

ioncube loaded

Unread post 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?

:)
cosmicfantasia
Forum User
Forum User
Posts: 12
Joined: Thu Nov 30, 2006 7:32 am

fixed

Unread post 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.

:)
Traged1
Forum User
Forum User
Posts: 10
Joined: Mon Jun 27, 2005 6:12 am

Unread post by Traged1 »

You need to remove the ioncube_loader.ini file from your /etc/php.d folder, leaving ioncube.ini only then restart httpd
Post Reply