Configuration and connection to WAMP Server on Windows Server 2019
- Press Win + R.
- In the window that appears, enter “mstsc.exe” and click “OK”.
- In the window that appears, enter the IP of the virtual machine and click “Connect”.
- In the window that appears, enter your username and password and click “OK”.
- Check the box and click “Yes”.
- Double-click on the “Wampserver” icon on the opened desktop
- After starting, a red icon will appear in the lower right corner. You need to wait until it turns green. As soon as the icon turns green, it means that all Wamp components have successfully launched.
Depending on the versions of the Wampserver installers, the default database manager is MySQL or MariaDB.
If MySQL is the default manager, it uses port 3306, in this case MariaDB will use port 3307.
If MariaDB is the default manager, it will use port 3306, in this case MySQL will use port 3307. In some cases, this may also be port 3308.
You may notice that MariaDB is the default database manager and if you want to use MySQL just right click the Wampmanager icon
- Then click “Wamp Settings”
- And choose “Allow MySql”
- If you need to know which ports MariaDB or MySQL are using, right click on the icon bar
- Then open your browser and in the search bar type http://localhost
- In the window that appears, select “phpmyadmin”
- Enter admin in the Username field. Leave the Password field blank and click “Go”
- If you receive an error message with versions, you can ignore the message and continue. This refers to the connection to MariaDB.
- If you need to transfer your databases between MySQL and MariaDB right click the icon Wampmanager
- Choose “Tools”
- Choose “Invert default DBMS MarinaDB <–> MySQL”
Creation or addition VirtualHost
- You need to determine where you want to host your local site.
For example : C:\wamp64\www\Name of new folder
- For simplicity of explanation, here are some names:
– sitefolder : the folder where you want to host the local site
– sitename : the name that will be called the local site (http: // sitename /)
- We need a folder to host the site that exists before the VirtualHost was created, we must create it with the explorer launched as administrator (see bottom of the page *) :
– Move in the disk tree to where we want to create the “sitefolder” folder
– Right click, select “New” then select “Folder”
– then enter a folder name.
– Launch Wampserver, wait for W icon
- After the icon turns green, right-click on it and select “Localhost”
- In the window that opens, select “Add a Virtual Host”
- For “Virtual Host Name Without gap – Without underscore (_)” enter: sitename
For “The full absolute path to the VirtualHost folder. Examples: C: / wamp / www / projet / или E: / www / site1 /” we enter :
“C:\wamp64\www\sitefolder” or abbreviated C:\sitefolder\
- And press “Start the creation of the VirtualHost”
- As stated: This may take some time.
- After this “time” has elapsed, it may be indicated that, unfortunately, certain operations required for Windows and Apache to recognize this new VirtualHost cannot be performed automatically by the browser, so DNS must be reloaded
- To do this, click LMB on the “Wampserver” icon in the bottom panel, select “Tools” and then select “Restart DNS”. After that, wait until the icon turns green again.
- Now go back to the main menu
There you can notice that you have “Your VirtualHost” with these entries:
- Now everything is ready to set up your local site in a folder c: \ sitefolder \ indicating, if required during installation, that the URL (http://sitename/) (no brackets).
* To launch an application using its shortcut as an administrator:
- Right click on the shortcut, then select “Properties”
- Click the “Advanced” button
- Select “Run as administrator”
- Then click “Ok”
- Select “Apply” and “Ok”
More information here – WampServer