That's Fantastic, thank you for explaining how it works, I am now able to access the file from a web browser. I have modified the default file, simple! :) awarnier wrote: > > DarkMatter2009 wrote: >> Hello All, >> >> I am relatively new to using Apache, > That's fine. We always welcome new converts, and we like newbies : they > are usually polite, humble, they don't think thy know everything, and > they are easy to impress. > :-) > > I have recently set it up on Ubuntu. > That may be a bit of a problem. You probably did this using the Ubuntu > package management utilities (like apt-get ?). You have to know that > these special per-platform packages install and distribute and configure > Apache in a way that is different for each platform. So we do not > necessarily know where the Apache bits and pieces are on your system, > and this makes it a bit more difficult to help you. > >> What I'm trying to do is make >> "/home/yves/MyFirstPHP/MyFirstPHP/HelloWorld.php" accessible through my >> browser using the URL: http://localhost/MyFirstPHP/HelloWorld.php. > Ha, you are also using PHP. > Another thing to know thus : Apache is one thing, and PHP is another. > On this forum, we can certainly help you with Apache. > But maybe not with configuring PHP inside of Apache. > > 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. > > Unfortunately, probably nobody here can do that, because they do not > know your system, and may or may not know how to set up PHP on it, so > that your link above would work. > For that, you may have to go to a PHP forum, or an Ubuntu forum. > > But if you want, we can try to tell you more or less how Apache works, > and where it looks for things. Maybe that will help you figure out your > way through the PHP tutorials. > > For example, the directory you mention above (/home/yves/) is not where > a "standard" Apache is looking for documents or scripts. Maybe PHP does > that, but I don't know about that part. > > I do not know Ubuntu per se, but I believe it is similar to Debian, and > I know Debian. So in what follows, take everything a bit cautiously, > always thinking that on your system things my be a bit different. > Follow the explanations hereafter, line by line, and check at each line > that it is really so on your system. > > Apache is started/stopped by a system script : /etc/init.d/apache2 > > The first thing Apache does when started, is read its main configuration > file, which is /etc/apache2/apache2.conf. > > In that configuration file, there is a line that tells Apache to read > further configuration files, which are stored in > /etc/apache2/sites-enabled. These are in fact links to the real > configuration files, which are in /etc/apache2/sites-available. > > One of these files in /etc/apache2/sites-available is a file called > "default" or ".default", which provides the configuration for the first > (and by default the only) Apache "virtual host". > > In that file /etc/apache2/sites-available/default, is a line > DocumentRoot xxxxxxxxxxxxxx > where xxxxxxxxxxx is the place where, by default, Apache looks for > documents. (It is probably something like "/var/www" or > "/var/www/htdocs"). What is it on your system ? > > When you start Apache, and enter in the browser the URL > "http://localhost", what do you see ? > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > -- View this message in context: http://www.nabble.com/First-time-setting-up-site-on-Apache-tp24805753p24806756.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx