Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"
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!
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.