How to Enable exec() in PHP-FPM?

 1) Login to server via SSH.

2) Check the PHP version of the server using the below command.

#php -v

3) Then open the PHP-FPM configuration file.

# vi /opt/cpanel/ea-php74/root/etc/php-fpm.d/d.ytmp3.su.conf

4) Then you will find the exec() function in the disabled function list.

php_admin_value[disable_functions] = passthru,shell_exec,system


restart phpfpm


/scripts/restartsrv_cpanel_php_fpm
/scripts/restartsrv_apache_php_fpm




































Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation