LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2002, 03:41 AM   #1
qistoph
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Rep: Reputation: 0
Question 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
 
Old 06-09-2002, 06:55 AM   #2
qistoph
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Does anyone got an answer?
I really need it :S
 
Old 06-11-2002, 02:28 PM   #3
qistoph
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Can someone please help me, I really need this :S
 
Old 06-11-2002, 02:37 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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!
 
Old 06-11-2002, 02:39 PM   #5
Sky
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 36

Rep: Reputation: 15
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.
 
Old 06-11-2002, 02:43 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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
 
Old 06-11-2002, 03:06 PM   #7
Sky
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 36

Rep: Reputation: 15
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.
 
Old 06-11-2002, 04:32 PM   #8
qistoph
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 06-11-2002, 04:36 PM   #9
qistoph
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Oops

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
 
Old 06-11-2002, 05:10 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
well it's already in use, maybe you have half an apache already running or something. maybe you're not root?
 
Old 06-11-2002, 05:37 PM   #11
qistoph
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
I got it...
I found a couple of httpd's running using "ps aux"

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XMMS is very quiet dinkydarko Fedora 5 11-26-2004 12:45 PM
newbie;I am a linux newbie who has installed slackware and have run into a few proble MollyJolly Slackware - Installation 6 06-01-2004 11:21 AM
How To Update To Slackware-Current For a Newbie, By a Newbie :) windsok Slackware 1 09-18-2003 08:53 PM
Newbie with Apache sienarot Linux - Newbie 5 03-13-2003 12:28 PM
apache newbie p_murugappan Linux - Networking 1 06-20-2001 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration