Author Topic: PHP disable_functions for separated vhost  (Read 15707 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: PHP disable_functions for separated vhost
« Reply #30 on: January 27, 2021, 03:19:36 PM »
I reinstalled everything from scratch and the only way to add disable functions for 1 user is the below quoted steps with PHP-FPM.

I checked again the PHP configuration settings via phpinfo() function and I saw again that the path of PHP Loaded Configuration File is /opt/alt/php-fpm74/usr/php/php.ini and not /home/user/public_html/php.ini that means the extra new disable_functions record can't be read from the user's custom php.ini file.

I don't know what else to do to have the path of PHP Loaded Configuration File on user home folder (/home/user/public_html/) that the custom php.ini file exist.

1. CWP Admin, Webserver Settings, Webservers Conf Editor, PHP-FPM
2. php-fpm74 tab
3. Edit a user account conf
4. Add to the bottom: php_admin_value[disable_functions] = shell, shell_exec, system
5. Restart/Reload Apache and PHP-FPM

Re: PHP disable_functions for separated vhost
« Reply #31 on: January 27, 2021, 06:49:02 PM »
I've exhausted the ideas that I have, for now, short of providing you with a test VPS.  :-\