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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

.htaccess - Fun with it !

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...

Cant Access my site?

We receive lots of queries from our client saying that why i'm not being able to access my site....

Do you provide AwStats?

Yes, we provide AWSTATS most of the servers of TechPlusHost.com 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...