WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 25, 2015 08:37AM

Hi I'm xiaokujuju,

Currently I'm a new member to this website and very much new to running a server and I'm getting an error I've been trying to fix all day. I've researched on google, I even searched on these forums, and even went to Stack overflow (A java website) with no results.

My problem begins like this: First I did everything they told me to do, I set up my ip's and my servers in the config file, like this:
WAMP --> Apache --> httpd.config

#Listen 12.34.56.78:80
Listen 80
Listen [::0]:8080

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
AllowOverride none
Require all granted
</Directory>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">
Require all denied
</Files>


#
# "c:/wamp/bin/apache/apache2.4.9/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "c:/wamp/bin/apache/apache2.4.9/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>

These are the only places i configured and or am worried about atm, the rest are at default.

Secondly i did this:

C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias www.localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/fagexsucks/"
ServerName fagexsucks
ServerAlias www.fagexsucks
</VirtualHost>

Then finally I configured my hosts file in system32:

# [My Website Medias]
127.0.0.1 localhost
127.0.0.1 fagexsucks
127.0.0.1 www.localhost
127.0.0.1 www.fagexsucks

Still all this accomplishments only leads to the external ip registering the problem: "Page cannot be loaded" Any ideas?

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: Otomatic (Moderator)
Date: November 25, 2015 09:32AM

Hi,

> "Page cannot be loaded" Any ideas?
One should not modify httpd.conf, especially the very poor way you did.

> Listen 80
> Listen [::0]:8080
Why ? Do you know why you did that? Or is it by chance?

><Directory />
> AllowOverride none
> Require all granted
> </Directory>
The whole earth will have access to your files.

Put the file in its original condition and follow carefully: The need for Virtual Host

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

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 25, 2015 08:41PM

I searched on google and thats what it told me to do...

Edit: Nvm, I'll update on what you said and then ill see if it works.



Edited 2 time(s). Last edit at 11/25/2015 08:45PM by xiaokujuju.

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 25, 2015 10:41PM

It still gives me "Problem loading page" For my external ip. I even did as I was told and I didn't even touch the config file. Localhost still works though. How do I host my website?

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 26, 2015 04:46AM

Config file:

#
# This is the main Apache HTTP server configuration file. It contains the

Hundreds of rows deleted by Otomatic.



Edited 1 time(s). Last edit at 11/26/2015 10:03AM by Otomatic.

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: Otomatic (Moderator)
Date: November 26, 2015 10:04AM

Hi,

Please, answer to : READ BEFORE YOU ASK A QUESTION
then, explain what's your problem ?

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



Edited 1 time(s). Last edit at 11/26/2015 06:18PM by Otomatic.

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 26, 2015 09:40PM

1 - Windows version used (Specify version number AND whether 32 or 64 bit)

Windows 8, 64-bit

2 - Version WampServer (Specify version number AND whether 32 or 64 bit)

WAMP 2.5

3 - Apache Version

Apache 2.4.9 (Win 64)

4 - PHP Version

PHP 5.5.12

5 - MySQL Version

5.6.17 - MySQL

6 - What color is the WampServer icon (in the notification area of the taskbar)

Green, I set it to online

7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines with the name [localhost] in them?
* Active means no # at the beginning of the line.

127.0.0.1 localhost
127.0.0.1 fagexsucks
127.0.0.1 www.localhost
127.0.0.1 www.fagexsucks

8 - Do you have access to localhost (Homepage WampServer)?

Yes.

9 - Do you have access to phpMyAdmin?

Yes.

10 - If you refer to an error message, please include the EXACT wording of the error in your post

There are no errors except for when I use my external ip to try to connect to my server, with everyone else it work: But for me it displays 'Problem loading page'.

11 - If you use an Antivirus and / or Firewall, please include the names of these

COMODO Fire wall and antivirus (Usually its shut off when my server is running.

12 - What is the full path to the installation of WampServer (eg D:\wamp\)

C:\wamp

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: Otomatic (Moderator)
Date: November 27, 2015 09:52AM

Hi,

> There are no errors except for when I use my external ip to try to connect to my server,
> with everyone else it work: But for me it displays 'Problem loading page'.

It is not possible to access with the WAN IP address of the PC to the local server hosted on the same PC. This is called "local loopback" and can only be done with the installation of special drivers.

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

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 28, 2015 07:58PM

I meant every tutorial I go on its instant: They can view their website by typing their ip. But I can't, so i gave the ip to my friends and they have the same issue. This is vanilla WAMP, Unedited edition.


- NVM FOUND THE ISSUE! I set my virtual hosts to require local not require all granted so yup, fixed. ThANKS OTTO!



Edited 1 time(s). Last edit at 11/28/2015 08:35PM by xiaokujuju.

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: xiaokujuju (---.bois.qwest.net)
Date: November 28, 2015 10:34PM

>It is not possible to access with the WAN IP address of the PC to the local server hosted on the same PC. This is called "local loopback" and can only be done with the installation of special drivers.<

Can i have a link to these drivers? ALSO! How do I get my ip to display a domain instead of just my ip. Thanks again.

Options: ReplyQuote
Re: WAMP localhost working; External Ip has "Problem loading page"
Posted by: Otomatic (Moderator)
Date: November 29, 2015 10:00AM

Hi,

> Can i have a link to these drivers?
I know it exists, but I've never tried.
And... you have absolutely no need to complicate the access to your server.


>ALSO! How do I get my ip to display a domain instead of just my ip
You need a DNS server or to use noIp or other such thing.

I want to clarify that Wampserver is a development server, not a production server and that the best way is to host your sites to a hoster, not at home.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.