I have a php website that I would like to add to my localhost so I can do some testing but can't figure out how to add it correctly. The website has multiple directories built into it. If someone could lead me in the right direction that would be great. I have tried a couple of the tutorials online but nothing seems to be working right for me. They all deal with setting it up with a single html file.
Add a comment
|
1 Answer
Simply place the entire website in /var/www/. This is the "webroot", or the place where all website files are stored.
-
If Ubuntu's version is 13.04 or newer, The DocumentRoot became
/var/www/html
instead of/var/www
. For more information, check this question: askubuntu.com/questions/448944/…– DanSep 24, 2015 at 8:17