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 |
Does anyone got an answer?
I really need it :S |
Can someone please help me, I really need this :S
|
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! |
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. |
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
|
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. |
Here is every step I took according to the posts here.
Thank you all!!! I got it working now. Quote:
Again, thanks to all of you who have helped and tried to help. Mzzl, Chris |
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 |
well it's already in use, maybe you have half an apache already running or something. maybe you're not root?
|
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. |