Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    436

    Question httpd wont restart [ rules problem ]

    Hello,

    I have a small proble, i just added a new modsecurity rules in my csf firewall, after that am trying from the shell to restart my httpd server and it's give me this error,

    Code:
    [email protected] [/etc/httpd/conf]# /etc/init.d/httpd restart
    Syntax error on line 112 of /usr/local/apache/conf/modsec2.user.conf:
    ModSecurity: Metadata actions (id, rev, msg, tag, severity, logdata)  can only be specified by chain starter rules.
    httpd not running, trying to start
    [email protected] [/etc/httpd/conf]#
    i search for any rules to uncomment it but didn't find it...

    could anyone help me with this ?

  2. #2
    Join Date
    Jan 2008
    Location
    Jax, FL
    Posts
    2,707
    What is line 112 in /usr/local/apache/conf/modsec2.user.conf ?
    Daniel | Server Complete, LLC
    Windows VPS // Dedicated Servers // Backup Services
    Wholly owned hardware and self operated network (AS19531) in Jacksonville, FL

  3. #3
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    436
    fixed, i just uncomment out the 112 line and restart it back.

    Thanks.

  4. #4
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    436
    Thanks SC,

    i got an error with modsecurity at this line, so i comment it "#" and after that i try to restart the httpd,The error was

    Code:
    [email protected] [/etc/httpd/conf]# tail -f /etc/httpd/logs/modsec_audit.log
    --2fd3694b-H--
    Message: Access denied with code 406 (phase 2). Pattern match "(ht|f)tps?:/" at ARGS:linkurl. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "109"] [id "300018"] [rev "3"] [msg "Generic PHP code injection protection via ARGS"] [severity "CRITICAL"]
    Apache-Error: [file "core.c"] [line 3648] [level 3] File does not exist: /home/www/public_html/406.shtml, referer: http://www.com/links/
    Action: Intercepted (phase 2)
    Stopwatch: 1250042963044845 1717 (758 1306 -)
    Producer: ModSecurity for Apache/2.5.9 (http://www.modsecurity.org/).
    Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_perl/2.0.4 Perl/v5.8.8
    
    --2fd3694b-Z--
    could you please let me know how to make this off ? i try to comment it "#" but the httpd wont start ..

  5. #5
    Join Date
    Sep 2008
    Location
    NewYork
    Posts
    436
    fixed,

    Thanks

Similar Threads

  1. Apache/httpd wont restart?
    By aldo in forum Hosting Security and Technology
    Replies: 6
    Last Post: 01-25-2008, 07:32 PM
  2. problem in restart httpd
    By robocap in forum Hosting Security and Technology
    Replies: 0
    Last Post: 09-12-2007, 01:42 AM
  3. Httpd Restart Problem In WHM
    By nabeelamjad in forum Hosting Security and Technology
    Replies: 5
    Last Post: 01-29-2007, 08:43 AM
  4. apache wont restart
    By Chris2k in forum Hosting Security and Technology
    Replies: 27
    Last Post: 03-07-2005, 01:23 AM
  5. Apache wont restart, Need Help :(
    By Apocalypse in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-16-2004, 01:58 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
  •