By PhDs, (© Copyright reserved),
June 13, 2009 at 8:27 am
· Category: WordPress
If you have Apache ModSecurity installed and try to edit your blog, you mayget this error:
“Method Not Implemented POST to /wp-admin/post.php not
supported.”
Your apache error log, e.g., /var/log/httpd/white_board_ssl_error_log,
may have a line like this:
ModSecurity: Access denied with code 404 (phase 4).
To fix it, open your http virtual host file add this line:
SecRuleInheritance Off
e.g.,
<Directory
“/home/xxx/webapps”>
…
SecRuleInheritance Off
…
</Directory>
Permalink
By PhDs, (© Copyright reserved),
March 4, 2009 at 1:16 pm
· Category: WordPress
If you get 500 Internal Service Error with WordPress, and you are using ModSecurity, here is how to solve the problem:
1, You try to visit your front page, and see this error:
Error Message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, innovita@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
2, Check http log file
tail /var/log/httpd/patentdb-error.log
You see
ModSecurity: Output filter: Response body too large (over limit of 524288, total not specified)
3, Now you can fix it:
Open file with vi /etc/httpd/modsecurity.d/modsecurity_crs_10_config.conf, you will see these lines:
SecRequestBodyAccess On
SecResponseBodyAccess On
SecResponseBodyMimeType (null) text/html text/plain text/xml
SecResponseBodyLimit 524288
Change 524288 to larger value, or change option ‘SecResponseBodyAccess’ to Off, save and restart apache
apachectl restart
Permalink
By PhDs, (© Copyright reserved),
October 21, 2008 at 7:47 pm
· Category: WordPress
Find wp-config.php file in your blog root directory, and add this line:
define(’WP_POST_REVISIONS’, false);
Permalink