I'm new to all this and after reading and trying different setups for over a week now, I'm totally lost and need help.
This is what I'm trying to do :
I purchased a domain name, say www.examples.com from Godaddy
at Godaddy I set it to be forwarded to my "myIPaddress:8080" as my ISP blocks port 80... ( IPaddress found from googling"what's my IP)
so now my ISP allows it through on port8080 and it enters my house where I have another dlink router set to
port forward to the pc with my server on it ( 192.168.0.101 ) on port 80
( in on my googled IPaddress port 8080 out on 192.168.0.101 port 80.
My home pc with the server on it is:
windows7 ultimate
with wamp2.5 32 bit installed
it is a fresh, completely stock install with the following changed :
after reading for a week allover the place...
I've created a folder named "examples" in my C:/wamp/www directory ( so C:/wamp/www/examples ) where I've placed my files for my website
I've added a rootpassword to my phpmyadmin database ( C:/wamp/apps/phpmyadmin4.1.14/config.inc.php
excerpt (password x'd out obviously) :
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'XXXXXXXX';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
My windows vhosts file is as follows
c:/windows/system32/drivers/ect/vhosts)
excerpt:
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handle within DNS itself.
127.0.0.1 localhost
127.0.0.1 examples
::1 localhost
::1 examples
>> Should they be examples.com or www.examples.com ????
I've commented out the "#" from the front of the "Include" in my "C/wamp/bin/apache/apache2.4.9/conf/httpd.conf" file :
excerpt :
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
My ""C/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf" file is:
#
# Use name-based virtual hosting.
# This next line is not required if you are using Apache 2.4.x and should be deleted
NameVirtualHost *:80
## should be first so the wamp menu page loads and is the default site
## should also never be changed from only allowing access from the local machine
## for a bit of extra security from casual ip address probing
<VirtualHost *:80>
DocumentRoot "C:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "C:/wamp/www">
AllowOverride All
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</IfDefine>
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/examples"
ServerName examples
ServerAlias examples
<Directory "C:/wamp/www/examples">
AllowOverride All
<IfDefine APACHE24>
Require all granted
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from all
</IfDefine>
</Directory>
</VirtualHost>
>>> should they be examples.com or www.examples.com ???
If I type "localhost" in my browser that my server is on I get the phpmyadmin welcome page
if I type localhost/examples I get a HTTP 44 error page cannot be found ( I have an index,php file in the C:/wamp/www/examples Directory)
obviously I cant access from the internet at all with www.localhost.examples.com, www.examples.com or any other configuration of it....
I want to set this up so it can be accessed from the internet
( I belong to a group of about 25 people and many have IP addresses that change frequently, as well others may join the group so I guess complete internet access)
so how do I fix this big mess I created and where am I going wrong ??
Thank you.