tags:

views:

123

answers:

2

I have try to put theese 2 lines

php_value post_max_size 30M
php_value upload_max_filesize 30M

in my root .htaccess file but that brings me "internal server error" message ...
php5 is running on the server
I don't have access to php.ini so i think htaccess is my only chance.
Can you tell me where is the mistake?
Thanks in advance

+1  A: 

php_value upload_max_filesize 30M is correct.

You will have to contact your hosters -- some don't allow you to change values in php.ini

Kerry
Thank you but ini_set() is not working for upload_max_filesize and post_max_size :/
T1000
when you say "not working" do you mean, not bringing about the desired result / producing an error / something else?
Kerry
No error, just don't change the value.
T1000
set error_reporting( E_ALL ) and see if anything shows. Other than that, contact your host provider, they should be able to help you. Some block changes to such variables as they don't want you to become a major trafficked site.
Kerry
These options can not be set by ini_set(). See http://www.php.net/manual/en/ini.list.php and http://php.net/manual/en/configuration.changes.modes.php
dev-null-dweller
Changed accordingly
Kerry
+1  A: 

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.

dev-null-dweller