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:

  1. 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.
  2. Put this shortcut in the Start > Programs > Startup folder.
  3. 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

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a comment