Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    260

    apache out of work after modifying httpd.conf

    Hello

    I added some lines to virtualhost of one of my domains in httpd.conf but after restarting the apache does not work and all sites on my server went down.
    I turned back to httpd.conf and removed those lines and retried to restart the apache but it doesn't restart!

    Please help me
    All websites are down

  2. #2
    Join Date
    Jan 2011
    Posts
    451
    Hello,

    Post the results of

    >> service httpd configtest
    >> tail -f /usr/local/apache/logs/error_log

    to understand what is causing the issue.
    " Your work is to discover your work and then with all your heart to give yourself to it. "

    That's the mark of a true professional !

  3. #3
    Join Date
    Apr 2010
    Posts
    260
    This is the reason.
    But that line has not changed!

    service httpd configtest
    Syntax error on line 4183 of /usr/local/apache/conf/httpd.conf:
    Ran off end of LogFormat parsing args to some directive

  4. #4
    Join Date
    Apr 2010
    Posts
    260
    recompiled apache and the issue was solved

  5. #5
    Join Date
    Jan 2011
    Posts
    451
    Hello,

    Okay. Great to hear that issue is resolved. Always take a backup of the file before editing.
    Last edited by cptechie; 05-29-2011 at 07:55 AM. Reason: Changed Info
    " Your work is to discover your work and then with all your heart to give yourself to it. "

    That's the mark of a true professional !

  6. #6
    Join Date
    Apr 2010
    Posts
    260
    Here it is
    CustomLog /usr/local/apache/domlogs/******.com-bytes_log "%{%s}t %I .\n%{$

Similar Threads

  1. apache 2 - httpd.conf
    By tomazo in forum Dedicated Server
    Replies: 12
    Last Post: 09-15-2008, 08:56 PM
  2. Apache 2.2 and httpd.conf
    By azn_romeo_4u in forum Hosting Security and Technology
    Replies: 2
    Last Post: 03-06-2008, 07:37 AM
  3. Modifying httpd.conf indirectly
    By hardjoko in forum Hosting Security and Technology
    Replies: 5
    Last Post: 01-05-2007, 02:20 PM
  4. editing the /apache/conf/httpd.conf in Cpanel by any user?
    By Ironlung in forum Web Hosting Lounge
    Replies: 0
    Last Post: 11-09-2001, 02:25 AM
  5. help - modifying the apache http.conf with a script
    By rmartin in forum Hosting Security and Technology
    Replies: 6
    Last Post: 08-16-2001, 07:28 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
  •