The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache failed, syntax ok

Discussion in 'EasyApache' started by Secret Agent, Jan 24, 2006.

  1. Secret Agent

    Secret Agent Guest

    root@server2 [~]# tail /usr/local/apache/logs/error_log
    [Tue Jan 24 14:25:35 2006] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Tue Jan 24 14:25:36 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Tue Jan 24 14:25:36 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Tue Jan 24 14:25:36 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Tue Jan 24 14:25:36 2006] [notice] Apache/1.3.34 (Unix) FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a configured -- resuming normal operations
    [Tue Jan 24 14:25:36 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Tue Jan 24 14:25:36 2006] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Tue Jan 24 14:25:36 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
    [Tue Jan 24 14:25:36 2006] [alert] Child 21464 returned a Fatal error... \nApache is exiting!
    [Tue Jan 24 14:25:36 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive



    httpd configtest shows syntax ok

    I did /scripts/easyapache #8 three times already
     
  2. jdarow

    jdarow Well-Known Member
    PartnerNOC

    Joined:
    May 30, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Michigan, US
    cPanel Access Level:
    DataCenter Provider
    what does it say when you start apache?

    service httpd start
     
  3. Secret Agent

    Secret Agent Guest

    root@server2 [/scripts]# service httpd start
    /etc/init.d/httpd start: httpd started
    root@server2 [/scripts]# service httpd restart
    /etc/init.d/httpd restart: httpd not running, trying to start
    /etc/init.d/httpd restart: httpd started


    /etc/httpd/etc/httpd.conf is empty also

    I ran /scripts/rebuildhttpdconf and it did not fix it


    I recompiled again and it wiped out my httpd.conf file AGAIN.

    This is about the 7th time I've recompiled this stupid cpanel system to no avail.


    During /scripts/easyapache (#8) compile I got this:

    Untarring php....Done
    Applying CURL curl_formfree patch
    patching file ext/curl/curl.c
    Hunk #1 succeeded at 590 (offset 45 lines).
    Hunk #2 succeeded at 904 (offset 19 lines).
    configure php-4.4.1...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib)...........................Done
    make -j 4 php-4.4.1...(clean)....Done
    make -j 4 php-4.4.1................................................................Done
    make php-4.4.1...(install)....Done
    make: *** [install-sapi] Error 1
    fopen: No such file or directory
    httpd: could not open document config file /usr/local/apache/conf/httpd.conf
    /etc/rc.d/init.d/httpd start: httpd could not be started
    configure php-4.4.1...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib).............Done
    make -j 4 php-4.4.1...(clean)....Done
    make -j 4 php-4.4.1............................................Done
    make php-4.4.1...(install)............Done
    initfpsuexec: using apache 1.x support
    PHP version file has been updated to 4.4.1
    Executing /scripts/postbuildapache (if exists)...Done
    /etc/rc.d/init.d/httpd start: httpd started
    Waiting for httpd to restart..............finished.


    httpd has failed, please contact the sysadmin.
     
  4. Secret Agent

    Secret Agent Guest

    I did configure file rollback for httpd.conf

    Apache status in whm shows
    Unable to retrieve apache status [a fatal error or timeout occurred while processing this directive]

    Restart via whm shows failed again
     
  5. Secret Agent

    Secret Agent Guest

    -r-------- 1 root root 847K Jan 24 15:03 httpd.conf


    It changed permissions by itself. What should I chmod it to?
     
  6. Secret Agent

    Secret Agent Guest

    chmod 600 httpd.conf

    root@server2 [/usr/local/apache/conf]# service httpd restart
    /etc/init.d/httpd restart: httpd not running, trying to start


    (three times, same error 'not running')
     
  7. Secret Agent

    Secret Agent Guest

    root@server2 [/scripts]# service httpd restart
    /etc/init.d/httpd restart: httpd not running, trying to start
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.59:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.57:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.62:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.51:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.49:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.54:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.52:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.42:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.43:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.122:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.121:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.126:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.121:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.123:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.123:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.119:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.119:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.119:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.106:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.105:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.105:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.105:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.105:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.65.109:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.104:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.108:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.108:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.108:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.107:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.101:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.100:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.100:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.99:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.102:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.67.102:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.168:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.170:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.170:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.170:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.170:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.170:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.164:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.164:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.164:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.164:80 has no VirtualHosts
    [Tue Jan 24 15:48:58 2006] [warn] NameVirtualHost xxx.x02.68.198:80 has no VirtualHosts
    /etc/init.d/httpd restart: httpd started
     
    #7 Secret Agent, Jan 24, 2006
    Last edited by a moderator: Jan 24, 2006
  8. Secret Agent

    Secret Agent Guest

    Can someone please help me out? Apache has been down for about 5 hours, cpanel has not responded to my ticket from yesterday regarding boxtrapper on the same server

    Please give me a lift :)
     
  9. Secret Agent

    Secret Agent Guest

    Recompiling apache is wiping out my httpd.conf

    /scripts/rebuildhttpd.conf
    does not restore the virtual hosts either

    Configure rollback is screwed up.
     
  10. Secret Agent

    Secret Agent Guest

    Apache logs:


    [Tue Jan 24 17:04:33 2006] [error] [client 200.165.220.178] File does not exist: /usr/local/apache/htdocs/site/imagens/formatos_banners/bn_bottom.gif
    [Tue Jan 24 17:04:34 2006] [error] [client 68.77.88.130] File does not exist: /usr/local/apache/htdocs/albums/album07/banner3_400x50.gif
    [Tue Jan 24 17:04:35 2006] [error] [client 87.74.63.10] File does not exist: /usr/local/apache/htdocs/refurbished-laptops-uk/cheap-laptops-uk.htm
    [Tue Jan 24 17:04:36 2006] [error] [client 65.55.246.102] File does not exist: /usr/local/apache/htdocs/robots.txt
    [Tue Jan 24 17:04:36 2006] [notice] caught SIGTERM, shutting down
    [Tue Jan 24 17:05:57 2006] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Tue Jan 24 17:05:58 2006] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Tue Jan 24 17:07:01 2006] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
     
  11. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16

    From my past experience you have to remove/rename httpd.conf before you use /scripts/rebuildhttpd.conf this should then create a new file.

    Not had a problem that needed the use of /scripts/rebuildhttpd.conf for a couple of years but at the time thats what I had to do to rebuild it.
     
  12. simplestar

    simplestar Well-Known Member

    Joined:
    Nov 15, 2005
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    6
    :eek: Maybe try going into 'Config Rollback', copy one of the good configurations and pasting it directly into httpd.conf.
     
Loading...

Share This Page