How to change a php.ini value?

We use suPHP in all of our servers. So you can modify your php.ini value very easily!

All you need to do is just set the suPHP configpath so that all other subdirectories in your public_html takes that php.ini as its default configuration file. To do this put the following line in your .htaccess:

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/public_html/
</IfModule>

Replace "username" with your cPanel Username.

Then create php.ini file under public_html folder.

You can provide value in php.ini to override any php limit. For ex.

post_max_size = 1000M
upload_max_filesize = 1000M

Răspunsul a fost util? 21 utilizatori au considerat informația utilă

Articole similare

500 Internal Server Error

Internal Server Error help, 500 error Internal server errors can be caused by a few different...

Disable caching with .htaccess

Quick .htaccess snippet to disable browser caching by modifying Cache-Control, Pragma, and...

Do you provide AwStats?

Yes, we provide AWSTATS most of the servers of bergehost Networks and it is updated automatically...

How to add site on Cloudflare? - Prevent DDoS and SpamBot attack

Signing up for CloudFlare is incredibly easy and takes less than 5 minutes. This article outlines...

How to Block certain IP address?

Web servers can host many different domains on one hosting account under Linux/Apache, and public...