Hi,
I am new to Apache, can anyone tell me how to autostart apache when my server boot up? Thanks
| SitePoint Sponsor |
Hi,
I am new to Apache, can anyone tell me how to autostart apache when my server boot up? Thanks





You could put the shortcut to start it in the C:\windows\start menu\programs\startup folder. Just create a shortcut and place it in that folder, that should do the trick.
I am sorry, I forget to tell that I am using RedHat Linux 6.0
Or throw it into your friendly /etc/rc.d/rc.local file which gets run after everything else has init'd.
Jason Donald - Co-Founder
SitePoint.com - Master the Web!
I had tried to copy it into the /etc/rc.d/init.d directory but it didn't work
rc.local is a file, add something like:
/my/path/to/apache/bin/apachectl start
At the bottom of the file.
So if your apache is installed in :
/usr/local/apache
then put
/usr/local/apache/bin/apachectl start
in there.
Check that the command works first by typing it outeg:
You can also 'stop' and 'restart'. Try '--help' too.Code:/usr/local/apache/bin/apachectl start
Jason Donald - Co-Founder
SitePoint.com - Master the Web!
Thanks, Jason Donald... It works!
Bookmarks