Thursday, February 17, 2011

how to Disable exec PHP function on cPanel server?

On a cPanel server there is always security risk of PHP functions for eg. exec if you want to disable this function on your cPanel server you can do so from your servers php.ini
You can find the php.ini of your server by the following command:
root@server# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

Then, edit that file and search for disable_functions and add the function exec in front of that. source

3 comments:

  1. Offshorededicated.net committed to provide reliable anonymous web hosting with protection from any encroachment, maintaining our client’s rights to full freedom of information and independence.

    ReplyDelete
  2. I use only high quality materials - you can see them at: Hosting Cpanel

    ReplyDelete
  3. Sweet website , super design , real clean and utilize friendly . https://onohosting.com/

    ReplyDelete