Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php_value is not working in .htaccess files

Tags:

php

.htaccess

I am using the code in .htaccess files like this:

<Directory "/home/star/public_html/test">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory> 
php_value upload_max_filesize 32M

It is giving the Internal Server Error. Can any one help me to correct it.

Thanks in advance

like image 641
Kabir Avatar asked Sep 15 '25 15:09

Kabir


1 Answers

If you are running PHP in "CGI mode" and not as an Apache module, then using php_value as such will throw that "Internal Server Error". In such case, set upload_max_filesize in php.ini.

like image 98
vee Avatar answered Sep 18 '25 09:09

vee