DA Advanced PHP version support

staff_nowa

Verified User
Joined
Mar 10, 2018
Messages
122
Location
Vilnius
Hi,

I installed newest DirectAdmin on Debian 9 OS.

I try to customize DA and add ability to change PHP version in several options. It possible to add into DA GUI several PHP versions not two, but for example 4-5.

I used custom code compile and it works, but every time when DA makes changes I receive file deletion in directories

/etc/systemd/system/php-fpm*.service
/usr/local/directadmin/data/admin/services.status

and etc. Now I can only change PHP version in htaccess file. Maybe have better solution for that?
 
Hello,

The simplest solution would be use CloudLinux with their PHP selector.

If you want a custom plugin for this please contact me for discussing details.
 
CloudLinux

Hi.

Thanks for your reply.

I tried to use CloudLinux, but it does not work on OpenVZ servers :( Why I think about another PHP selector solution.

As I see it possible to use like plugin and rewrite .htaccess files and so on :)
 
If you don't need a web-interface you can use as many PHP versions as you want connected via fastcgi or suphp with conjunction with .htaccess
 
Back
Top