Upgrade PHP 5.4 to 5.5 or 5.6

  • Hello,


    how i can Upgrade my PHP 5.4 to 5.5 or 5.6 with a good way. I dont will destroy my Webserver. I have Debian Wheezy 7.8 and I-MSCP 1.2.x Git. I have search in this Forum for a good Tutorial but i dont find a good thing. I have try it with PHPSwitcher but it dont work because i have PHP-FPM.


    Thx!

  • Hello ;


    Why you don't just switch to fcgid? Using the PhpSwitcher plugin is the way to go since you can have many version available.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • If you don't want adding dotdeb repository or using the phpSwitcher, I also recommend to upgrade to Debian Jessie (here default php version is 5.6). Sooner or later you need to upgrade.

  • Thx for your help. I can't easy upgrade to debian jessi because i have other programms of the server and i dont know it run of debian 8.
    ------------
    After Upgrade on 1.2.9 i can use the command "perl imscp-autoinstall -dr httpd"


    I have install Phpswitcher and install php 5.5 and 5.6


    After i change a PHP Version from a Subdomain my Main Domain dont work.


    In logs from my main Domain i see the PHP Version is the same as from the Subdomain but i dont change die Main Domain PHP Version. I see in the logs from my Main Domain:
    PHP version: 5.5.24
    WCF version: 2.1.8 pl 1 (Typhoon)


    In I-MSCP the Main Domain has 5.4.45

  • @TheFrozenPsycho


    This is because you're not using per_site INI level.


    You must use the per_site INI level. You can change this by running the installer again "perl imscp-autoinstall -dr httpd". Once done, you must set the correct PHP version for your domain, subdomain using PhpSwitcher interface.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @TheFrozenPsycho Let me check ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @TheFrozenPsycho


    There is a little bug in the PhpSwitcher plugin.


    VARIABLE {PHP_TIMEZONE} in the php.ini file templates should be {TIMEZONE}. I'll release a new version in few hours. Right now, you can edit the template manually in /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/templates and rerun the installer: perl imscp-autoinstall -das


    This is because the timezone variable has been renamed in version 1.2.9

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello,


    thank you for your fast looking. How can i update the Phpswitcher after you bring a update ?


    i dont find the folder /var/www/imscp/plugins/PhpSwitcher/templates


    I only find /var/www/imscp/gui/plugins/PhpSwitcher but in this i dont find a templates folder or file

  • @TheFrozenPsycho


    The right path is /var/www/imscp/gui/plugins/PhpSwitchers/PhpCompiler/templates.


    When the update will be available, you'll just have to upload it through the admin interface.


    Edit: Path edited again ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206