LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-21-2001, 06:12 PM   #1
Infamous Tim
Member
 
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47

Rep: Reputation: 15
Question apache problems


I've been messing with this linux box for a little while now, and I finally got some free time to install apache onto it. I also wanted to include mod_perl and php into the client, so I went out and grabbed those packages and installed them as well.
So, here I am, compiling apache, everything goes very well, no dependency errors, nothing like that. I've got all the right libraries for it. I went ahead and activated all of the modules in the configure, like this:
Code:
./configure --prefix=/usr/local --activate-module src/modules/perl/libperl.a  \
--activate-module=src/modules/php4/libmodphp4.a \
--enable-module=most --enable-shared=max
I'm not quite sure why I installed it to /usr/local ... that's a problem, I'd like to get rid of it from there. How would I go about doing that? Is there an UNDelete function of make to get rid of it in /usr/local?

So, anyways, I go to /usr/local/bin/apachectl start
It looks like it starts fine to me. I check it with ps, no instance of httpd anywhere. I check the configuration file, no, it's set to standalone. The variables all look correct, looks like the packages are correct, nothing's wrong. I went ahead and checked it with my client machine on the browser, no dice.
I go back to the configure, re-configure it to not use any extra modules at all, and tell it to install to the same place again. Still, no dice. I went back and investigated my packages and re-configured and re-compiled again, this time only activating the php and the perl modules, thinking that may be the problem. I checked the configuration file again, wiped it out and remade it again from the old copy I had saved originally. Still nothing.

So, what went wrong? Any clues? Need any more info? I probably didn't give you enough to figure out what went wrong. Thanks in advance for your help!


system:
PII 400 64 MB memory, 8 gig hd, running RH 6.2 custom (with most off all the gunk anmd undeeded programs removed). It runs in the corner with just a keyboard attached to it (to get it past the POST). It functions as my ip_masq server, I run a client machine behind it. The express reason for setting up this server was to serve web pages for my dorm and a few other people with it.

tarballs used:
apache_1.3.22.tar.gz
mod_perl-1.26.tar.gz
php-4.0.4.tar.gz
Order of installation of packages:
compiled and installed perl with the attachment for apache in there
compiled and installed php4 with the --with-apache flag in configure
compiled and installed apache with the modules enabled as DSO-enabled modules
 
Old 10-22-2001, 03:51 PM   #2
vasah20
LQ Newbie
 
Registered: Oct 2001
Location: c h i c a g o
Distribution: Drake 9 / RH 7.2
Posts: 19

Rep: Reputation: 0
I'm no pro at Apache, so this is just a suggestion. When you do the apachectl start, make sure that you are root. In order for apache to use the default http port (80) you need to execute the command as root.

Also... I think that you can uninstall it by going into your src tree and doing a make uninstall.

hth
leo
 
Old 10-22-2001, 04:55 PM   #3
Infamous Tim
Member
 
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
I installed everything as the root user, so it's not a problem with the <1024 port deal. I tried make uninstall in the directory of the source, but no dice. I'm sure there's a way to peer into the ruleset to find out what your possibilities are, but I don't know the command.
Any other suggestions?
 
Old 10-22-2001, 05:13 PM   #4
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
take a look at /usr/local/logs/error_log, /var/log/messages, and your /var/log/syslog (thats the slack location of them, probally different for RH so, substitute /var/log with the default RH log path, and messages is just the general message log and syslog is your system error/message log). If you can't make headds or tails out of it post anything that might be related here and we'll try to help out.
 
Old 10-24-2001, 05:56 PM   #5
Infamous Tim
Member
 
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
Code:
[Wed Oct 24 17:33:28 2001] [notice] Apache/1.3.22 (Unix) PHP/4.0.4 mod_perl/1.26
 configured -- resuming normal operations
