PHP Selector Centos Web Panel

From version 0.9.8 all CWP servers have a CWP PHP Selector which can install all PHP versions with a single click.
Using CWP PHP selector you can use a different PHP version per folder or domain.

Available PHP versions in the CWP PHP Selector
– php 4.4
– php 5.2
– php 5.3
– php 5.4
– php 5.5
– php 5.6
– php 7.0
– php 7.1
– php 7.x (latest development)

You can completely modify flags per PHP version according to you needs.

PHP per folder
Now each user can run a PHP version per folder, meaning that each folder can have a different php version, example:
/home/USERNAME/public_html runs PHP 5.4
/home/USERNAME/public_html/test runs PHP 5.6
/home/USERNAME/public_html/my-domain.com runs PHP 5.2
/home/USERNAME/public_html/my-domain.com/application runs PHP 5.3


Usage instructions

In each folder where you want to run a different PHP version you only need to define it in the .htaccess file.

Example for file: /home/USERNAME/public_html/.htaccess

Use PHP 4.4
AddHandler application/x-httpd-php44 .php

Use PHP 5.2
AddHandler application/x-httpd-php52 .php

Use PHP 5.3
AddHandler application/x-httpd-php53 .php

Use PHP 5.4
AddHandler application/x-httpd-php54 .php

Use PHP 5.5
AddHandler application/x-httpd-php55 .php

Use PHP 5.6
AddHandler application/x-httpd-php56 .php

Use PHP 7.0
AddHandler application/x-httpd-php70 .php

Use PHP 7.1
AddHandler application/x-httpd-php71 .php

Use PHP 7.x
AddHandler application/x-httpd-php7 .php

To run some other PHP version in the other folder, you can use the same example.

Example lets run php 5.3 in /home/USERNAME/public_html/domain1.com/
Edit /home/USERNAME/public_html/domain1.com/.htaccess file and add
AddHandler application/x-httpd-php53 .php

Example lets run php 5.2 in /home/USERNAME/public_html/domain2.com/
Edit /home/USERNAME/public_html/domain2.com/.htaccess file and add
AddHandler application/x-httpd-php52 .php

and so on…

POSSIBLE ISSUES/ERRORS

PHP 5.2 (on 64bit CentOS)

configure: error: Cannot find libmysqlclient under /usr.

Add in configure/build flags:--with-libdir=lib64

source : http://wiki.centos-webpanel.com/php-selector

Posted on: July 2, 2018, by :  | 43 views
https://serang.ut.ac.id/css/css/slot88/ https://tinjut.bagkeu.dikdasmen.kemdikbud.go.id/slot-maxwin/ https://dpm.polinema.ac.id/slot-gacor/ https://akademik.ft.unm.ac.id/slot-dana/ https://ppdb.probolinggokab.go.id/slot-5000/ https://bkad.sulselprov.go.id/assets/ https://ojs.balidwipa.ac.id/docs/slot-gacor/ http://korpri.pekalongankab.go.id/api/slot-gacor/ https://elang.umpp.ac.id/foto/farmasi/-/asset/ http://rsud-kelet.jatengprov.go.id/wp-content/-/asset/ https://kusdhianto-fe.staff.ugm.ac.id/slot88/ http://ppdb.probolinggokab.go.id/judi-bola/ https://bapenda.labuhanbatukab.go.id/racikan-sbobet/ http://rsud-kelet.jatengprov.go.id/wp-content/-/data/ https://agenda.riau.go.id/-/judi-bola/ https://balapan.padang.go.id/sbobet88/ http://jdih.wakatobikab.go.id/sbobet88/ http://kph.menlhk.go.id/sbobet88/ https://bkad.sulselprov.go.id/data/ https://dpm.polinema.ac.id/slot-gacor/ https://dinkes.jemberkab.go.id/storage/attachments/