ISPConfig 3 Centos 6 PHP upgrade question

Discussion in 'Technical' started by syco, Jun 23, 2017.

  1. syco

    syco New Member

    Centos 6.5 ISPConfig 3 current php version is 5.3.3 if I do this.

    "
    First install the SCL repo:

    yum install centos-release-SCL

    Then install PHP 5.4 and these modules:

    yum install php54 php54-php php54-php-gd php54-php-mbstring

    You must also install the updated database module. This installs the new PHP 5.4 module for MySQL/MariaDB:

    yum install php54-php-mysqlnd

    Disable loading the old PHP 5.3 Apache module:

    mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.off

    You should now have a /etc/httpd/conf.d/php54-php.conf file, which loads the correct PHP 5.4 module for Apache.

    Finally, restart Apache:

    service httpd restart "

    Will it break my current install?
     
  2. Nilpo

    Nilpo Member HowtoForge Supporter

    I have found that installing PHP versions from additional repos can lead to some unexpected problems. You should really compile your own PHP and add them as "Additional PHP Versions". There are numerous tutorials here on HowToForge that demonstrate how to do this (however none are specific to CentOS.)

    I have adapted the information in these tutorials for CentOS 6. You can find them in this Gist. These are the exact steps I follow on my server to install the latest versions PHP 5.x and PHP 7.x with all common extensions.

    https://gist.github.com/Nilpo/6d99914cf05ef68df47fb80b86a2c5dd
     
  3. michelangelo

    michelangelo Active Member

    For CentOS I always go with the PHP packages from Remi Colletes: https://rpms.remirepo.net/ who is also an employee of Redhat.

    Almost all PHP packages which are EOL receive security backports and he also have the newest PHP versions which can be easily installed seperately without to overwrite your PHP 5.3.3 or whatever PHP default version you wanna keep.
     

Share This Page