Forums

PHP

This topic is locked

not opening php files

Posted 04 Sep 2012 19:05:36
1
has voted
04 Sep 2012 19:05:36 John Carlsson posted:
I have a problem I can not explain as I am a noob....
I installed, win amp, and a host of other all in one progs but they kept throwing up errors, so I made a decision to install mysql, phpmyadmin, apache, php5 and co join them to work together.
After 2 weeks of screwing things up I decided today to make it happen.
Now the problem I have is when I install a script like joomla it works perfectly but when I link back to a php file, lets say my index php

I get a directory structure.. if I click on the php file it works but its the directory structure thats throwing me..... It should as you well know direct to the php file and show the script, but all it does is show the directory structure and I have to click on the php file to make it work...

As a numbskull I was wondering if anybody could help me here...

Why is it directing to the directory structure instead of opening the php file????


Your advice would be most welcome..
John

Replies

Replied 19 Sep 2012 12:02:03
19 Sep 2012 12:02:03 Roddy Dairion replied:
index.php is not set in you apache config httpd.conf file there's a section which normally looks like this
DirectoryIndex index.php index.php3 index.html index.htm
, as you can see my httpd.conf use index.php (if present), when a directory is requested.

Reply to this topic