Error 500 php_value .htaccess

0 min read 76 words

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

<br> php_value upload_max_filesize 250M<br> php_value post_max_size 250M<br>

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:

<br> upload_max_filesize = "250M"<br> post_max_size = "250M"<br>

Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags