Author Topic: Apache Help  (Read 1035 times)

LorKorub

  • Member
  • **
  • Posts: 175
  • Kudos: 0
Apache Help
« 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?
"American English -- the noble language of your superiors"

choasmaster

  • Member
  • **
  • Posts: 199
  • Kudos: 0
Apache Help
« Reply #1 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
id rather be on fire then use windoze

x86, a hack on a hack of a hack
alpha, the compaqed way
ppc, the fruity way
mips, the graphical way
m68k, the NeXT way
sparc, the reliable way


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Apache Help
« Reply #2 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?
Someone please remove this account. Thanks...

LorKorub

  • Member
  • **
  • Posts: 175
  • Kudos: 0
Apache Help
« Reply #3 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.
"American English -- the noble language of your superiors"

choasmaster

  • Member
  • **
  • Posts: 199
  • Kudos: 0
Apache Help
« Reply #4 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
id rather be on fire then use windoze

x86, a hack on a hack of a hack
alpha, the compaqed way
ppc, the fruity way
mips, the graphical way
m68k, the NeXT way
sparc, the reliable way


LorKorub

  • Member
  • **
  • Posts: 175
  • Kudos: 0
Apache Help
« Reply #5 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?
"American English -- the noble language of your superiors"

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Apache Help
« Reply #6 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.
Someone please remove this account. Thanks...