1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PHP not installed

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by DiegoJ, Nov 15, 2010.

  1. DiegoJ

    DiegoJ Guest

    0
     
    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!!!
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    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
     
  3. DiegoJ

    DiegoJ Guest

    0
     
    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!!!
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Did you checked it?
     
  5. GravuTrad

    GravuTrad Regular Pleskian

    28
    23%
    Joined:
    Apr 28, 2006
    Messages:
    269
    Likes Received:
    0
    I'm on it. How do you check this simlink?

    I have only

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

    nothing after...

    Thanks
     
  6. Eric Pretorious

    Eric Pretorious Regular Pleskian

    15
    35%
    Joined:
    Mar 2, 2013
    Messages:
    188
    Likes Received:
    0
    Location:
    Truckee, CA
    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,
     
Loading...