Issue
I have rented a Debian server using gandi.net. I linked the server to a domain name. When I go on the web on my_domain_name.com
, I get :
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
This proves that apache2
is running, right? So the question is where do I add content?
In /home/username/
or where ?
I'm trying to run some index.php
file and I don't know where to put it in order to run it. What's the path?
Solution
The default document root for apache2 is /var/www
but that can be reconfigured if necessary.
To be sure that Apache is indeed running you can type:
ps -ef | grep apache
If this line of terminal code does not return something Apache is not running. If it returns something it is.
Good luck with your web server.
Answered By - Litterfeldt