Results 1 to 2 of 2

Thread: Easy Apache never gets through httpd.conf

  1. #1
    Member
    Join Date
    May 2004
    Location
    USA
    Posts
    413
    cPanel/WHM Access Level

    Root Administrator

    Default Easy Apache never gets through httpd.conf

    cPanel 11.18.1-C20683

    Easy Apache always compiles everything fine, but it never likes httpd.conf and "restores working apache"

    Here is the log with the error. Notice the PORT line is blank for some reason. The only thing I can think is that I have the main "Listen" line commented out, and I use custom "Listen" lines in httpd.conf in the form of:

    #Listen 80
    Listen xx.xx.xx.xx:80
    Listen yy.yy.yy.yy:80

    Is that causing CPanel to get confused?

    Here is the error log:


    Code:
    Updating Apache configuration
    Updating Apache configuration
    Updating Apache configuration
    Distilled successfully
    !! Failed to utilized existing Apache configuration file. Resetting Apache configuration to default. !!
    Updating Apache configuration
    Updating Apache configuration
    Updating Apache configuration
    Updating Apache configuration
    Updating Apache configuration
    Distilled successfully
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1204168157):
    Configuration problem detected on line 48 of file /usr/local/apache/conf/httpd.conf.1204168157:
            Port takes one argument, A TCP port number
    
            --- /usr/local/apache/conf/httpd.conf.1204168157 ---
            42KeepAliveTimeout 15
            43MinSpareServers 5
            44MaxSpareServers 10
            45StartServers 5
            46MaxClients 150
            47MaxRequestsPerChild 0
            48 ===> Port  <===
            49AccessFileName .htaccess
            50UseCanonicalName On
            51DefaultType text/plain
            52HostnameLookups Off
            53ErrorLog /usr/local/apache/logs/error_log
            54LogFormat "&#37;h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
            --- /usr/local/apache/conf/httpd.conf.1204168157 ---
    
     !!
    !! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
    !! Done Archiving successful build !!
    !! Restoring original working apache !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Executing '/scripts/initfpsuexec' !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1204167675' !!
    Last edited by jandafields; 02-27-2008 at 09:33 PM.

  2. #2
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/WHM Access Level

    DataCenter Provider

    Arrow

    Hi,

    Yes, that is what can be seen through the logs, you can comment one of the entries in the httpd.conf file & check if the Apache updater works out.

Similar Threads

  1. WHM - http.conf Easy/Apache, where did my include go?
    By prince_mallow in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 09-24-2010, 07:19 PM
  2. Easy Apache not working - httpd can't restart
    By fisiculturista in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 02-11-2008, 01:12 PM
  3. httpd.conf (apache 2.2)
    By flash7 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 12-27-2007, 05:57 AM
  4. Apache Issue - httpd.conf
    By stephenbrown in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 07-13-2007, 11:58 AM