Bookmark and Share

Author Topic: Unable to load Wordpress sites from internet on WAMP Server  (Read 28037 times)

0 Members and 1 Guest are viewing this topic.

Offline layerblend

  • PcWinTech Member
  • *
  • Join Date: May 2014
  • Posts: 5
  • Karma: 0
So, I have been looking this entire morning for an answer to my problem and have not been able to find a fix on any support forum. And I really hate to post something that someone may have asked before But I couldnt find anything regarding my problem. I hope you can help me.

Mysql 5.6.12
PHP 5.4.12
Apache 2.4.4

First you should know I have been using my WAMP server for about a yearwithout a problem. I design and maintain wordpress sites. I can access them from any computer on my internal network. I also forward the ports in my router. So the problem is the following. Today I tried to set it up such that my client from his house can preview the site. Before I send the link I tested the site from my office and here is the problem I can access the wamp homepage and phpmyadmin page but non of the sites will load. Since I use chrome the only message I get is "Oops Google Chrome cannot connect to xxx.xxx.xxx:8888. For security I am listing my office ip on the httpd.config file and it currently looks like this:

     Allow from all
     Order Allow,Deny
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost
     Allow from 192.168.1.21(my workstation ip)
     Allow from 192.168.1.71(server IP)
     Allow from xx.xx.xx.xx(office IP)

What am I missing?

PcWinTech.com Forums


Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #1 on: May 12, 2014, 11:46:03 AM »
The problem is reverse nat. Most home routers dont support it.
http://www.pcwintech.com/test-for-reverse-nat

So that means when you are on the same network you have to connect using the local IP. When out side your network, like I am, is when you connect using the internet IP.

So I connected to the IP you posted under on port 8888 and it works and loads up for me :-D

Quote
Server Configuration

Apache Version :
    2.4.4 
PHP Version :
    5.4.12 
Loaded Extensions :

        Core
        bcmath
        calendar
        com_dotnet
        ctype
        date
        ereg
        filter
        ftp
        hash
        iconv
        json
        mcrypt
        SPL
        odbc
        pcre
        Reflection
        session
        standard
        mysqlnd
        tokenizer
        zip
        zlib
        libxml
        dom
        PDO
        Phar
        SimpleXML
        wddx
        xml
        xmlreader
        xmlwriter
        apache2handler
        gd
        mbstring
        mysql
        mysqli
        pdo_mysql
        pdo_sqlite
        mhash
        xdebug

MySQL Version :
    5.6.12   

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline layerblend

  • PcWinTech Member
  • *
  • Join Date: May 2014
  • Posts: 5
  • Karma: 0
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #2 on: May 12, 2014, 12:11:14 PM »
Thanks for your quick response. I really appreciate it.

I don't think I explained my self very well. I understand how it works and internally I connect to the wamp server typing 192.168.1.71:8888 on my workstation or any device that is connected to my home network. Now from the office or for my client I am using my home ISP provided IP 98.249.xxx.xxx:8888 which is not static but, I know what it is for the moment. I did the port forwarding on my router as well and It all works fine until I click on the wordpress sites. None of the sites will load but I can actually see the wamp homepage and even get into the phpmyadmin page from my office. So I can get to my wamp server without a problem but non of the wordpress sites will load. I just tested a static html page which is just a index.html and the interesting part is that I can see this page from work so it actually loads. So I think is is some kind of permissions in php which is not allowing me to load wordpress sites.

Is is clearer now?

BTW how did you tested my IP under port 8888 when all I worte was xxx.xxx.xxx:8888. I'm posting from work so you probably used that address.

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #3 on: May 12, 2014, 12:26:13 PM »
I used the Ip you posted under which is 173.9.xxx.xxx :wink:

So if it is your work Ip then that explains why it worked lol

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #4 on: May 12, 2014, 12:27:50 PM »
But if your page is loading for you at your home but other parts are not then I dont think it is port forwarding problem, but instead like you said a permissions or config problem.

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline layerblend

  • PcWinTech Member
  • *
  • Join Date: May 2014
  • Posts: 5
  • Karma: 0
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #5 on: May 12, 2014, 12:38:30 PM »
LOL. I figured that's the ip you used. Thanks for that cause I totally forgot to shut it down. So any idea what could be wrong or what might be missing?

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #6 on: May 12, 2014, 12:45:43 PM »
I dont host my own sites so i am not sure what the proper config should be.

You can access the sites fine locally and everything works. But only when you connect from your work it doesnt.

I see you have it set to allow the Ip from your work

Allow from xx.xx.xx.xx(office IP)

But it is possible that it is still not allowed at other locations in the configs? I would try removing the restriction of the IPs untill you know it is fully working from outside and then start putting in the restrictions. At least this way you would be able to tell if that is the problem :-)

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline layerblend

  • PcWinTech Member
  • *
  • Join Date: May 2014
  • Posts: 5
  • Karma: 0
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #7 on: May 12, 2014, 12:53:56 PM »
Thanks, I will try that.

I normally use wamp to build the sites and once it is done I transfer it to my preferred hosting service provider. It has worked without a problem.

Offline layerblend

  • PcWinTech Member
  • *
  • Join Date: May 2014
  • Posts: 5
  • Karma: 0
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #8 on: May 13, 2014, 07:27:31 AM »
Shane,

I found what the problem was. I am posting an answer just in case someone runs into the same problem.

It was a port forwarding issue. I had forward port 5050 in my modem/router(ISP porvided) to my router/dhcp(Netgear). My router/dhcp(netgear) was forwarding internal port 8888 to external port 5050 and that was the problem. As soon as I changed all the ports in both modem and router to 8888 it all worked. Now the only problem is that the page is very slow to load and sometimes mysql timesout so I only get the html but css never loads.

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #9 on: May 13, 2014, 10:18:16 AM »
To make 100% sure that you dont need more ports open I would enable DMZ (Which is a open all ports rule) and then test the site. This way you can be sure if it is a port forwarding problem or not with the rest of the problems :-)

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums

Re: Unable to load Wordpress sites from internet on WAMP Server
« Reply #9 on: May 13, 2014, 10:18:16 AM »