1829103 Members
2179 Online
109986 Solutions
New Discussion

Re: Apache help needed

 
SOLVED
Go to solution
John B Goode
Advisor

Apache help needed

I've been reading the docs but I can't even start the silly thing....
apachectl start
/sbin/sh: apachectl not found
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Apache help needed

Well, the first thing is that the apachectl script is not in your PATH environment variable.

You must specify the full path to apachectl.

It may be something like /opt/apache/bin/apachectl or something similar.

Try doing:

# find /opt -name apachectl and see if you can find it. If not, you must determine what path Apache was installed to and then find the apachectl program.
Mic V.
Esteemed Contributor

Re: Apache help needed

To fix it long-term, edit the file(s) that set PATH for your shell. If you're root, it's normally:

/.profile

unless someone has edited root's home directory in the /etc/passwd file. Add the location of apachectl to the PATH variable (separated by colons). Once you do this, log out and back in again (it's an easy way). Then you'll be able to just do "apachectl start".

Mic
What kind of a name is 'Wolverine'?
Steven E. Protter
Exalted Contributor

Re: Apache help needed

If apache has a startup script it would be here:
/sbin/init.d/apache

or

/sbin/init.d/apache2

If hp delivered it hit might be named hpapache

To set up for auto start so you don't have to start it yourself, try this:

cd /sbin/rc3.d

ln -s /sbin/init.d/apache S980apache

cd /sbin/rc2.d

ln -s /sbin/init.d/apache K020apache


This will relieve you of the burden of starting and stopping apache manually.

make sure you identify the name of the startup script before trying to set up the soft links with ln -s

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
R. Allan Hicks
Trusted Contributor

Re: Apache help needed

If this is the oracle install of apache, the path is....

$ORACLE_HOME/Apache/Apache/bin

Note: that on 9iAS, apachectl is deprecated, and they expect you to start it via the Appserver Enterprise manager. (not to be confused with OEM)
"Only he who attempts the absurd is capable of achieving the impossible
Michael Schulte zur Sur
Honored Contributor

Re: Apache help needed

Hi,

of course:
find / -name apachectl -print
would be on the save side.
If I am not mistaken and the apache belongs to an Oracle installation, then starting Oracle will start it too.

Michael