Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: LorKorub on 19 July 2002, 14:21

Title: Apache Help
Post by: LorKorub on 19 July 2002, 14:21
I was able to get Apache running as Root, but I can't seem to get it going as User.  When I try to run it I get this error:

startproc: command not found.

I tried searching on Google for an answer, but I was unsuccessful.  The man page wasn't much of a help either.

Any suggestions?
Title: Apache Help
Post by: choasmaster on 19 July 2002, 14:44
startproc command not found, sound like you don't have a file in your $PATH

edit the .bash_profile
and add all the places exacutible files are stored
like
/sbin
/usr/sbin
/usr/local/sbin

that should do it
Title: Apache Help
Post by: voidmain on 19 July 2002, 19:20
Uh, what *NIX are you running this on? Linux?  If so, what distro and version?  Apache should start from one of the init scripts (usually something like /etc/rc.d/init.d/httpd).  It is usually configured to start under the user "apache" or "nobody".  Why do things the hard way?
Title: Apache Help
Post by: LorKorub on 20 July 2002, 04:24
I am running SuSE Linux 8.0. The thing is, is that I don't have a static IP Address, so everytime Apache would run, I'd have to edit the httpd.conf file.  

Thanks for the help.
Title: Apache Help
Post by: choasmaster on 20 July 2002, 04:35
use ifconfig and sed, it might be possible to make a  script that edits the httpd.conf for you. then agian, i know jack shit about howto do that, maybe voidmain would
Title: Apache Help
Post by: LorKorub on 20 July 2002, 05:57
I was thinking about doing something like that. Maybe I can just call ip-up from inside httpd.conf?
Title: Apache Help
Post by: voidmain on 20 July 2002, 07:39
Actually, if you set the IP/Hostname in /etc/hosts you don't have to change it in the Apache config (use the name).  Then just manipulate the /etc/hosts file.  You can do this with a script.  I don't know about SuSe but in RedHat I would add a line to /etc/sysconfig/network-scripts/ifup-post to put the correct IP address in the /etc/hosts file.  Of course there are thousands of other ways to do this.