Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:088:1_installation.2_install_windows.2_configure_webserver [2012/10/25 00:22]
BSOD2600
manual:088:1_installation.2_install_windows.2_configure_webserver [2019/10/29 15:16] (current)
Line 1: Line 1:
-===== Configure a Web Server =====+==== Configure a Web Server ====
 Cacti functions with any web server which utilizes PHP and MySQL. It's up to the system admin to utilize Microsoft IIS, Apache, or something else. Cacti functions with any web server which utilizes PHP and MySQL. It's up to the system admin to utilize Microsoft IIS, Apache, or something else.
  
-==== Microsoft IIS ==== +=== Microsoft IIS === 
-=== Install ===+== Install ==
   * [[http://technet.microsoft.com/en-us/library/aa998483%28v=exchg.65%29.aspx|How to Install IIS 6 on Windows Server 2003]]   * [[http://technet.microsoft.com/en-us/library/aa998483%28v=exchg.65%29.aspx|How to Install IIS 6 on Windows Server 2003]]
-  * [[http://www.iis.net/learn/install/installing-iis-7/installing-iis-7-and-above-on-windows-server-2008-or-windows-server-2008-r2|How to Install IIS 7 on Windows Server 2008 / R2]]+  * [[http://www.iis.net/learn/install/installing-iis-7/installing-iis-7-and-above-on-windows-server-2008-or-windows-server-2008-r2|How to Install IIS 7.0/7.5 on Windows Server 2008 / R2]] 
 +  * [[http://www.iis.net/learn/install/installing-iis-85/installing-iis-85-on-windows-server-2012-r2|How to Install IIS 8.0/8.5 on Windows Server 2012 R2]] 
 +   
 +== Configure == 
 +Follow: 
 +  * [[http://www.iis.net/fastcgi/phpon60|Using FastCGI to Host PHP Applications on IIS 6]] 
 +  * [[http://www.iis.net/fastcgi/configuration|Using FastCGI to Host PHP Applications on IIS 7]]
  
-=== Configure === +After following the above guides:
-Instead of retyping all the instructions configuring PHP for FastCGI, please read the following links.  +
-  * [[http://www.iis.net/fastcgi/configuration|IIS 7]] +
-  * [[http://www.iis.net/fastcgi/phpon60|IIS 5.1 and 6]]+
  
-//Note: IIS6 has the IIS_WPG user account. IIS7 it's called IIS_USRS//+<note>IIS6 has the IIS_WPG user account. IIS7 it's called IIS_IUSRS</note>
  
-  - Start the Internet Information Services (IIS) Manager, right click on the Default Web Site (in most cases) and select Properties. 
-  - Under the Home Directory tab: 
-    - Verify the PHP installer created a mapping for the **.PHP** extension to C:\PHP\php5isapi.dll.  
-    - Verify the .PHP mapping has **All Verbs and  Script Engine checked**. 
-  - Under the ISAPI Filters tab:  
-    - Click Add  
-    - In the Filter Name field, type: **.php**. 
-    - In the Executable field, click on **Browse...** 
-    - Navigate to C:\PHP\php5isapi.dll. 
-    - Click **OK**. 
-  - Under the Documents tab, add **index.php** to the list. 
-  - If using IIS6, goto Web Service Extensions and add a new Web Service Extension. Name the extension "php", and click Add and browse to the **php5isapi.dll** file, enable Set Extension status to **Enable**, and click OK. 
   - Give the COMPUTERNAME\IUSR_ and COMPUTERNAME\IIS_WPG users Read & Execute permissions to the file  C:\Windows\system32\cmd.exe.   Yes, this can be a large security hole, but it's required so RRDTool can be launched for graphing by the anonymous web account.  For slightly improved security, one can specify a separate custom //User account// which would be used for the /wwwroot/Cacti/ site.  Then, instead of using IUSR_ everywhere throughout this document, replace it with the custom User account.  This way, only a security hole in Cacti's code could exploit cmd.exe and not all sites on the IIS server.   - Give the COMPUTERNAME\IUSR_ and COMPUTERNAME\IIS_WPG users Read & Execute permissions to the file  C:\Windows\system32\cmd.exe.   Yes, this can be a large security hole, but it's required so RRDTool can be launched for graphing by the anonymous web account.  For slightly improved security, one can specify a separate custom //User account// which would be used for the /wwwroot/Cacti/ site.  Then, instead of using IUSR_ everywhere throughout this document, replace it with the custom User account.  This way, only a security hole in Cacti's code could exploit cmd.exe and not all sites on the IIS server.
     - Right click on **cmd.exe** and select **Properties**.     - Right click on **cmd.exe** and select **Properties**.
Line 47: Line 38:
     - Click **Yes** to the Security warning dialog box.     - Click **Yes** to the Security warning dialog box.
     - Click **OK** to close the properties window.     - Click **OK** to close the properties window.
-  - Give the IUSR_ and IIS_WPG users modify permissions to the folders C:\Inetpub\wwwroot\cacti\log and C:\Inetpub\wwwroot\cacti\rra.+  - Give the IUSR_ and IIS_WPG users modify permissions to the folders C:\Inetpub\wwwroot\cacti\logand C:\Inetpub\wwwroot\cacti\rra\.
   - Completely stop and start the IIS service using the following commands from the command prompt.  Alternatively, use the Service MMC snap-in under Administrative Tools:<code>   - Completely stop and start the IIS service using the following commands from the command prompt.  Alternatively, use the Service MMC snap-in under Administrative Tools:<code>
 net stop iisadmin net stop iisadmin
 net start w3svc</code> net start w3svc</code>
-  - Verify PHP is functional by running: **php -m** at the command prompt.\\ //Note: If messages with, Cannot find module appearing, then there is something wrong with the MIBDIRS variable or missing mib files in the PHP\Extras\mib folder.  Make sure the MySQL, SNMP and Sockets PHP modules are in the list.// 
- 
  
 +\\
 +\\
  
-==== Apache ==== +=== Apache === 
-  * Make sure you have stopped any IIS web servers before you proceed with Apache installationor make sure Apache is configured on an alternate port.+<note important>Make sure to stop the IIS web services before proceeding with the Apache installation **or** make sure Apache is configured on an alternate port.</note>
  
  
-=== Install ===+== Install ==
   - Download the latest version from [[http://www.apachelounge.com/download/|Apache Lounge]].   - Download the latest version from [[http://www.apachelounge.com/download/|Apache Lounge]].
-  - Make sure to read the [[https://httpd.apache.org/docs/2.4/platform/windows.html|Windows specific notes]] +  - Make sure to read the [[https://httpd.apache.org/docs/2.4/platform/windows.html|Windows specific notes]] for other Windows tips. 
-    Recommended path is <root>:\Apache2\ due to issues with paths with spaces.+  Extract the ZIP file to C:\Apache2\  
 +    - Edit \Apache2\conf\httpd.conf  
 +      - Set ServerRoot 
 +      - Set ServerName 
 +  - Manually run **httpd.exe** at a command prompt to check for errors. 
 +  - Once error free, execute **httpd.exe -k install**





Personal Tools