Monitoring Apache Server of WAMP

Configure Apache Server running in WAMP server

Introduction:
WampServer refers to a software stack for the Microsoft Windows operating system, consisting of the Apache web server, OpenSSL for SSL support, MySQL database and PHP programming language. It comes as a bundled application with all the above components, so it is not necessary to deploy the WebServer, Database server and the framework separately and configure them individually. One can try downloading the WAMP Server and installing it.

Setting up the Apache Server for monitoring:
Initially when you start the WAMP server for the first time, you won't be able access the server URL (http://host:port/). Please refer this link which deals and discusses about the same issue. This is because that the server would have blocked the permission to access the files initially. So first you have to 'Grant Permission' for the files inside the server.

To grant permission for external hosts to access the files of the server please follow the below steps:
  • Open the httpd.conf file under wamp/apache/apache.X.X.XX/conf/
  • Change 'Require Local' to 'Require all granted', or if the line 'Require local' is not there, add the line 'Require all granted'
  • Mainly inside the tags <Files ".ht*">, <Directory "${INSTALL_DIR}/cgi-bin">
  • Then open the file httpd-vhosts.conf under wamp/apache/apache.X.X.XX/conf/extra/
  • Change 'Require Local' to 'Require all granted', or if the line 'Require local' is not there, add the line 'Require all granted'
  • Mainly inside the tag <Directory> </Directory>

Now to enable server-status url of the Apache server:
  • In Apache's httpd.conf file, locate "Location /server-status" tag
  • Remove the comment in the Location/Server-status tag, to Enable SetHandler server-status
  • Remove the attribute "Deny from all" and add "Allow from <ip_address>" (Replace <ip_address> with the IP address of the Applications Manager server)
  • Remove the comment in "LoadModule status_module modules/mod_status.so"
Now save all the conf files and restart the WAMP Server. You can do this from the options available in the task bar. Please find the image attached for reference:



Now try accessing the http://host:PORT/server-status?auto URL from the machine where AppManager is running. If this is accessible in the browser and the proxy settings configured in the browser and the AppManager are same, then you can add the Apache Server for monitoring. Please refer this link for further help regarding monitoring Apache Server and this link for troubleshooting

Note: Refer this link for more information about the configuration

                  New to ADSelfService Plus?

                    • Related Articles

                    • Troubleshooting - Apache Server

                      Troubleshooting - Apache Server monitor If you're encountering issues in Apache Server monitor in Applications Manager, follow these steps to diagnose and resolve the problem: 1. Verify the Server is an Apache Server: Open Command Prompt on the ...
                    • Pre-requisite for monitoring apache server metrics

                      The Apache mod_status module enables users to view detailed performance metrics of the Apache web server. You must enable and configure the mod_status correctly in the Apache configuration file to get performance metrics from Apache and view the data ...
                    • Troubleshooting - Apache Solr

                      To troubleshoot Apache Solr Monitor, follow the below steps: Verify Accessibility: Ensure that the Apache Solr instance is accessible from the Applications Manager server. Check Host and Port: Make sure you’ve entered the correct host and port number ...
                    • Update on the Apache Log4j Vulnerability

                      A high severity vulnerability ( CVE-2021-44228 ) impacting multiple versions of the Apache Log4j2 utility was disclosed publicly on December 9, 2021. The vulnerability impacts Apache Log4j2 versions below 2.15.0. You can find the details of this ...
                    • Configure Apache "server-status" page

                      This error occurs when Client is denied to access "server-status" page due to the missing configuration in Apache Server. Make below changes in httpd.conf file to fix the issue Step 1: Load Status Module Search for the line "LoadModule status_module ...