LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache 2.0.36 on Slackware (quiet Newbie) (https://www.linuxquestions.org/questions/linux-software-2/apache-2-0-36-on-slackware-quiet-newbie-22896/)

qistoph 06-08-2002 03:41 AM

Apache 2.0.36 on Slackware (quiet Newbie)
 
Hi 2 all...
I'm quiet a newbie to linux. (Not Apache, I've got it running for about 2 years now on a Win98 and a WinXP computer)
Since a while I'm getting interested in Linux and installed Slackware (as some friend adviced me). Without X.

Now I've downloaded Apache (httpd-2.0.36) and I'm trying to install it, what I did is this:
"/usr/local/src# tar -zvxf httpd-2.0.36"
"/usr/local/src# cd httpd-2.0.36"
"/usr/local/src/httpd-2.0.36# .configure"
"/usr/local/src/httpd-2.0.36# make"
"/usr/local/src/httpd-2.0.36# make install"

Then I tried to run Apache:
"/usr/local/apache2/bin# apachectl start"

And connect to localhost using lynx:
"/usr/local/apache2/bin# lynx localhost"
But go an error "Unable to connect to remote host"

And tried to shutdown Apache:
"/usr/local/apache2/bin# apachectl stop"
and got this error:
"httpd (pid 16673?) not running"

Then I looked in /usr/local/apache2/logs/error_log and found this:
"[Fri Jun 07 00:19:03 2002] [warn] pid file /usr/local/apache2/logs/httpd.pid ove
rwritten -- Unclean shutdown of previous Apache run?
[Fri Jun 07 00:19:03 2002] [emerg] (22)Invalid argument: Couldn't set permission
s on cross-process lock; check User and Group directives"

Can somebody help me on this?


Mzzl, Chris

qistoph 06-09-2002 06:55 AM

Does anyone got an answer?
I really need it :S

qistoph 06-11-2002 02:28 PM

Can someone please help me, I really need this :S

acid_kewpie 06-11-2002 02:37 PM

quiet huh? erm, ok i'm no oracle of information about apache, but... it would seem that it's not running properly. what does say.... "ps aux | grep http" say? i acn't see why the service is not running on a defulat setup already, haev you been over the config file properly? try port scanning the machine from somewhere else to see it port 80 is doing anything with nmap or some windows tool. is there a firewall or anythign running on it? I guess thats' pretty irrelevant tho if you can't even connect locally.

how about just restarting the server (/etc/init.d/http.d restart) and seeing exaclty what errors appear in the log file, check all permissions on and files mentioned in it.

so.. no solution but you've been waiting long enough to make a stab in the dark valid i think!

Sky 06-11-2002 02:39 PM

Have a look in httpd.conf and post what the values of User and Group are.

("grep User httpd.conf" and "grep Group httpd.conf")

s.

acid_kewpie 06-11-2002 02:43 PM

hmm, had a quick search... ensure that the user defined in the httpd conf file exists, as does the group. /etc/httpd/conf/http.conf

Sky 06-11-2002 03:06 PM

I think with a fresh installation Group is set to something like "Group #-1". And that was the Problem i had when trying to setup an apache on slackware. So i just changed it to "Group nogroup" oder "Group nobody" and it worked well.

s.

qistoph 06-11-2002 04:32 PM

Here is every step I took according to the posts here.
Thank you all!!!

I got it working now.

Quote:

ps aux | grep http
returns nothing.

Port 80 is not open

the dir /etc/init.d doesn't exist.
find / -name http.d results in nothing

grep User httpd.conf
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
User nobody
# UserDir: The name of the directory that is appended onto a user's home
UserDir public_html
# Control access to UserDir directories. The following is an example
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{User-agent}i" agent

grep Group httpd.conf
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# 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!
Group #-1
I've changed the Group #-1 to Group nobdy and I guess that did it.
Again, thanks to all of you who have helped and tried to help.

Mzzl, Chris

qistoph 06-11-2002 04:36 PM

Oops :o

An other question:
What does this mean, and what can I do about it?
"(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down" it happend when I tried "$ httpd stop"
I've looked in my httpd.conf and found this:
"Listen 80"
has it something to do with it?

Mzzl, Chris

acid_kewpie 06-11-2002 05:10 PM

well it's already in use, maybe you have half an apache already running or something. maybe you're not root?

qistoph 06-11-2002 05:37 PM

I got it...
I found a couple of httpd's running using "ps aux"

Thanks


All times are GMT -5. The time now is 07:31 PM.