Overwriting php.ini

  • March 3, 2013
‚ÄčIf you need to overwrite the php.ini from the server (such that some variables are not what you are looking for), try this way: (it's only working for suPHP server configuration)

1. create your own php.ini in public_html and fill in the variable for example:
upload_max_filesize = 160M
post_max_size = 150M
memory_limit = 160M
upload_tmp_dir = 160M
max_execution_time = 180
;*Hide our info
expose_php = Off
;*Turn off for performance
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
proc_open = On

2. In the .htaccess, add this line:
suPHP_ConfigPath /home/<<your cpanel userid>>/public_html

How helpful was this article to you?

Posting has been disabled.