Using WAMP Neard with XOOPS


You will learn how to set up a virtual host, install different versions of PHP, and organize folders to host XOOPS in optimal conditions.
XOOPS installation: Adding a virtual host
What is the interest of using virtual hosts (VH)?
This allows you to host several websites and with each of them, a different root directory.
Without virtual host, we would have, for 2 sites xoops-tests and xoops-production :
www Single root folder
xoops-tests Sub-folder of the xoops-tests site (URL address: http://localhost/xoops-tests)
xoops-production Sub-folder of the xoops-production site (URL address: http://localhost/xoops-production)
With virtual host, we will have, for these 2 sites, xoops-tests and xoops-production :
www Root folder of the xoops-tests site (URL : http://xoops-tests.local, chemin : D:\web\projets-web\xoops-tests\www)
www xoops-production site root folder (URL : http://xoops-production.local, chemin : D:\web\projets-web\xoops-production\www)
Now we will create a virtual host.

Server name : xoops-tests.local
Root document : D:\web\projets-web\xoops-tests\www


The system tells you that you must now update the hosts file on your machine so that the browser can find this URL.
Launching the HostsEditor tool

Just follow these steps:
1 Enter the domain name: xoops-tests.local
2 Enter the local IP address of your machine: 127.0.0.1
3 Enter a comment: Site local xoops-tests
4 Add the entry by clicking on the icon
5 Activate the entry if you have not already done so
6 Save the file by clicking on the icon

That's it! The virtual host is now configured.
Note: the tool actually edits the file C:\Windows\System32\drivers\etc\hosts.
You can of course repeat the operation to create other virtual hosts.
There is only one step left before starting the XOOPS installation: copying the XOOPS installation files.