Skip to main content

PHP version information incorrect

Comments

4 comments

  • ottdev
    I see the same. "Server Information" is perhaps stating what the cPanel or WHM is running as a base rather than what is running for that specific account. It's running the phpinfo under the server hostname, not one of your domains. Try placing a phpinfo.php file in the account - this way it is showing me the account is running PHP7, as I would expect. I have an account as follows (in the same cpanel): domain.tld php7 docroot = /home/user/pubilc_html/ sub1.domain.tld php5.6 docroot = /home/user/pubilc_html/sub1/ sub2.domain.tld php5.5 docroot = /home/sub2/ phpinfo placed in each docroot and called up by each domain* shows I have one of each version running a-ok! i.e. * This is important - if you call up domain.tld/sub1/phpinfo.php - it will be "wrongly" showing php7, but when you visit by the actual proper domain sub1.domain.tld/phpinfo.php - it will correctly state 5.6
    0
  • cPanelMichael
    Hello, It's by design the "Server Information" page in cPanel displays the default version of PHP configured on the server via: "WHM Home " Software " MultiPHP Manager" There's no default version of PHP for accounts. Instead, it's configured on a per-domain basis. You can browse to "cPanel > MultiPHP Manager" to see which specific PHP versions are configured for each domain name. Thank you.
    0
  • stuarttunstall
    Hi I have the same issue in CPanel "server information" this shows PHP as 5.5.38 which is was until I upgraded to 5.6 yesyerday, when every other area, PHP Info, MultiPHP manager in Cpanel and WHM all show default as 5.6 and even my vBulletin forum show 5.6 .... I am due to get the v64 update on Monday could this rectify the error? Stuart
    0
  • cPanelMichael
    I have the same issue in CPanel "server information" this shows PHP as 5.5.38 which is was until I upgraded to 5.6 yesyerday, when every other area, PHP Info, MultiPHP manager in Cpanel and WHM all show default as 5.6 and even my vBulletin forum show 5.6 ....

    Internal case CPANEL-12820 is open to address an issue where the PHP version under "Server Information" in cPanel isn't automatically updated when changing the default version of PHP in "WHM >> MultiPHP Manager". I'll update this thread once the resolution is published. In the meantime, you can run the following commands as a workaround:
    rm /etc/apache2/conf.d/php.version /scripts/findphpversion
    Thank you.
    0

Please sign in to leave a comment.