Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    India
    Posts
    115

    Question Modsecurity Rules & 500 Error

    HI

    I am having the Modsec 2.5.9 I am using the defaults rules by the cpanel when i try to update the rules along with default rules given by the cpanel i am getting internal server error (500 Error)

    The rules i tried to implement are from

    LENOVOhost Network Solutions, designs the technology of Tomorrow
    RVSkins, Fantastico, 24/7 Support, FFMPEG, SLA Uptime, Daily Backups, End-User Support & More
    Support Desk Software | Sales, Billing & Tech End-user Support | Hosting Templates

  2. #2
    Join Date
    Jul 2007
    Posts
    2,051
    Check the apache error log to find out what exactly is being blocked by Mod Security.
    Prashant T.

    Don't run after Success. Run after Excellence and Success will soon follow.

  3. #3
    Join Date
    Mar 2007
    Location
    India
    Posts
    115
    Quote Originally Posted by prashant1979 View Post
    Check the apache error log to find out what exactly is being blocked by Mod Security.
    Hi

    I have checked that too i didnt find any error in the logs at the time of error when i recomplie the apache it works good again
    LENOVOhost Network Solutions, designs the technology of Tomorrow
    RVSkins, Fantastico, 24/7 Support, FFMPEG, SLA Uptime, Daily Backups, End-User Support & More
    Support Desk Software | Sales, Billing & Tech End-user Support | Hosting Templates

  4. #4
    Join Date
    Mar 2007
    Location
    India
    Posts
    115
    I am getting the https down getting the error

    Syntax error on line 835 of /usr/local/apache/conf/modsec2.user.conf:
    Error creating rule: Could not open phrase file "/usr/local/apache/conf/sql.txt": No such file or directory
    If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.

    You should run /scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.

    Also be sure to examine apache's variouse log files.
    Apache Restart Output:
    Syntax error on line 835 of /usr/local/apache/conf/modsec2.user.conf:
    Error creating rule: Could not open phrase file "/usr/local/apache/conf/sql.txt": No such file or directory
    LENOVOhost Network Solutions, designs the technology of Tomorrow
    RVSkins, Fantastico, 24/7 Support, FFMPEG, SLA Uptime, Daily Backups, End-User Support & More
    Support Desk Software | Sales, Billing & Tech End-user Support | Hosting Templates

  5. #5
    Join Date
    Jul 2007
    Posts
    2,051
    You can check the Mod Security logs available in WHM to find out what rule is blocking the script and throwing the 500 internal server error.
    Prashant T.

    Don't run after Success. Run after Excellence and Success will soon follow.

  6. #6
    Join Date
    Mar 2007
    Location
    India
    Posts
    115
    Hi

    I am getting the httpd down too
    LENOVOhost Network Solutions, designs the technology of Tomorrow
    RVSkins, Fantastico, 24/7 Support, FFMPEG, SLA Uptime, Daily Backups, End-User Support & More
    Support Desk Software | Sales, Billing & Tech End-user Support | Hosting Templates

Similar Threads

  1. HOW TO : ModSecurity
    By seeker2002 in forum Hosting Security and Technology Tutorials
    Replies: 16
    Last Post: 05-07-2011, 10:03 PM
  2. mod_rewrite rules causing 404 entries in error.log file
    By chriswb in forum Programming Discussion
    Replies: 2
    Last Post: 04-16-2009, 01:23 AM
  3. modsecurity 2.5.0
    By xsupportx in forum Hosting Security and Technology
    Replies: 3
    Last Post: 02-22-2008, 04:30 PM
  4. Modsecurity custom error page?
    By scottg111 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 03-17-2006, 07:36 PM
  5. Overactive modsecurity rules help
    By WestBend in forum Hosting Security and Technology
    Replies: 8
    Last Post: 03-28-2005, 03:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •