1) in the Xampp control panel -> config -> Apache (httpd.conf)
Listen 80
ServerName localhost:80
<Directory/> AllowOverride none Require all denied </Directory>
<Directory "C: /xampp/htdocs">... Require all granted </Directory>
<Files ".ht*"> Require all denied </Files>
<Directory "C: /xampp/cgi-bin"> AllowOverride All Options None Require all granted </Directory>
2) in the Xampp control panel -> config -> Apache (httpd-ssl.conf)
Listen 443
<VirtualHost _default_:443>
ServerName localhost:443
3) in the Xampp control panel -> config -> Apache (httpd-xampp.conf)
<Directory "C: /xampp/php"> AllowOverride None Options None **Require all denied** <Files "php-cgi.exe"> **Require all granted** </Files> </Directory>
<IfModule alias_module>
Alias/licenses "C: /xampp/licenses/"
<Directory "C: /xampp/licenses"> Options +Indexes <IfModule autoindex_color_module> DirectoryIndexTextColor "#000000" DirectoryIndexBGColor "#f8e8a0" DirectoryIndexLinkColor "#bb3902" DirectoryIndexVLinkColor "#bb3902" DirectoryIndexALinkColor "#bb3902" </IfModule> **Require all granted** ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var </Directory>
Alias/phpmyadmin "C: /xampp/phpMyAdmin/"
<Directory "C: /xampp/phpMyAdmin"> AllowOverride AuthConfig **Require all granted** ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var </Directory>
Alias/webalizer "C: /xampp/webalizer/"
<Directory "C: /xampp/webalizer"> <IfModule php7_module> <Files "webalizer.php"> php_admin_flag safe_mode off </Files> </IfModule> AllowOverride AuthConfig **Require all granted** ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var </Directory>
</IfModule>
4) Locate cmd.exe and right-click to select run as administrator.
5) Enter cd C:\xampp\apache\bin (installation path for Xampp)
6) Enter httpd -k install
7) Enter httpd -k start
8) Launch Apache