Archive for February, 2012
Apache error: .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
This time a simple error and simple explanation. I installed a nice WAMP package called WampServer and I got an error on a site that worked fine on other servers. The error I found in the logs was:
.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
PHP Warning: POST Content-Length of 1649460972 bytes exceeds the limit of 1073741824 bytes in Unknown on line 0
Recently I wrote an upload script in PHP, set the limits using .htaccess:
php_value upload_max_filesize “1.99G”
php_value post_max_size “1.99G”
and then I got this strange error:
PHP Warning: POST Content-Length of 1649460972 bytes exceeds the limit of 1073741824 bytes in Unknown on line 0
while trying to upload 1.53 GB file. But why the error said I exceeded 1GB limit?