Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to access to a test website from Internet but I mostly get 504 errors. Any php pages take long time to show, when they show. My web server is an Ubuntu Server 12.10 on a virtual machine with apc and LAMP installed (php 5.4), with network mode bridge. I can access HTML pages but not php ones (I tried with a basic phpinfo() file).

I've set up a dynamic dns with no-ip. It's configured in my router (freebox).

From my local network it works perfectly by the domain name but never when anyone tries to connect from anywhere else through Internet. I don't have any firewall on the virtual machine, and I've forwarded port 80 to it. Any ideas ?

Thanks for your help (and sorry for my english...)

share|improve this question
    
Then you should probably clean your question. Change the title, remove old not relevant info, and give us more data about what PHP page are you trying to show and about your PHP configuration. –  Javier Rivera Feb 20 '13 at 8:12

2 Answers 2

  1. Please open this link and ping IP address of the web server. If it works then that proved that the server is accessible from the internet.
  2. Now check if your port forwarder log shows ICMP packets forwarded to the VM's IP.
  3. if that is also there then no problem with networking. but if any of there steps fail. please post screenshots of where it is failing.
  4. now it should work fine.. Here I am considering that the web server is fine. if that is not the case then past the web server configuration in here with the phpinfo(); output.
share|improve this answer
    
Hi, I'm almost sure that my network configuration is fine because I can get any HTML page from the outside. Here's my phpinfo. 1-clickshare.com/3667143807 –  TranceGeniK Feb 21 '13 at 9:53
    
Hi there, As far as my knowledge goes your PHP file looks good & it does not have any errors or suspected configuration which might conflict or coz any issue. so please duble check three things: **(1) now first delete all cookies from the browser of the system, from where you are trying to access it. then access the index.php (which is not working) from that system, then upload the logs of apache server. –  Rishee Mar 4 '13 at 4:04
    
**(2) Please check: a) Name of your PHP file. b) Path of your PHP file & shere it if possible. c) Configuration in apache to access that file. –  Rishee Mar 4 '13 at 4:05
    
**(3) If possible also attache the code of your index.php which I may also have an issue. if you can't share the code please right a simple test code something apart than phpinfo code in a sample php file and shere that. also check if that works. –  Rishee Mar 4 '13 at 4:05
    
@TranceGeniK *** I'm quit sure that problem is somewhere in the above mentioned 3 things. ... Apologize for the quality of my English. –  Rishee Mar 4 '13 at 4:05

Use this link.

https://help.ubuntu.com/community/DynamicDNS

Internet doesn't know about your virtual machines stuffs if you don't register. For that you have to have a domain and configure it to your server. If you don't have a domain use a DynDNS like service.

share|improve this answer
    
Thanks for your answer, but I have already configured a dynamic DNS. I've edited my question to precise it. –  TranceGeniK Feb 19 '13 at 16:56
    
can you ping that machine through internet with another machine? –  dedunumax Feb 19 '13 at 16:59
    
Yes, I ping it from another local network machine (From the host and another machine), and I get an response from the external ip. –  TranceGeniK Feb 19 '13 at 17:24
    
not from local can you ping it from external network which is connected to internet friend? –  dedunumax Feb 20 '13 at 4:04
    
Hi dedunumax! I've made some more tests with a friend yesturday, and it appears that he could view any HTML page wether it was in the default website or in the virtual host, but the php pages were far more longer to respond... –  TranceGeniK Feb 20 '13 at 7:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.