• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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