• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

Apache + Swat + Rhat 7.1--Newb

calpha

Golden Member
Mar 7, 2001
1,287
0
0
OK. Here's the deal.

I'm still learning, obviously. Couple of questions here.
I'm running Rhat 7.1:

I've got Apache Installed. I dl'd the source and compiled, and installed with the default options.
I've also done the same with Samba, but haven't configured the beast yet.

The first thing I want to do is to get Apache loaded every time automatically. Every refernce I've found for doing this mentions putting a command in the Inetd file, which RH 7.1 has moved to xinetd which is a directory, so I'm lost there. Also, there's mention of putting a call to the command "apachectl start" in the rc.local file. So, which way should I go? And How?

If my apachectl file is in "/usr/local/apache/bin" directory, how would I add the command to the rc.local file?

Second question is bigger.
I'm running Samba as I said earlier. I want to get SWAT up and running. There is the correct entry in the etc/services file, and there is also a swat.conf (I think that's the name) in my xinetd directory. When I boot into Linux, I start Apache manually, but there's nothing responding on port 901. Is this because Apache isn't started automatically? Will solving my first problem fix this one?

Thanks in advance
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
start combing through the files in xinetd. there's probably a commented out startup script already written for you.

bart
 

Koeppster

Senior member
Jul 6, 2001
331
0
0


<< If my apachectl file is in "/usr/local/apache/bin" directory, how would I add the command to the rc.local file? >>



You would edit the rc.local file using your favorite text editor, and put /usr/local/apache/bin on a line at the end of the file.
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0
Nope.
Theres not. What's wierd is that there's a Xinet.d directory, but no file named xinet.d. THere are other configuration files there

Linuxconf web
rc
and Swat

but that's all.
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0
Ok.

Added the rc.local command
/usr/local/apache/bin/apachectl start

See if this works.....

Also changed SWAT.conf in xinet.d directory to "DIsable = no"
Rebooting now
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0
Well.....
apache starts automatically now.

Now I have to figure out how to get LinuxConf web working, and SWAT working. Crimminy. My changes didn't work.
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0
Sweet.

Thanks for the help on getting apache to work. Now, I've got both up and running, and it wasn't cuz I was stoopid.

I stumbled onto a site where it discussed a bug in Xinet.d in Linux 7.0. So, taking a gamble, I ftpd over to updates.redhat.com and looked for an updated package of Xinet.d

I had to do an RPM -Uvh --force to get it to go (Rpm Fvh wouldn't work) but Swat and LinuxConf are now running. Next Step: Samba with Win 2k PDC SP2. Probably see another post from me soon cuz I've given up on getting Samba configed more times than I've tried to config it. (lol).
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0


<< btw, swat is its own web server, you dont need apache running for swat. >>



Thank god someone finally answered that. (it wasn't even a question up above, but I was wondering about it).


Preesh.