I decided to swap Apache2Handler with PHP-FPM on my server. After this change, I tried to run sudo apache2ctl configtest
and got the following error:
AH00526: Syntax error on line 53 of
/etc/apache2/apache2.conf
: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information.
I know that it is possible to make this adaptation through the www.conf
file of PHP FPM, however the issue is that I need this to work for a specific virtualhost, not for everyone.
Example:
#/etc/apache2/sites-avaliable/projeto_x.conf
<Directory /home/servidor/projeto_x>
php_admin_value open_basedir /home/servidor/projeto_x
AllowOverride All
</Directory>
How can I make this setting through PHP FPM for a specific VHost?