tags:

views:

56

answers:

2

If this is not posted in correct place, please migrate it

I kept a .htaccess file in my public_html folder inside the root. When I view the website it is giving server misconfiguration error.

my .htaccess file contains this only

php_value upload_max_filesize 100M
php_value post_max_size 100M

I wonder what may be wrong. Any Ideas

MY ERROR LOG

[Mon Jun 07 17:06:23 2010] [alert] [client 113.199.221.198] /home/wwwcomr/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
[Mon Jun 07 17:04:46 2010] [alert] [client 113.199.221.198] /home/wwwcomr/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
+1  A: 

See web-server's error_log for the details.

Col. Shrapnel
+4  A: 

What Col. Shrapnel says: The error log is the only place to get reliable information.

Re your update:

PHP needs to be running as an Apache module for php_value to work. Source

Pekka
I tried 10000000, but didn't work
Starx
@Starx then look into the logs.
Pekka
I have update my answer with the log report, please see
Starx
@Starx yup, you can use `php_value` only when PHP is running as an Apache module. http://www.php.net/manual/en/configuration.changes.php
Pekka
The error points to and unknown command not a wrong value.
powtac
@pekka, then how to configure this correctly
Starx
@Starx you'd have to set the values in `php.ini` itself, or re-install PHP as a Apache module. The latter would be a question for serverfault.com - if you can, just change it in php.ini.
Pekka
@pekka, I dont have authorization to modify my php.ini
Starx
@Starx then I'm afraid what you are trying to do is not possible I think! You can't use `ini_set` for these specific values, as they need to be set outside the script.
Pekka