FireDaemon Forums
Go Back   FireDaemon Forums > Support > HOWTOs: Application Tutorials > Web Applications

Web Applications HOWTOs and Tutorials regarding integrating FireDaemon with various Web applications.


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  Jordan's time 9th December 2009, 03:45 PM    #1  
Old 9th December 2009, 08:45 PM
Jordan's Avatar
Jordan Jordan is offline
Member
 
Join Date: Jun 2007
Posts: 90
Default Apache (Web Server)



How To Run Apache HTTP Web Server as a Windows Service with FireDaemon


Apache HTTP Web Server is a widely-used web server. The web server can be run as a Windows Service using FireDaemon for extended functionality. FireDaemon will allow you to have the web server start automatically at boot prior to login, allow you to start multiple instances of the web server and so forth. This HOWTO will show you how set it up. You can also use Trinity or PanelDaemon to manage FireDaemon and other Windows services via a web browser.

Apache comes with its own windows service but if it crashes, it only restarts after 1 minute. With FireDaemon, you can have it restart a second after it crashes! So make sure you disable the Apache2.2 service before setting up an Apache service with FireDaemon.

Apache HTTP Web Server Setup Under FireDaemon
  1. Download the latest Apache HTTP Web Server from here
  2. By default Apache HTTP Web Server installs to "C:\Program Files\Apache Software Foundation\Apache2.2\" so for the purposes of this HOWTO, we will use that directory.
  3. Install FireDaemon Pro into the directory of your choice (typically C:\Program Files\FireDaemon). FireDaemon can be downloaded from here.
  4. Apache HTTP Web Server has many executables in its bin directory, but only one of them can be used to start the web server (httpd.exe).
  5. Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Obviously adjust paths to suite your installation. Pay special attention to the Parameters list.

  6. For executable, point it to: C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe
  7. For working directory, point it to the bin directory: C:\Program Files\Apache Software Foundation\Apache2.2\bin


  8. Now click on the Advanced tab. You can change the Process Priority to allocate more CPU time to Apache HTTP Web Server or specify which CPU or core Apache HTTP Web Server will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).
  9. You must change the "Job Type" to "Global Job", otherwise when Apache is restarted the child process will not be terminated properly.


  10. Now click on the Dependencies tab. Make sure the service depends on the lanmanworkstation (Workstation) service to ensure the TCP/IP and CIFS stacks are both up prior to starting the Perl script.


  11. Now click on the Install button to install and start your Web Server!

Last edited by Jordan; 6th June 2010 at 10:30 PM.
Reply With Quote
 

Bookmarks

Tags
apache, server, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 
Free 30 Day Trial

Join our Newsletter
Once a month we poke the right people on product releases and promos.



Connect with us



Latest HOWTOs



All times are GMT. The time now is 11:26 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
Copyright © 2009 FireDaemon Technologies Limited

[Close]