Apache/Httpd problem

diaga

New member
Joined
Nov 22, 2004
Messages
3
I have a server at FDCservers.net, and my apache stopped working randomly (but I can still access control panel via port 2222), in my Direct Admin CP, I am getting

"Apache Process is stopped"

If i try any of the options in direct admin, i get something simular to

The following error has occurred
Details
Stopping httpd: [FAILED] Starting httpd: [FAILED]

I have also tried restarting the server numerous times.

As a last resort I contact FDC but I got:

Here is the response made to your ticket. Please do not reply to this email directly, use the link above
to reply.

This helpdesk is only ment for reboots, reinstalls, reverse dns and connectivity issues only. FDCServers does not provide managed services at this time, unfortunately.

-FDCservers

I've asked my admin to take a look at it, and he is stumped. He already tried recomplieing Apache, and this is what he can tell me

Code:
[root@superasian conf]# service httpd start 
Starting httpd: Error:  Apache has not been designed to serve pages while 
        running as root.  There are known race conditions that 
        will allow any local user to read any file on the system. 
        If you still desire to serve pages as root then 
        add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your 
        src/Configuration file and rebuild the server.  It is 
        strongly suggested that you instead modify the User 
        directive in your httpd.conf file to list a non-root 
        user. 
                                                           [FAILED]
I know it from the /etc/httpd/conf/ips.conf file
--
But I don't know whats wrong with it, the file is made by directadmin. It's a error created by thier software. I also recompiled apache using thier compile scripts...

Thanks in advance
 
On or about line 410 of your /etc/httpd/conf/httpd.conf file you should find the following section:

# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group "#-1" on these systems!
#
User apache
Group apache

If those lines exist, then you need to check to see if these exist:

$ grep apache /etc/passwd

$ grep apache /etc/group

to see if apache exists as both a user and a group.

Jeff
 
I cannot find that line
" [ "User/Group" not found ] "

Using the nano ^W command.

Also, from my admin
I will tell you thats no the problem. once you comment out ips.conf it works fine
 
What's in your ips.conf file?

All it should have in it is "NameVirtualHost" lines.

And those shouldn't be capable of coming up with this error.

What version of apache are you running?

Jeff
 
Apache 1.3.33

THere is lots of Virtual Host info in the ips.conf file, how would I copy/paste it here via putty?
 
I don't use Putty, so I can't tell you.

If there are any other lines besides lines that begin with:

NameVirtualHost

then it's got incorrect information in it.

Jeff
 
To copy in putty just select with the mouse what you wanna copy and right click for pate or use SHIFT + INSERT to paste ( also works in SecureCRT )
 
Back
Top