Error 500 php_value .htaccess

I noticed on some server setups I could not do the following inside a .htacess file:


php_value upload_max_filesize 250M
php_value post_max_size 250M

I was getting an error 500 Internal Server Error with the above code in the .htaccess file.

What to do to correct this is create a file called php.ini and save it in the same location as your .htaccess file and enter the following code instead:


upload_max_filesize = "250M"
post_max_size = "250M"

0 0 vote
Article Rating
Subscribe
Notify of
guest
2 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Rafael Wendel Pinheiro

Tanks for this post. I solve a big problem.

Bye

Olivier Lemire
9 years ago

Oh yea ! Thank you very much I didn’t think of that.