Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First time apache site set up

Status
Not open for further replies.

DarkMatter2009

Programmer
Aug 4, 2009
2
GB
Hello All,

I am relatively new to using Apache, I have recently set it up on Ubuntu. What I'm trying to do is make "/home/yves/MyFirstPHP/MyFirstPHP/HelloWorld.php" accessible through my browser using the URL: The tutorials I have found so far are confusing at best as I tend to digest knowledge better from looking at full examples. If anybody could give me a full example of what I'd put into whichever configure file I'm supposed be working with I will greatly appreciate it.

Thank you in advance.
 
When you first started apache you should have been able to type "localhost" in your browser and a test page should have come up. You want to put your pages in the same directory. If you want to change this, you need to edit "DocumentRoot" in httpd.conf or whatever ubuntu calls that file these days.
 
Found out how to do it, on Ubuntu Apache checks apache2.conf which references default found in the site-avalible folder, altering the default value var/ the desired folder does the trick :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top