500 Internal Server Errors

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: 500 Internal Server Errors

Post by Greg »

Inserting this phrase in any page or news item is causing a 500 internal server error on all of the website I manage. Thsi happens with or without the WYSIWYG editor on. Some sites have Pretty URL's on some don't. All sites are at 1.0.2 running on BSD Apache MySql PHP 4.4.4
Choose from all objects or those associated with a given domain.
The words 'Choose from' seem to be the problematic word combination, as I can insert 'all objects or those associated with a given domain' without creating the error.

Any Ideas?
Greg
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: 500 Internal Server Errors

Post by Greg »

The server error log shows the following
[Mon Jan 15 19:06:41 2007] [error] [client 71.17.123.189] mod_security: Access denied with code 500. Pattern match "(insert[[:space:]] into. values|select.*from. [a-z|A-Z|0-9]|select. from|bulk[[:space:]] insert|union. select|convert. \\\\(.*from)" at POST_PAYLOAD [id "300016"][rev "2"] [msg "Generic SQL injection protection"] [severity "CRITICAL"] [hostname "www.gregbloor.com"] [uri "/admin/editcontent.php?content_id=18&page="]
[Mon Jan 15 19:07:20 2007] [error] [client 71.17.123.189] mod_security: Access denied with code 500. Pattern match "(insert[[:space:]] into. values|select.*from. [a-z|A-Z|0-9]|select. from|bulk[[:space:]] insert|union. select|convert. \\\\(.*from)" at POST_PAYLOAD [id "300016"][rev "2"] [msg "Generic SQL injection protection"] [severity "CRITICAL"] [hostname "www.gregbloor.com"] [uri "/admin/editcontent.php?content_id=18&page="]
[Mon Jan 15 19:07:30 2007] [error] [client 71.17.123.189] mod_security: Access denied with code 500. Pattern match "(insert[[:space:]] into. values|select.*from. [a-z|A-Z|0-9]|select. from|bulk[[:space:]] insert|union. select|convert. \\\\(.*from)" at POST_PAYLOAD [id "300016"][rev "2"] [msg "Generic SQL injection protection"] [severity "CRITICAL"] [hostname "www.gregbloor.com"] [uri "/admin/editcontent.php?content_id=18&page="]
Anyone have any suggestions as I have no idea what this information is telling me.
Greg
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: 500 Internal Server Errors

Post by Greg »

Seems to be a problem with editcontent.php.


I created a new page - no problem.

Edited the page to add some content and got the Internal Server Error.

Deleted the page.

Created a new page with the original information AND the information I tried to add using edit page - NO internal server error.



Help - I cannot edit any existing pages?
Greg
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: 500 Internal Server Errors

Post by Greg »

Why would editcontent.php produce this problem and addcontent.php does not?

Looks like I am talking to myself.

could this be part of the answer http://wiki.e107.org/?title=Security:mod_security
Last edited by Greg on Thu Jan 18, 2007 1:14 am, edited 1 time in total.
Greg
Pierre M.

Re: 500 Internal Server Errors

Post by Pierre M. »

Greg wrote: The server error log shows the following
[Mon Jan 15 19:06:41 2007] [error] [client x.y.z.t] mod_security: Access denied...
Anyone have any suggestions as I have no idea what this information is telling me.
Your hosting provider seems to use the webserver module "mod_security" which is denying your software (CMSms) to work as expected. May be you should inform your supplier and ask him to tune its security module accordingly.

PM
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: 500 Internal Server Errors

Post by Greg »

Thanks Pierre - I contacted my hosting service and they changed the configuration of mod_security.
All is working again!
Greg
WebGirl

Re: 500 Internal Server Errors

Post by WebGirl »

I had a similar problem, and after 5 days of stress and drama, I finally discovered that the CHMOD of 777 needed to be changed to 755.

Hope this helps someone else!
Locked

Return to “[locked] Installation, Setup and Upgrade”