Autostarting server programs in SFU
August 23rd, 2007
I have Apache Web server running on an SFU machine. This copy of Apache came from Interop Systems. Unlike a Windows version of Apache like the one that comes with XAMPP, this Apache doesn't come with a control panel or a Windows Service to autostart it every time the computer boots.
So how do I get it to autostart.
One solution was provided by my colleague Andrew Waterson:
- Create a Windows shortcut for an SFU command console.
To do this go into Start > Programs > Windows Services for UNIX and copy the shortcut for C shell or Korn shell. - Put this shortcut in the Start > Programs > Startup folder.
- Edit the properties of the shortcut. Change its name and add to the end of the Target string the command you want to execute.
For example, I want to run /usr/local/apache2/bin/apachectl start every time the computer boots. So the Target for my shortcut becomes:
C:\WINDOWS\system32\posix.exe /u /c /bin/ksh -l /usr/local/apache2/bin/apachectl start
Potentially similar posts
- Restoring Vista’s missing “Text Document” shortcut – April 2009
- Preventing BBC iPlayer running all the time – November 2008
- Adding ^M characters in vi – November 2008
- Revealing Vista’s hidden Administrator account – November 2008
- Remote Desktop via a PuTTY tunnel – May 2008