Enable/Disable certain php functions for your website

Create a folder named suphpconfig inside your home directory i.e. /home/cpanelusername and add the desired functions with On on Off to a file named php.ini inside /home/cpanelusername/suphpconfig 

root@server61 [/home/cpanelusername/suphpconfig]# cat php.ini 
enable_dl = On 
safe_mode = Off 

Next create a .htaccess ( if it does not exist) inside public_html and add the line : 
suPHP_ConfigPath /home/cpanelusername/suphpconfig 

Here is an example:

root@server61 [/home/cpanelusername/suphpconfig]# cat /home/cpanelusername/public_html/.htaccess 
suPHP_ConfigPath /home/cpanelusername/suphpconfig 
root@server61 [/home/cpanelusername/suphpconfig]# 


  • 2 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

register_globals On

register_globals On 1) Make a folder called suphpconfig inside /home/username 2) create a new...

mod_userdir Protectio

We have enabled mod_userdir Protection on the server. Apache's mod_userdir allows...

suphp more info

Advantages of suphp1) suphp allows php files to run as the cpanel user instead of apache user (...

suphp tips

This is the most flexible way of serving PHP requests and tends to be very secure. PHP scripts...

How do I send email from ASP using SMTP Authentication.

Please note that our mail server is configured with Authentication. Below is...

Powered by WHMCompleteSolution