Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I added some screencast to show what I am having issues with

http://screencast.com/t/212t3ANINqk

http://screencast.com/t/bR44U1wkvNZl

http://screencast.com/t/iDS7APYYsa

but the page downloads my subdirectories instead of opening them up and displaying the index file of that page

Here is the situation. I am trying to get my web service up using mac ports and I am just trying to configure all the files. I am using php, apache, etc. the page goes to the localhost root but anything beyond that. it can not find.

edit

Ive tried to add the following to httpd.conf within the <IfModule mime_module> but no hope

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .html
AddType application/x-httpd-php-source .phps
share|improve this question

closed as off topic by John Conde Nov 2 '12 at 2:31

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

To stop directories showing you require an index.htm or index.php in each directory.

In first screenshot you have a file called indeex.htm

share|improve this answer
there is a index.php or index.html in every directory. i added another screencast that demonstrates. – numerical25 Nov 1 '12 at 21:32
to top it, its not downloading a index file, its downloading something and naming it after the directory – numerical25 Nov 1 '12 at 21:33
In screenshot 1 when you click on indeex.html you go to the php test page. This shows your installation works. Change the name to index.html – david strachan Nov 1 '12 at 21:45
Are all your php files in the htdocs subdirectory? – david strachan Nov 1 '12 at 22:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.