Configure PHP cli on Centos

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Aug 6, 2018.

  1. pawan

    pawan Member

    when I am checking the php using:
    which php
    Sometimes I get
    Code:
    /usr/local/bin/php
    and sometimes
    Code:
    /usr/bin/php
    When I get -/usr/local/bin/php - checking php -v shows the correct result like
    Code:
    ea-php-cli Copyright 2017 cPanel, Inc.
    PHP 7.0.31 (cli) (built: Jul 23 2018 21:29:04) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.0.31, Copyright (c) 1999-2017, by Zend Technologies
    
    but when it shows /usr/bin/php the result with php -v is incorrect like it say (cgi-fcgi)
    Code:
    [root@s132-148-137-252 public_html]# /usr/bin/php -v
    ea-php-cli Copyright 2017 cPanel, Inc.
    PHP 7.0.31 (cgi-fcgi) (built: Jul 23 2018 21:29:24)
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.0.31, Copyright (c) 1999-2017, by Zend Technologies
    How I can correct this situation.
     
    Last edited: Aug 6, 2018
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you run cPanel on that server and not ISPConfig "Copyright 2017 cPanel, Inc."? In that case you better ask the cPanel support as I can't say where cPanel installs there PHP. For an ISPConfig system, there would be no PHP in /usr/local/bin/
     

Share This Page