Use Custom php.ini file Print

  • php.ini, customer php config, .htaccess, suphp
  • 0

It is possible to configure individual account php limits via a .htaccess. To do so the following setups will have to be done:

1) Create a php.ini file with the desired php values.
2) Add 'suPHP_ConfigPath /home/username/path/to/php.ini' to your .htaccess.


1) In .htaccess under public_html, add the following:

suPHP_ConfigPath /home/user/public_html 
<Files php.ini> 
order allow,deny 
deny from all 

2) In php.ini under public_html add the following, or any other settings that you want to use:

register_globals = On 
allow_url_fopen = On
upload_max_filesize = 80M 
post_max_size = 80M 
memory_limit = 80M 
upload_tmp_dir = 80M 
max_execution_time = 20000

Was this answer helpful?

« Back

Powered by WHMCompleteSolution