Installing Apache, PHP and mod_ssl on MS Windows

www.l‮tua‬turi.com
Installing Apache, PHP and mod_ssl on MS Windows

To install Apache, PHP, and mod_ssl on Microsoft Windows, you can use the following steps:

  1. Download and install Apache:
  1. Download and install PHP:
  1. Enable PHP in Apache:
  • Open the Apache configuration file (httpd.conf) in a text editor.
  • Uncomment the following line:
LoadModule php7_module "c:/php/php7apache2_4.dll"

Replace c:/php/ with the path to the PHP installation directory.

  • Add the following lines at the end of the file:
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

This will enable Apache to handle PHP files.

  1. Download and install mod_ssl:
  1. Enable mod_ssl in Apache:
  • Open the Apache configuration file (httpd.conf) in a text editor.
  • Uncomment the following line:
LoadModule ssl_module modules/mod_ssl.so

This will enable mod_ssl in Apache.

  1. Restart Apache:
net stop Apache2.4
net start Apache2.4

This will apply the changes to the Apache configuration.

Created Time:2017-10-29 22:08:49  Author:lautturi