PHP not installed with Plesk, installed later but Plesk will not see it.

A

AlbertY

Guest
I leased a dedicated server from a company and it appears they did not install PHP as an option during the Plesk installation. I was able to install PHP with yum, but this doesn't tell Plesk that it's available for domains. Therefore, no domains will work with PHP and this is a big stumbling block for me right now as I cannot migrate sites from another server. When I look at "Server Components", for PHP I see, "The component was not installed".

How can I fix this?

Thanks in advance.
 
There are two PHP in Plesk - one for Plesk admin interface (sw-cp-server) and one for client's sites (Apache):

Plesk admin's php:

/usr/local/psa/admin/bin/php
/usr/local/psa/admin/conf/php.ini

Client's php:

/usr/bin/php
/etc/php.ini

In Components Management you may see client's PHP only. Make sure that you have these files, that php is installed (rpm -q php) and try to click Refresh button in Components Management.
 
Thanks for the response.

All of the files you listed do exist on my system (I'm running Red Hat Enterprise 5).

# /usr/local/psa/admin/bin/php -v
PHP 5.2.6 (cli) (built: Oct 30 2009 16:54:36)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

# /usr/bin/php -v
PHP 5.1.6 (cli) (built: Jan 14 2010 13:11:11)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

And PHP is installed,

# rpm -qa | grep php
php-imap-5.1.6-27.el5
php-gd-5.1.6-27.el5
psa-php5-configurator-1.5.3-rhel5.build95100409.18
php-mbstring-5.1.6-27.el5
php-pdo-5.1.6-27.el5
php-xml-5.1.6-27.el5
php-cli-5.1.6-27.el5
php-common-5.1.6-27.el5
php-mysql-5.1.6-27.el5

I went into the "Components Management" screen and clicking "Refresh" does not result in a change for the php component.

..Al
 
You are correct, of course, I'm not sure why that package wasn't installed previously. I installed it and everything is now working properly. Thanks for your help!
 
Back
Top