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

  • 150 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

Related Articles

How do I access the CPanel?

The best way to get to cpanel is http://Your-Domain.com/cpanel/or http://Your-Domain.com:2082/...

What is the CPanel?

The cPanel control panel is an end-user administration interface. From here you will be able to...

Can I upgrade/downgrade my hosting plan?

Yes, you can easily upgrade to one of our bigger plans or downgrade to small plan at any...

.htaccess Techniques

Introduction The Apache web server has a number of configuration options that are available to...

500 Internal Server Error

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