Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Add additional PHP versions to ISPconfig on Centos 7 like a pro

by | Sep 12, 2021

Want to add additional additional PHP versions to ISPConfig on Centos 7? Read to find out how our Support Engineers get this done!

One of our clients wanted to add the new PHP version to their ISPConfig control panel. Fortunately, with ISPconfig 3, our Server Management team was able to help them out.

Requisites to add additional PHP versions to ISPconfig on Centos 7

In this particular instance, our Engineers installed PHP 7.2 for the client. The prerequisites for the installation includes:

  • CentOS 6 or 7
  • Admin access to the ISPConfig3

PHP installation

We use the REMI repository for PHP installation. Add the repository and enter the following:

type: yum install php72-php php72-php-xml php72-php-imap php72-php-pecl-apcu-bc php72-php-opcache php72-php-mysqlnd php72-php-pecl-uploadprogress php72-php-gd php72-php-pecl-mcrypt php72-php-pecl-memcached php72-php-cli php72-php-pecl-yaml php72-php-odbc php72-php-pecl-memcache php72-php-fpm php72-php-intl

Remember to change the prefix for 7.3 or 7.4. For instance, for PHP 7.4 change it to php74-php or to php73-php for PHP 7.3.

So far, you have only added a few useful packages. However, the remaining will be added as and when required.


Configuring ISPConfig

In order to configure ISPConfig, we navigate to the Additional PHP Version menu and edit it to add information as seen below:

  • Server: the servername
  • Client: leave it blank
  • PHP Name: the label

  • In the FastCGI binary tab, Path to the PHPFastCGI binary:
    /opt/remi/php72/root/usr/bin/php-cgi
  • Next is Path to php-ini directory:
    /etc/opt/remi/php72

  • In the PHP=FPM tab, Path to PHP-FRPM init script:
    php72-php-fpm
  • Then, Path to php.ini directory:
    /etc/opt/remi/php72
  • Path to PHP-FRPM pool:
    /etc/opt/remi/php72/php-fpm.d

Once we complete this, it will be available on the system. However, we are not done yet.

Configure the new PHP when you add additional PHP versions to ISPconfig on Centos 7

You will find the configuration files under /etc/opt/remi. Here are few things to keep in mind:

  • In case you plan to use PHP-FHM, edit the www.conf file to change the port number. The default port will already be in use by the default PHP installation.
  • In case you have tweaked the configuration file for the default PHP, you need to make the same changes here as well.

[Looking for help with Server Management? Give us a call!]

Conclusion

At the end of the day, our Support Engineers showed us how easy it is to add additional PHP versions on Centos 7. If you run into any trouble, you know whom to call!

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF