Can not change DocumentRoot
Posted by: tpk (---.dip0.t-ipconnect.de)
Date: August 12, 2016 03:17PM

Hi,
I just installed 3.0.4 and have problems changing documentroot: I click in the wamp GUI Apache->httpd.config and change row 251 to

DocumentRoot "C:/Users/Username/Desktop/WWW/"
<Directory "C:/Users/Username/Desktop/WWW/">

I have restarted wamp several times, but wamp is still serving from c/wamp/www

What I want to achieve is that I can put my projects in the folder mentioned above and when I call localhost I see them all.



Edited 1 time(s). Last edit at 08/12/2016 03:22PM by tpk.

Options: ReplyQuote
Re: Can not change DocumentRoot
Posted by: Otomatic (Moderator)
Date: August 12, 2016 05:37PM

Hi,

In httpd.conf,
- ServerRoot
- ServerName
- DocumentRoot
- <Directory ...
should NEVER be changed

You must use VirtualHost for your local sites (projects) : The need for Virtual Host

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can not change DocumentRoot
Posted by: tpk (---.dip0.t-ipconnect.de)
Date: August 15, 2016 02:13PM

I had a lot of difficultuy with setting up VirtualHost, until I used FF instead of Edge. When testing the virtual hosts on Edge they just don't work ("Leider können wir nicht auf diese Seite zugreifen.", something like "We can't acces this page" ), in FF they do work fine.

Options: ReplyQuote
Re: Can not change DocumentRoot
Posted by: RiggsFolly (Moderator)
Date: August 15, 2016 02:18PM

I think you will find the reason and solution to the Edge issue here [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.