Installing Apache, MySQL, PHP on Windows

Install XAMPP

  1. Download the latest option for windows (usually the last one).
  2. Wait a few seconds and if it doesn't start downloading click the green hyperlink at the top of the screen that says “click here”.
  3. Open the .exe file that downloaded and open the file to start the instalation process.
  4. Now go to the xampp-control.exe file (Ex: C:/xampp/xampp-control.exe) and start the apache(mandatory) and the other modules you wish to include in your project.
  5. Search 127.0.0.1 or localhost in your browser and you should see that XAMPP has been successfully installed.

Portable Apps

Dokuwiki

  1. Go to the download page https://download.dokuwiki.org/ and press the green download button.
  2. Select your desired options and click the download button at the BOTTOM of the screen.
  3. Extract the downloaded file into the htdocs folder in XAMPP (Ex: C:/xampp/htdocs).
  4. Restart the XAMPP server and go to localhost.
  5. Search localhost/dokuwiki/install.php in the searchbar and complete the instalation process.

Configuration of XAMPP

Virtual Hosts

  1. Download XAMPP portable as shown above
  2. Open the httpd-vhosts.conf file located in xampp\apache\conf\extra\ and put the following code at the end
<VirtualHost *:80>
    ServerName yourname.com
    ServerAlias www.yourname.com
    DocumentRoot "C:/path_to_dokuwiki_folder"
    <Directory "C:/path_to_dokuwiki_folder">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
  1. Replace C:/path_to_dokuwiki_folder with the actual path to your DokuWiki installation(Ex:C:/xampp/htdocs/dokuwiki) and yourname.com to your desired website name
  2. Open the hosts file on your system(Ex:C:\Windows\System32\drivers\etc\hosts) and add the following line to the file
127.0.0.1 yourname.com
  1. Open xampp\apache\conf\httpd.conf. Look for the following line: Include conf/extra/httpd-vhosts.conf and ensure it is uncommented (remove # if present)
  2. Save the file, restart XAMPP and access your dokuwiki via your adress (Ex: yourname.com)

Alternatives

  • EasyPHP
  • WAMP Server
  • Laragon
Print/export