by Void Main » Wed Jan 29, 2003 1:33 pm
apachectl should *not* be in /bin or /usr/bin because it is not a program for normal users. It should be in either /sbin, /usr/sbin, or /usr/local/sbin which is not in a normal user's PATH by default. If you absolutely want it somewhere else, create a symbolic link in the location you want to where it really is:
# ln -s /usr/local/sbin/apachectl /bin/apachectl
In the above, if apachectl currently resides in /usr/local/sbin it will create a symbolic link that points to it in /bin.
Also, there should be an RPM for it for Mandrake which would install everything in the normal Mandrake directories and it will include a service script in /etc/rc.d/init.d called either "apache" or "httpd". This is the normal way to enable and start/stop apache in Mandrake and Red Hat:
# chkconfig httpd on
# service httpd start (or restart, reload, status, etc).
As you know, I prefer an RPM if possible because it is then manageable in the software database. But these are just my suggestions and opinions. There is nothing to stop you from installing the source package. If I don't like the default compile I download/hack the source RPM and build a new RPM to install.
Also, I like using "locate" to find files which is **much** faster than using find. However, on a newly installed package it will not be in the locate database because "updatedb" is only run once a day. You can manualy run "updatedb" on the command line to get your locate database up to date:
# updatedb
# locate apachectl | more