June 9th, 2004, 07:05 AM
I had an unused computer lying around so I decided to try freebsd. Everything is working great except for one small problem I have yet to solve. Apache will not start on boot. If I go to /usr/etc/local/rc.d/ and type “./apache2.sh start” it starts fine and everything works as it should. The script was the default one that was installed with apache. Is there something that needs to be modified with the script or some other file before it will work on boot?
A quick flip through the handbook and I discovered /etc/rc.local. Sounded promising so I plug in “sh /usr/local/etc/rc.d/apache2.sh start” and rebooted. No dice. That command looked a bit odd so I gave “/usr/local/sbin/apachectl start” a try. Still no luck. I get the feeling this is one of those problems where the answer is staring me right in the face.
A few other notes about my setup.
-mysql and webmin both start fine at boot
-I believe I used pkg_add to install it apache
June 9th, 2004, 07:21 AM
Sorry im no *nix literate person but:
If you haven't already done so, you should add starting up Apache to your system startup files. I have the following in /etc/rc.local, although I'm sure there are more 'proper' ways of doing it (feel free to drop me a note with a suggestion)
for 3.3 though, hope those help you somewhat
# Fire Up Apache
if [ -f /usr/local/apache/bin/apachectl ]; then
June 9th, 2004, 07:51 AM
Do an "ls -la" in the /usr/etc/local/rc.d/ dir qnd check if that script is executable.
You can see that by the x in the properties line of a file
If its not try #chmod +x <file> and reboot ...
-rwxr-xr-x 1 root root 1286 May 29 00:54 sshd
June 9th, 2004, 03:35 PM
Both good suggestions but still no luck. Think I’ll try reinstalling from the ports collection when I have a moment.
Its not software piracy. I’m just making multiple off site backups.