online trouble for wamp 2.4
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 12, 2014 05:11PM

hello support,

OS............W7 Pro 64-bit

Wamp Server installed...........WampServer Version 2.4
Apache ..................Apache 2.4.4
MySQL..............MySQL 5.6.12
PHP .....................PHP 5.4.12

What colour is your WampManager icon? ( the in the system tray ).......Green

i can not put website online.

i am taking the directions from here
[forum.wampserver.com]

i also use dyndns with name www.good.dyndns-servver.com

1. Create a new folder outside the wamp directory structure.
for example
C:\websites\www

check


2. Create a subfolder in c:\websites for each site you want to create.
for example:
C:\websites\www\good.dyndns-servver.com
C:\websites\www\site2

check

3. Edit the file C:\wamp\bin\apache\apachex.y.z\conf\extra\httpd-vhosts.conf
where x,y and z are the version numbers of apache that you actually have installed.



my httpd-vhosts.conf...........................

# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.


# Use name-based virtual hosting.
#



NameVirtualHost *:80



## must be first so the the wamp menu page loads when you use just localhost as the domain name
## Also NEVER change the security to anything other than Allow from 127.0.0.1 localhost ::1
## Then a drive by Ip address hack should return a 403 denied access




<VirtualHost *:80>
DocumentRoot "C:/wamp/www"
ServerName localhost
ServerAlias localhost


#This is for Apache 2.4
## Using Apache 2.4 syntax
<Directory "C:/wamp/www">
Require local
## And possibly allow access from you local network
## Check you subnet for the actual values to use here
Require ip 10.0.0
</Directory>

</VirtualHost>


<VirtualHost *:80>
DocumentRoot "C:/websites/www/good.dyndns-server.com"
ServerName good.dyndns-server.com
ServerAlias www.good.dyndns-server.com
Options Indexes FollowSymLinks









## Using Apache 2.4 syntax
<Directory "C:/websites/www/good.dyndns-server.com">
AllowOverride All
Require local
#If you want to allow access from your internal network
# For specific ip addresses add one line per ip address
#Require ip 192.168.0.nnn
# For every ip in the subnet, just use the first 3 numbers of the subnet
#Require ip 192.168.0
# If you want to allow access to everyone

Require all granted

</Directory>

</VirtualHost>



my httpd-vhosts.conf...........................

check



4. Edit your httpd.conf file and search for these lines, they are near the bottom of the file.
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf


check








5. While still editing your httpd.conf file search for

5. While still editing your httpd.conf file search for
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

</Directory>
DO NOT CHANGE THESE LINES!

Add the following after the <\Directory> tag to secure your new C:\websites folder.

<Directory "C:/websites/">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>









mine looks like this:



# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>

#..................Added
<Directory "C:/websites/">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>




check

6.Edit your HOSTS file, this can be found in C:\windows\system32\drivers\etc , the file does not have an extension.
Windows protects this file so you must be an Administrator to be allowed to save changes to this file.





127.0.0.1 good.dyndns-server.com
127.0.0.1 site2.dev



check


7. In order for Apache to pick up these changes you must bounce ( restart ) apache.
Do this by: Wamp manager -> Apache -> Service -> Restart Service

restart dns in windows
>net stop "DNS Client"
>net start "DNS Client"
Note: The quotes are required as there is a space in the services name.


check


i am not 100% on what is totally going on


mydyndns updater is working

does anybody see an error..


thanks

craig

Options: ReplyQuote
Re: online trouble for wamp 2.4
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 12, 2014 05:15PM

oh yes port 80 is forwarded on 10.0.0.xx

xx= my machine

Options: ReplyQuote
Re: online trouble for wamp 2.4
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 12, 2014 05:21PM

local host works bring up index.php from C:/www/wamp

127.0.01 works the same page

testmysql.php lworks--connection OK

also

good.dyndns-server.com works

brings up

index.php

from

C:/websites/www/good.dyndns-server.com

Options: ReplyQuote
Re: online trouble for wamp 2.4
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 12, 2014 11:49PM

ok

i reinstalled wamp 2.4 a few times, somehow my firewall stopped httpd.exe from accessing port 80.


i finally got a page thru on good.dyndns-server.com.

Forbidden you do not have permission to access / on this server.

Options: ReplyQuote
Re: online trouble for wamp 2.4
Posted by: RiggsFolly (---.as13285.net)
Date: February 13, 2014 10:05AM

in that case check you virtual host definition for the good.dyndns-server.com, check the 'Require all granted' is still there.

---------------------------------------------------------------------------------------------
(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
Re: online trouble for wamp 2.4
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 20, 2014 10:35AM

it was

'Require all granted

not in httpd.conf



thanks,

riggs

Options: ReplyQuote


Sorry, only registered users may post in this forum.