0

I want to change the post_max_size in live server, for that I have created a file say .htaccess with following data

php_value post_max_size 100M

and placed this .htaccess file in root folder of the project. This worked in local but not working at live Server. Where did I make mistake, please suggest me in right way to increase the post_max_size in live server.

1 Answers1

1

open .htaccess add this line.

php_value upload_max_filesize 99M
php_value post_max_size 100M

If your web server is running php5, I believe you must use php5_value.

for some hosting like Web Fusion, you need to create a file called php.ini and save it in the same location as your .htaccess file.

your method is right, check your .htaccess file is updated successfully or not also,

upload_max_filesize should be less than post_max_size.

If you are getting 500 - Internal server error that means you don't have permission to set these values by .htaccess. You have to contact your web server providers and ask to set AllowOverride Options for your host or to put these lines in their virtual host configuration file.

Sayed Mohd Ali
  • 2,156
  • 3
  • 12
  • 28