Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    kib
    kib is offline
    Registered User
    Join Date
    Dec 2004
    Posts
    2

    Default apache wont start

    I have tried everything I can think of including downloading and reinstalling cpanel itself.

    here is the output from easyapache
    Code:
    root@stan [~]# apachectl restart
    -bash: apachectl: command not found
    root@stan [~]# /scripts/easyapache 
    --02:23:54--  http://layer1.cpanel.net/buildapache.sea
               => `buildapache.sea'
    Resolving layer1.cpanel.net... done.
    Connecting to layer1.cpanel.net[69.72.164.150]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 135,907 [text/plain]
    
    100%[==================================================================================================================================>] 135,907      452.98K/s    ETA 00:00
    
    02:23:55 (452.98 KB/s) - `buildapache.sea' saved [135907/135907]
    
    Creating directory buildapache
    Verifying archive integrity... All good.
    Uncompressing buildapache..........................................................................................................................
    Verifying compiler and libs....Sync Source: http://httpupdate.cpanel.net/RELEASE/scripts
    Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/.cpanelsync.lock....Trying httpupdate.cpanel.net @ 69.72.164.151
    100%......Done
    Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/.cpanelsync.bz2....Trying httpupdate.cpanel.net @ 69.72.164.151
    35%...71%...100%......Done
    Verifying installation....Using RPM Backend: RPM version 4.2
    Using RPM Backend: RPM version 4.2
    Done
    Done
    ********************************
    This is buildapache version 10.0.1b
    ********************************
    
    If you have installed third party modules that buildapache does not install, you will probably need to recompile them after apache is rebuilt.  You may experience an unusable apache that produces segmentation faults until the old modules are recompiled or removed.
    
    Select skill level:
       If it is possible for you to run phpsuexec, we recommend you do this
       by choosing option 2, or using the advanced options.
    
       phpsuexec combinded with webroot protection will prevent people
       from reading other users webroots.   If you are unable to use
       phpsuexec we recommend you enable PHP open_basedir security
       inside of Web Host Manager.
    
       The following does not work with phpsuexec:  php commands in
       .htaccess, php http authentication.
    
    1) Beginner without/phpsuexec + webroot protection support (*** DEFAULT ***)
    2) Beginner with/phpsuexec support + web root protection
    3) Beginner with/php mcrypt support (if php will not compile, you must choose option 1)
    4) Beginner with/php gd+freetype support (if php will not compile, you must choose option 1)
    5) Beginner with/php gd+freetype+mcrypt support (if php will not compile, you must choose option 1)
    6) Advanced (Experts Only, At Your Own Risk)
    7) Advanced [Load Previous Config] (Experts Only, At Your Own Risk)
    8) Failsafe mode (Resets apache config to default, USE ONLY AS A LAST RESORT)
    ---->1
    Apache automatically configured!
    httpd: bad group name owned
    /etc/rc.d/init.d/httpd start: httpd could not be started
    Setting /home permissions to 0711......Done
    Setting permissions for.....nfsnobody...cpanel...mailman...globalrs...acidwebh...demo...xxxingc...ruin...solija...zymmie...werdex...myrddin...cypher...jose...ownage...pyru192...owned......Done
    02:24:15 URL:http://layer1.cpanel.net/buildapache/1/php-4.3.10.tar.gz [4892209/4892209] -> "php-4.3.10.tar.gz" [1]
    Untarring php....Done
    Applying CURL curl_formfree patch
    patching file ext/curl/curl.c
    Hunk #1 succeeded at 563 (offset 18 lines).
    Hunk #2 succeeded at 892 (offset 7 lines).
    configure php-4.3.10...(--with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib)..................................Done
    make -j 1 php-4.3.10...(clean)....Done
    make -j 1 php-4.3.10....................................................................................................................................Done
    make php-4.3.10...(install)..............Done
    httpd: bad group name owned
    /etc/rc.d/init.d/httpd start: httpd could not be started
    configure php-4.3.10...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib)................Done
    make -j 1 php-4.3.10...(clean)....Done
    make -j 1 php-4.3.10...................................................................................................Done
    make php-4.3.10...(install).............Done
    initfpsuexec: using apache 2.x support
    PHP version file is up to date
    Executing /scripts/postbuildapache (if exists)...Done
    httpd: bad group name owned
    /etc/rc.d/init.d/httpd start: httpd could not be started
    Waiting for httpd to restart..............finished.
    
    
    httpd has failed, please contact the sysadmin.
    root@stan [~]#
    Of course I tried just about every option that script offers by now. ITs as if apache isnt installed at all and cpanel refuses to try to install it.
    Things worked great until a few hours ago it goes down on a routine restart of apache.

    the httpd, httpd.worker, and apachectl binaries are no where to be found. I lfed them to locate and to find / and turned up nothing. wince locate didnt have record of them those files haveb een gone a while now.

    any ideas?

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    The reason is right there :P

    Have a look in /usr/local/apache/conf/httpd.conf for a vhost entry for user "owned" <-- that alone is rather suspicious username. Comment it out, and run "service apache configtest" you may then get further errors. To restart apache after the conf is fixed: /scripts/restartsrv_httpd
    Beau Henderson

  3. #3
    kib
    kib is offline
    Registered User
    Join Date
    Dec 2004
    Posts
    2

    Default

    ok that got it
    now how did such a thing get like that

    actually the group name was suppose to be owned2kk after looking at vipw and /etc/groups

    I edited the group name and apache started up perfectly

Similar Threads & Tags
Similar threads

  1. apache just wont start :(
    By bhanuprasad1981 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-22-2010, 09:27 PM
  2. Apache wont restart, start, etc.
    By distincthead in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-15-2005, 11:58 AM
  3. Apache Wont Start - Urgent
    By PaulioTheGreat in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 06-01-2005, 08:19 AM
  4. apache wont start
    By netnameus in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 04-01-2005, 01:13 PM
  5. was updating ssl cert, now apache wont start
    By flamesburn in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-13-2004, 06:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube