Change of WWW folder doesn't work
Posted by: Evair_Peterson (---.99.127.dynamic.adsl.gvt.net.br)
Date: May 10, 2017 01:49AM

Hi there.


I have a trouble with my wamp configuration. I want to change my www folder to another. I've done it another time editing my http.conf and it works properly. This is what I'm changing:

DocumentRoot "${INSTALL_DIR}/www" ----- DocumentRoot "F:/03)_SERVICOS/00)_Sites"
<Directory "${INSTALL_DIR}/www/"> ------ <Directory "F:/03)_SERVICOS/00)_Sites/">

I try do it in httpd.conf who is in C:\wamp64\bin\apache\apache2.4.23\conf


I just tryed too change the httpd-vhosts.conf in C:\wamp64\bin\apache\apache2.4.23\conf\extra:
DocumentRoot c:/wamp64/www ------ DocumentRoot F:/03)_SERVICOS/00)_Sites
<Directory "c:/wamp64/www/"> ----- <Directory "F:/03)_SERVICOS/00)_Sites/">


I've checked and the port 80 is working properly too.

When I make any of this changes, wamp don't give me no errors, and your logo in system tray still working green after reboot the all wamp services. But localhost still working in the original folder (C:\wamp64\www).



What is happening? Have you any idea for clear this mistake?
I have downloaded the last version of wamp server "WAMPSERVER 64 BITS (X64) 3.0.6", and I'm working on Windows 10 Pro x64.


Thank you for your atention.
Brazilian greetings. Evair.

Options: ReplyQuote
Re: Change of WWW folder doesn't work
Posted by: Otomatic (Moderator)
Date: May 10, 2017 09:20AM

Hi,

The location of the wamp64/www/ folder should NEVER be changed.
Use VirtulaHost which allows you to place your local sites anywhere on your disk.
See The need for Virtual Host

It is also well noted, in the httpd.conf file:
# Apache variable names used by Apache conf files:
# The names and contents of variables:
# APACHE24, VERSION_APACHE, INSTALL_DIR, APACHE_DIR
# should never be changed.

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.0.9 32 bit - Apache 2.4.26 - PHP 7.1.7/7.0.21/5.6.31 - MySQL 5.7.18 - MariaDB 10.2.6
Wampserver 3.0.9 64 bit - Apache 2.4.26 - PHP 7.1.7/7.0.21/5.6.31 - MySQL 5.7.18 - MariaDB 10.2.6
PhPMyAdmin 4.7.1 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 1 time(s). Last edit at 05/10/2017 10:27AM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.