Stephen Kuhn wrote:

On Sat, 2003-08-30 at 21:40, Marco Verheul wrote:


Hi all,

I just installed Apache2 and when I enter http://localhost in my browser
it shows me the apache page, so installation was succesfull. To which
directory does http://localhost point? In other words, where do I load
my webpages so i can use PHP locally on my PC?

I installed with the regular RPM's from de Mandrake (9.1) cd's.

Marco



All yer web stuff lives in /var/www


...if you browse through that directory you'll find

[EMAIL PROTECTED] www]$ ls -CFal
total 9
drwxr-xr-x    7 root     root          168 Aug 27 22:56 ./
drwxr-xr-x   21 root     root          536 Aug 27 23:27 ../
drwxr-xr-x    2 root     root           72 Aug 27 22:56 cgi-bin/
drwxr-xr-x    3 root     root         1024 Aug 27 22:56 error/
drwxr-xr-x    3 root     root          208 Aug 27 22:56 html/
drwxr-xr-x    3 root     root         4952 Aug 27 22:56 icons/
drwxr-xr-x    3 root     root          152 Aug 27 22:59 perl/

So...whatever you want to start digging into - well, it's there...the
obvious place to start would be in the html directory...

Here's a hint, though, mate...if you're just playing around and testing,
why not create subdirectories off like:

/var/www/html/test/mysite01
/var/www/html/test/mysite02

...and so on - this gives you the ability to maintain some semblance of
order and neatness in the /var/www/html directory - and you can very
easily delete your failures without affecting anything else...ay?



You can also place files in your home directory to be served by Apache. Create a directory called "pubic_html" in your home directory and start adding files. You don't even need root access to do this.

You can then view those file by going to http://localhost/~yourhomedirectoryname/

Have fun.

--
Brant Fitzsimmons
[EMAIL PROTECTED]
___________________________________________________________________

Linux user #322847 | Linux machine #207465 | http://counter.li.org/
   AMD Duron 1.3GHz | Mandrake 9.1 | Kernel 2.4.21-0.16mm-mdk
               KDE 3.1.3 | Mozilla 1.4 Mail Client
Uptime:
19:45:01 up 2 days, 46 min,  1 user,  load average: 0.22, 0.16, 0.07
___________________________________________________________________

"All truth passes through three stages. First, it is ridiculed.
Second, it is violently opposed. Third, it is accepted as being
self-evident."
                                -Arthur Schopenhauer (1788-1860)



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to