newbie: apache: won't display my files

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
thomasd1
Forum Commoner
Posts: 80
Joined: Sat Nov 22, 2003 2:48 pm
Location: Belgium

newbie: apache: won't display my files

Post by thomasd1 »

localhost won't display my files in htdocs, only the page you get when apache is just installed

I only get the page that says
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.

i know it's gonna be something stupid
Last edited by thomasd1 on Mon Mar 22, 2004 4:59 am, edited 1 time in total.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

obviously your files are in the wrong directory
User avatar
thomasd1
Forum Commoner
Posts: 80
Joined: Sat Nov 22, 2003 2:48 pm
Location: Belgium

Post by thomasd1 »

they are in C:\Program Files\Apache Group\Apache2\htdocs
User avatar
thomasd1
Forum Commoner
Posts: 80
Joined: Sat Nov 22, 2003 2:48 pm
Location: Belgium

Post by thomasd1 »

this is in httpd.conf:
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

why having such a hard time.. i suggest easyphp.org.. .. like it s name you need about 23sec and a half to get it running...
User avatar
thomasd1
Forum Commoner
Posts: 80
Joined: Sat Nov 22, 2003 2:48 pm
Location: Belgium

Post by thomasd1 »

but then i got to restart all over ...
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

?restart your work ? not really you just have to copy your folder (where all you php work is) and past it in the www folder that get created when you iunstall easyphp.. that s it
then you go in localhost of your machine and POP it works :P
User avatar
thomasd1
Forum Commoner
Posts: 80
Joined: Sat Nov 22, 2003 2:48 pm
Location: Belgium

Post by thomasd1 »

is it only in french?
(it's such a discusting language!!)
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

You can change it to english. Your files need to be in the www folder.
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

Try deleting the index file.

Post by Brian »

Apache looks for default files--also known as index files--in a particular order according to its configuration. For example, it may be set to look for index.html then index.htm then index.php, etc. Once it finds a match, it stops. If Apache's placeholder index file has a higher-priority extension than your file, you will see it instead of your file. If that is your problem, the solution is simple: delete Apache's placeholder file. You can also change the priority order.
Post Reply