Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Today I installed apache, php, mysql on a VPS (ubuntu 12.04).
I already connected one of my domains to the ip of my VPS.
But when I navigate to my domain, I see sometimes this:
OK (the content that should be displayed)
but when I refresh or wait a few minutes I see this content:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
It's very randomly, it's like apache doesn't know what directory to choose.
Does anyone recognize this problem?
Thanks in advance
Bram
EDIT:
the commands I used after virtual machine installation are:
You are saying that you "connected" the server with the domain name.... you mean you set up dns? Are you completely sure dns is resolving the name to the right IP? Perhaps it's resolving to another IP (server with the default apache message) and that's why the response is not the expected one.
Perhaps a little fun with a sniffer to make sure the server you think is responding is the actual server that is responding?
I could not get your question wright .I Guess php is not working,if that the case you have done all installation&php wright,check whether you have enable php5 module
sudo a2enmod php5
sudo apache2ctl -M -->check whether php5 module is included
Quote:
It's very randomly, it's like apache doesn't know what directory to choose.
Does anyone recognize this problem?
Have you placed all static content to the following path to make apache to listen the static content .DocumentRoot /var/www/mydomain.com/public_html
It has nothing to do with php, I think it's a problem with the hypervisor, when I shutdown my virtual machine, my IP/domain still responds, but only with the 'it works' page, so I think my hosting provider did something wrong with the network adapters. (two virtual machines connected to one IP, I think a deleted virtual machine is still active but not visible)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.