Forum Moderators: phranque

Message Too Old, No Replies

Starting Apache server from Delphi

         

drogyn

10:25 am on Jan 26, 2006 (gmt 0)

10+ Year Member



Hi all,

I've built a software package that, among other things, uses Apache. Now, I'm building an installation setup to install the entire product.

I'm using a Delphi program to configure the httpd.conf file (InstallShield only supports INI files) and install and start several services.

This program basically runs:
apache.exe -k install
apache.exe -k start
But after the installation, the service is installed, but not started. I would like the entire product to be ready to use after installation so it's important that the service is started.

I also tried
apache.exe -k install
net.exe start Apache2
But that too fails to start the service. Can anyone help me out?

Thanks in advance,

-Drogyn

mack1

6:37 pm on Jan 26, 2006 (gmt 0)

10+ Year Member



I use net.exe for starting services on Windows:
net start service_name

Check that the service name is indeed Apache2