mod_php is not a valid setting for php2_mode option

adi5497

Verified User
Joined
Jan 14, 2020
Messages
21
Hello, I cant change php mode for one of my php version.

Code:
cd /usr/local/directadmin/custombuild
./build set php1_release 7.0
./build set php2_release 5.6
./build set php1_mode mod_php
./build set php2_mode mod_php
and when I'm trying to set php2 mode i'm getting:
Code:
mod_php is not a valid setting for php2_mode option.
I change fastcgi to mod_php
 
You can only run php1_release with mod_php mode. I'd suggest switching all of your PHP modes to PHP-FPM, so that the webserver could support HTTP/2 (it's not supported with mod_php due to prefork MPM option used in Apache).
 
Back
Top