The VirtualHost MUST EXIST BEFORE the installation !!!!> Changing the documentRoot in httpd.conf will not work.
One should NEVER CHANGE ANYTHING in httpd.conf
I'm going to get angry, all the explanations have existed for a long time, you just have to look a little bit.
And above all: When you don't know, you don't do, you ask how!
See :
The need for Virtual Host <- This is a link
and
Wampserver 3 - Create or add a VirtualHost <- This is a link
and
Why to create a VirtualHost BEFORE installing a CMS <- This is a link
----------------------------------------------------------------------------------------
Installation of Joomla but it is the same for almost all CMS including WordPress.
- 1 - Where will we install Joomla ?
The answer, with the VirtualHost, is anywhere!
Well, not quite:
- On a fixed hard disk
- No SDHD card or other
- No USB disk
- It is possible, but avoid network drives and NAS
- In a path without spaces or diacritical characters.
I chose a partition never used before for a VirtualHost, in this case the F partition:
- Create a folder of any name (of course without spaces!)
F:\joomla\
in this folder f:\joomla\ unzip the file previously downloaded, to obtain a set of the style :
f:\joomla\administrator\
f:\joomla\bin\
f:\joomla\cache\
f:\joomla\cli\
components
mimages
and so on...
etc.
It takes "a while" since there are more than 8000 files!
Now that the folder exists and that the necessary files are present, we can proceed to the creation of the related VirtualHost.
- 2 - Creation of the VirtualHost
- Launch Wampserver
- Launch localhost
- From localhost, launch Tools, Add a VirtualHost
In the page Add a VirtualHost :
- In the box 'Name of the Virtual Host' put the name you want to assign to the Joomla site, for example :
my-site-joomla.local
- In the box 'Full path of the VirtualHost folder', of course, put the path of the folder created :
f:/joomla/
then click on the button 'Start creating the VirtualHost'.
It is indicated, among other things, that the files have been modified, the virtual host my-site-joomla.local has been created and for this to be taken into account, you must :
- Right-click Wampamanager icon -> Tools -> DNS Restart
so:
do itAgain, this may take some time!
- Back to the home page
And there, O surprise, in the column Your VirtualHost, there is the name of the VirtualHost you just created:
my-site-joomla.local
so, we do not hesitate, we click on this name.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons