Skip to main content

setupphp

Setup Multiple PHP

This document provide the procedure to install and setup multiple php version on your eenos hosting control panel. Eenos build and maintain  different php versions.

The EOL php versions provided by eenos are packed with security backup ported patch fixes. We will keep those versions as long as the patches available. 

We recommend to your PHP versions that is actively  developed and maintained by the PHP development team.

The installer command and options are below,

Command:

/usr/local/eenos/scripts/setupphp

Command Options:

Usage: /usr/local/eenos/scripts/setupphp  <option>=[value]

Command Groups:
Options:   
    -s, --search , search                       : Show available php versions for installations   
    -l, --list , list                           : Show installed php versions
    -i <php> , --install <php> , install=<php>  : To install an eenos php version
    -r <php> , --remove <php> , remove=<php>    : To remove php from server
    -d <php> , --default <php> , default=<php>  : Set the default php on server
    -b , --buildphpconf                         : To rebuild and update the php.conf in 
    											   apache httpd server  
    -dh <handler> , --defaulthandler <handler>  : To set the default php handler 
    -ph <php> <handler> , --phphandler <php> <handler>  : Change the handler of a php version

Search  PHP Version For Installation

To find all eenos provided php version use the following command,

/usr/local/eenos/scripts/setupphp -s
eenos-php56 - Eenos PHP56 complete package
eenos-php70 - Eenos PHP70 complete package
eenos-php71 - Eenos PHP71 complete package
eenos-php72 - Eenos PHP72 complete package
eenos-php73 - Eenos PHP73 complete package
eenos-php74 - Eenos PHP74 complete package
eenos-php80 - Eenos PHP80 complete package
eenos-php81 - Eenos PHP81 complete package

Install PHP Version 

To install a php version, please use the following command.

/usr/local/eenos/scripts/setupphp -i <php>

Example : Install PHP version 8.1 ( Here eenos-php81 )

/usr/local/eenos/scripts/setupphp -i eenos-php81

Remove PHP Version

To remove  a php version from server use the following command,  ( Here version eenos-php81 )

/usr/local/eenos/scripts/setupphp -r eenos-php81

Default PHP Handler

Eenos support cgi,fcgi,suphp and fpm php handlers for apache httpd server.  The nginx use fpm and OpenLiteSpeed use the lsphp handler .

Use the following command to setup as default php handler

/usr/local/eenos/scripts/setupphp -dh  <handler>

Example : To setup SuPHP as default handler

/usr/local/eenos/scripts/setupphp -dh suphp

Setup Handler For a Specific PHP Version

You can setup different handlers for any php version on eenos server.  Use the following  command to setup a php handler on a specific version,

/usr/local/eenos/scripts/setupphp -ph <php> <handler>

Example : Setup  cgi php handler on php 8.1 version

/usr/local/eenos/scripts/setupphp -ph eenos-php81 cgi