• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP not installed

D

DiegoJ

Guest
I installed plesk 9.5.3. with the included php

# /usr/local/psa/admin/bin/php -v
PHP 5.2.6 (cli) (built: Jun 9 2010 10:13:49)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

# /usr/bin/php -v
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP 5.3.2 (cli) (built: Mar 5 2010 15:31:46)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

When I try to create a domain displays the following message:

PHP support (The component was not installed)

I modified the php field of the database to psa to "5.2.6" (the value is "not installed" ) but when I restart the service, the value returns to "not installed"

Any Idea??


Thanks!!!
 
Check and correct safe_mode with

# php -c /etc/php.ini -i |grep safe_mode

Check variable CLIENT_PHP_BIN in /etc/psa/psa.conf. There is should be symlink like /usr/local/psa/bin/php-cli -> /usr/bin/php
 
Check and correct safe_mode with



Check variable CLIENT_PHP_BIN in /etc/psa/psa.conf. There is should be symlink like /usr/local/psa/bin/php-cli -> /usr/bin/php

Don't work. Now...

]# /usr/bin/php -v
PHP 5.3.2 (cli) (built: Mar 5 2010 15:31:46)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

and psa.conf

CLIENT_PHP_BIN /usr/bin/php

Zend may be the problem?

Thanks!!!
 
I'm on it. How do you check this simlink?

I have only

/usr/local/psa/bin/php-cli

nothing after...

Thanks
 
I'm on it. How do you check this simlink?

GravuTrad:

Use the readlink command:
Code:
[root@www psa]# which readlink
/bin/readlink

[root@www psa]# readlink /usr/local/psa/bin/php-cli 
/usr/bin/php

[root@www psa]# ls -l /usr/local/psa/bin/php-cli 
lrwxrwxrwx 1 root root 12 Feb  2 06:23 /usr/local/psa/bin/php-cli -> /usr/bin/php

HTH,
 
Back
Top