WEB Course

Virtual local server

Go back

We are usually using AMP (Apache MySQL PHP), a software installing the 3 tools you will need. You got 3 versions, according to your OS: W=Windows, L=Linux and M=macOS, giving us WAMP on Windows.

Note: when installing, you will be prompted to pick a browser. If yours is not included in the list,

  • write "Firefox" (example) in the search bar
  • right-click -> open file location
  • again, inside the folder, right-click -> open file location
  • you should have your PATH now

How does it work?

Once installed, you need to run it each time you start your computer (sometimes you don't have to). Check the trails icons (the icons next to your sound/battery/...). If AMP is started, you should see this

wamp icon

The location of your

  • webserver root: C:\wamp64\www\ (/var/www/html/ on Linux)
    • for your path (if needed)
    • left-click on the icon
    • click on "www folder"
  • base/root URL: http://localhost/


Change to MariaDB

If you, like me, will use MariaDB then right-click on wamp in the system trail.

  • Settings
  • Disabled MySQL
  • Enable MariaDB

Your database is at http://localhost/phpmyadmin, with the credentials root and no password by default.

Change the Lang

Right-click on wamp in the system trail, then in the lang menu.

Change PHP/... version

Left-click on wamp in the system trail. You can enable and disabled PHP modules here too.

Use PostgreSQL

You can download PostgreSQL here. Beware that version 12+ needs PHP 7.4.0+.

Don't forget to restart!

  • psql -U user
  • pgadmin
Use Virtual Hosts

Sometimes, you don't want to have the URL http://localhost/.../, but maybe, the real URL of your website?

Left-click on wamp in the system trail. Click on virtual hosts, and you will be able to add one easily.