[Wed Oct 24 17:33:28 2001] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Oct 24 17:33:28 2001] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Wed Oct 24 17:33:28 2001] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Wed Oct 24 17:33:28 2001] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Wed Oct 24 17:33:28 2001] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Wed Oct 24 17:33:28 2001] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Wed Oct 24 17:33:29 2001] [alert] Child 13831 returned a Fatal error...
Apache is exiting!
I have no idea where it's getting the groupid of 4294967295 from ... it should be a group of httpd, right? the idea being that each user belongs to the group httpd, so that apache can read into the personal directory the way its supposed to. Where do I go to tell apache to use a certain user?
This is mighty confusing here. I thought i understood how things should work ... NOPE. Thanks for your help, guys
 
Old 10-24-2001, 06:04 PM   #6
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
make sure your actually running apachectl as root, if you are and its still not working paste your httpd.conf here and we'll take a look
 
Old 10-24-2001, 06:58 PM   #7
Infamous Tim
Member
 
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
AAAAGGGGG, I can't believe I never saw that! It had this:
Code:
  Group "#-1"
stuck in there. So, I changed it to
Code:
  Group httpd
and it works ... Thanks for telling me where that log file was, I would have never found it, because I had peered over /var/log/messages for anything, and no dice.

Now that I've got THAT problem solved, is there any way to remove apache without finding every single file that belongs to it and deleting it? Is there a make undelete or a make uninstall? Or, is that something that the programmer decides to put in? See, when I installed it, I misread the README.configure file and stuck it into /usr/local, so, it's clogging that up. It should be in its own sub-directory.
And one more question. I've seen this done I don't know how many countless times. Can users put web pages in their home directories and have apache acces it? As in, I've got a user Babbage, and he wants a webpage, so I would do http://infamoustim/~Babbage and it would work?
Thanks again for all of your help!
 
Old 10-24-2001, 07:08 PM   #8
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
1) I'm not sure if theres an undelete or anything but you could just rm -rf /usr/local/apache then configure a new one into a new dir, and any files (if there even are any) that were installed anywhere besides /usr/local/apache will just get written over because apache isn't set up to change the directory where any other files get moved.

You know I really wouldn't doubt though that RH comes with something that would automatically uninstall.

2) I've never done it before but i believe all you have to do for the user thing is, add the module mod_userdir.c and then make sure the UserDir is right in your httpd.conf and that should be it. Just add index.html to /home/Babbage/public_html and then test it out by going to http://infamoustim/~Babbage/index.html
 
Old 10-25-2001, 04:57 PM   #9
vasah20
LQ Newbie
 
Registered: Oct 2001
Location: c h i c a g o
Distribution: Drake 9 / RH 7.2
Posts: 19

Rep: Reputation: 0
In your httpd.conf, you'll need to uncomment everything relevant to allowing access to /home/*/public_html.

Luckily, you'll find it right under the
<IfModule mod_userdir.c>
entry... it's pretty restrictive as is, modify as you see fit.

Another thing to keep in mind is that you need to chmod 711 /home/users, and make sure that the users chmod 755 ~/public_html and chmod 644 ~/public_html/*

this might be stuff you already know, but this tripped me up a while back, and I just want to pass it along to you.

hth
leo
 
Old 10-26-2001, 05:54 PM   #10
Infamous Tim
Member
 
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
No, no, I was just discovering this last night, as I messed with individual user accounts and the mod_user module. Thanks for the tip, I wasn't sure how it should go. I forget how the permissions apply to directories. I mean it's obvious for files, but does anyone know about directories off the top of his head? I can never remember
 
Old 10-26-2001, 05:59 PM   #11
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
directories are the same as with files, ReadWriteExecute, the only difference is that, in order to get into the directory you need the execute(X) permission.
 
  


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
apache problems root3d Linux - Software 5 03-08-2004 04:26 PM
Apache problems BrettPower Linux - Networking 3 03-06-2004 10:52 PM
Apache problems rooster13 Linux - Networking 6 07-16-2003 11:41 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM
Apache problems RecoilUK Linux - Networking 6 07-13-2001 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:20 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
Open Source Consulting | Domain Registration