Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default Backend PHP version

    I am noticing that the PHP version on the backend (used by cPanel, WHM, Webmail, etc) is outdated on our servers. It is version 5.2.6.

    I noticed that the file

    /var/cpanel/easy/apache/profile/makecpphp.profile.yaml

    does not appear to be set for PHP 5.2.17 (the last PHP 5.2).

    Should this be set and recompile with /scripts/makecpphp

    Note, I am using /var/cpanel/usecpphp

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Backend PHP version

    Hello,

    What are you using to determine that the backend PHP version is outdated? I'm interested in what area or command is being used to be certain it isn't a cached output that you are getting.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default Re: Backend PHP version

    Well. Put a phpinfo.php in /usr/local/cpanel/base/frontend/x3 with the appropriate phpinfo code

    PHP Code:
    <?php phpinfo(); ?>
    Then log into a cPanel account and change the URL to go to the phpinfo.php file you created.

  4. #4
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default Re: Backend PHP version

    I suppose a better way to word this question might be, is there a reason that the internal PHP binary is 5.2.6 and not 5.2.17? Is there something within the cPanel/WHM/Webmail that is not compatible with 5.2.17 and needs 5.2.6.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Backend PHP version

    When I ran /scripts/makecpphp, it updated it to 5.2.9 rather than 5.2.6, so do you actually mean 5.2.9 for the version?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Backend PHP version

    The internal PHP binaries in /usr/local/cpanel/3rdparty/bin are indeed 5.2.6. These binaries are primarily intended for compatibility with the various PHP Applications (e.g. Horde) we provide. If you have specialized needs you can use scripts/makecpphp to build a newer binary, which is placed in /var/cpanel/3rdparty.

    You can customize the profile used to build the /var/cpanel/3rdparty/bin/php binaries by using EasyApache.

    NOte: we are evaluating updating the internal PHP binaries to 5.3 in 11.34.
    Kenneth
    Product Manager
    cPanel, Inc.

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default Re: Backend PHP version

    It looks like 5.2.9 is the highest this will go.

    Setting /var/cpanel/easy/apache/profile/makecpphp.profile.yaml to use 5.2.17 and running /scripts/makecpphp falls back to 5.2.9.

    Is there a particular reason why this won't go up to 5.2.17? I know there have been some security issues with PHP, thus the reason for staying up to date with the latest version. This is less of an issue because this is only referring to the backend, someone would have to have a cPanel/WHM/Webmail login to take advantage of it.

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Backend PHP version

    Touch /var/cpanel/easy_skip_cpanelsync before running makecpphp. This flag file prevents scripts/cpanel_easy_sanity_check from downloading the cPanel EasyApache profiles.
    Kenneth
    Product Manager
    cPanel, Inc.

  9. #9
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    Default Re: Backend PHP version

    Since the makecpphp.profile.yaml gets completely overwritten without the /var/cpanel/easy_skip_cpanelsync file But adding that file will cause php to never update how do you purpose we can both keep up to date but still be able to modify this file without the changes getting overwritten. There has to be a better way. Perhaps have the sanity check download to another name and then merge with this file?? Profiling in phpMyAdmin now requires TTF to be enabled. I also have ZIP enabled. I manage to many servers to have to periodically brick over my settings to get an updated profile for new versions and then add my settings back.

  10. #10
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Backend PHP version

    Since cPanel & WHM don't normally rebuild the internal PHP automatically, you only need to the /var/cpanel/easy_skip_cpanelsync flag file in place when you initiate makecpphp.

    For now I would recommend you make a back up of the profile you use to generate the internal PHP binary. Once makecpphp is complete and you are satisfied with the results, remove the easy_skip_cpanelsync flag file. When ever you need to make changes to the internal PHP binary, restore the profile, touch the flag and perform you changes and build.

    For cPanel & WHM 11.34 we will provide PHP 5.3 instead of 5.2.
    Kenneth
    Product Manager
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. PHP xmlapi.php has been updated to version 1.0.10
    By cPanelDavidN in forum cPanel Developers
    Replies: 0
    Last Post: 06-27-2011, 03:53 PM
  2. Compiling cPanel Backend Web Server PHP?
    By Lucas in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-19-2008, 10:18 AM
  3. PHP Version 4.4.2, register_globals ON php.ini no longer works!
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-02-2006, 04:06 PM
  4. PHP Update not working ( PHP version file is up to date )
    By ezztro in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-29-2005, 12:09 PM
  5. Apache Security/Version Table not showing PHP version
    By jonMEGA in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-10-2004, 09:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube