Jump to content

Recommended Posts

Posted

I made a admin install on Apache 2.2.3 and it installs.

But how do i install the service and start it?


Posted (edited)

Nope, I use it...but only on linux.

Update - Misunderstood the problem, now should be what you want.

I think you'll need to create a script to handle all this. Using your administrative install, your script would be something like this:

RunWait(msiexec /i "apache2.msi")

RunWait(httpd -k install "servicename")

RunWait(httpd -k start)

That is using the AutoIt syntax, but almost all scripting languages have the RunWait function. You wouldn't want to install the service until after it's installed, so that's why it's important.

"servicename" should become the simple name that the service is called in windows. You can leave that option out to accept the defaults.

I pulled most of this info from the apache documentation:

http://httpd.apache.org/docs/2.2/platform/...ows.html#winsvc

Edited by InTheWayBoy
Posted
Nope, I use it...but only on linux.

Update - Misunderstood the problem, now should be what you want.

I think you'll need to create a script to handle all this. Using your administrative install, your script would be something like this:

RunWait(msiexec /i "apache2.msi")

RunWait(httpd -k install "servicename")

RunWait(httpd -k start)

That is using the AutoIt syntax, but almost all scripting languages have the RunWait function. You wouldn't want to install the service until after it's installed, so that's why it's important.

"servicename" should become the simple name that the service is called in windows. You can leave that option out to accept the defaults.

I pulled most of this info from the apache documentation:

http://httpd.apache.org/docs/2.2/platform/...ows.html#winsvc

I tried that before , but after entering windows it will not start

Posted

Try installing something like WAMP or XAMPP. They've got Apache ready to go, right out of the box, and they're very easy to use and configure. Both of them need some configuration to make them web-safe though. You can read through their FAQs for more info.

Posted
Try installing something like WAMP or XAMPP. They've got Apache ready to go, right out of the box, and they're very easy to use and configure. Both of them need some configuration to make them web-safe though. You can read through their FAQs for more info.

THX i will give it a try.

Posted

im myself looking to try XAMPP one of this days as i need a web server with PHP and MySQL. thanks for the tip. i saw it before but didnt get the chance to install it. will try it soon.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...