• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Update broken PHP

W

WindyWinston

Guest
Plesk 10.2 Centos 4.8 x86

Issue
-----
After upgrade from 10.0.1 to 10.2 php FastCGI module runs as version 4 and does not have MySQL support.

/usr/bin/php does not exist but yum says php is installed (5.1.6-3.el4s1.10).

/usr/bin/php-cgi -v:
Failed loading /opt/php51/lib/php5/ioncube_loader_lin_5.1.so: /opt/php51/lib/php5/ioncube_loader_lin_5.1.so: undefined symbol: _zend_hash_add_or_update
PHP 4.3.9 (cgi-fcgi) (built: Jan 14 2011 11:59:31)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Running php as an apache module uses PHP version 5.


Question
--------
How can I get php to run as version 5 for fastcgi with Mysql support.
Where did my /usr/bin/php go?

Thanks.
 
-bash-3.2# /usr/bin/php -v
PHP 5.1.6 (cli) (built: Mar 31 2010 02:39:17)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.

-bash-3.2# rpm -qf /usr/bin/php
php-cli-5.1.6-27.el5

-bash-3.2# /usr/bin/php-cgi -v
PHP 5.1.6 (cgi-fcgi) (built: Mar 31 2010 02:33:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.

-bash-3.2# rpm -qf /usr/bin/php-cgi
php-cli-5.1.6-27.el5

-bash-3.2# cat /usr/local/psa/version
10.2.0 CentOS 5 1011110331.11

Plesk doesn’t ship client’s PHP, it only downloads it from original OS vendor repo and it is quite likely it may be outdated there (especially for older OS). If your OS comes with PHP 5, then Plesk would run PHP 5 for clients.
 
Sounds like it's safe to try a 'yum remove' and 'yum reinstall' for php and install it like I would for a generic Apache box??

Or is RPM preferred?



[...]# /usr/bin/php -v
-bash: /usr/bin/php: No such file or directory

[...]# rpm -qf /usr/bin/php
error: file /usr/bin/php: No such file or directory


[...]# /usr/bin/php-cgi -v
Failed loading /opt/php51/lib/php5/ioncube_loader_lin_5.1.so: /opt/php51/lib/php5/ioncube_loader_lin_5.1.so: undefined symbol: _zend_hash_add_or_update
PHP 4.3.9 (cgi-fcgi) (built: Jan 14 2011 11:59:31)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


[...]# rpm -qf /usr/bin/php-cgi
psa-php4-cgi-4.3.9-11011411


[...]# cat /usr/local/psa/version
10.2.0 CentOS 4.2 1011110331.11
 
Back
Top