Dejin

Member
Sep 24, 2006
5
0
151
Hello folks,
I how can I change php.ini file? Is it possible to change some values by Cpanel?
Like;
max_execution_time
memory_limit
post_max_size
file_uploads
upload_max_filesize
How can I change their values?
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Hello.

put lines like:

php_admin_value max_execution_time XX
php_admin_value memory_limit XX
php_admin_value post_max_size XX
php_admin_value file_uploads XX
php_admin_value upload_max_filesize XX

in VIRTUAL HOST of your domain name. All VIRTUAL HOSTS are located in /usr/local/apache/conf/httpd.conf.

Additionally, you can put the lines:

php_value max_execution_time XX
php_value memory_limit XX
php_value post_max_size XX
php_value file_uploads XX
php_value upload_max_filesize XX

into the file .htaccess of your account. It is located in root of /public_html. If it doesn't exist then create it.
 

mehrdad abed

Well-Known Member
Mar 18, 2006
128
0
166
Hi

please notice that some options in httpd.conf are not compatible with phpsuexe, in this way you cannot apply some php.ini parameters through apache and you probably should have a local php.ini in each directory.
 

vijeesh

Member
May 26, 2006
23
0
151
Yes,it is better if you can upload a custom php.ini file with the new valuea to the folders where the php scripts are running.