Starx
Starx

Reputation: 79069

.htaccess Error, While modifying php configuration

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

Upvotes: 1

Views: 2587

Answers (2)

Pekka
Pekka

Reputation: 449843

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

Upvotes: 4

Your Common Sense
Your Common Sense

Reputation: 158004

See web-server's error_log for the details.

Upvotes: 1

Related Questions