

SSLCertificateKeyFile “C:/xampp/apache/crt/example.test/server.key” SSLCertificateFile “C:/xampp/apache/crt/example.test/server.crt” Add an Allow directive to both modulesĭocumentRoot “C:\xampp\htdocs\example.test” htaccess file in your root, it may be denying you. you still need port 80 to be there even though you are using SSLĭo you have a. In the conf file, ensure the first module is port 80 and the second module is port 443. Hosts file – must be edited with elevated priviledges and save as host – not host. If you rerun it, delete the previous directory. It’s very simple, simply open XAMPP Control Panel and Stop and re- Start Apache Module.Īpache is missing dependencies possibly caused by trying to start before the certificate has been created

SSLCertificateKeyFile "crt/site.test/server.key"Īfter that, you will need to restart Apache in XAMPP. SSLCertificateFile "crt/site.test/server.crt" So we need to edit C:\xampp\apache\conf\extra\nfĪnd add this code at the bottom: # site.test We need to enable SSL for this domain and let XAMPP know where we store the SSL Cert. This will tell windows to load XAMPP when we visit You can try and it will show XAMPP dashboard page.


Best of BBC Funny Talking Animals Collection.There is no "/" at the end of DocumentRoot. See the difference in DocumentRoot and Document. Important: The DocumentRoot must be inside the directory that you gave Apache permission to access in Step 7. The DocumentRoot should be the path to the folder where your site lives, and the ServerName should match the domain you entered in your hosts file in Step 3. At the bottom of the page, below all the other text, add the following:ĬustomLog "logs/localhost-access.log" commonĭocumentRoot "C:/Users/Sampath/git/my-project" Remove any dummy virtual host examples in the file. We need to give Apache permission to look in our "Projects" folder for websites. This tutorial should work for machines running either Vista or Windows 7. Now, you could just do a basic install of WAMP and be on your way (using wamp\By configuring virtual hosts on your WAMP server, you'll be able to run as many separate sites as you want, from any location you want. As an example, if you have your php project under eclipse directory, you need to enable virtual host in Apache configuration to run your code from the eclipse codebase. If you have your php project in another directory, this tutorial will help you to setup virtual directory in WAMP to point to your php project directory. Either will do, but for the purposes of this tutorial we're going to stick with WAMP. In order to run PHP on your local Windows computer, you need to install a server stack - either WAMP or XAMPP.
