How do you make a web folder default to index.php?

We have a lamp box set up where I work.  Not much support on it. :(
I am testing different ecommerce packages built in PHP/MySQL.

I am creating different folders for each application.  So for example,

Say is the server name.  I have created

The only problem is that in my browser I have to put to actually find the store.  I know there is a way to automatically refer it to index.php, can someone please tell me how?  Assume I am a newb at this (cuz I am...)

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

in httpd.conf you should add this page as follow:

DirectoryIndex index.html index.htm index.php
If you need any other page name you can just add it here as follow:

DirectoryIndex index.html index.htm index.php testpage.html testpage.php
snyperjAuthor Commented:
where do I find httpd.conf?
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

/usr/local/apache2/conf/httpd.conf or make find / -name httpd.conf to find the path of your file
snyperjAuthor Commented:
well I have a /usr/local but then I don't have an apache2 folder.  I have the following folders in local:

I looked through each of those but don't see a conf folder.  I only have access through WINSCP, so I don't think I can do the "find" that you layed out.
which Linux version are you using?
try /etc/apache2, do you have something like that?
Luqman ShantalPrincipalCommented:
The search command should be: find / -name httpd.conf -print

But I'm sorry, since I couldn't identify your Linux distro, cause this conf is relevant to redhat like systems.

Other distributions have other names for apatche.

To get past this, run the ntsysv command till you find some thing that includes apatche or http . .

Another way is this command:

chkconfig --list |grep http


chconfig --list |grep apache

Good luck!

Luqman ShantalPrincipalCommented:
I forget to add that the path of this file on RHEL5 for example is:


so you just need to do the following:

1- vi /etc/httpd/conf/httpd.conf

2- /DirectoryI

and press enter

3- Go into the editing mode by pressing I then type your page name as shown above (the first answer)

DirectoryIndex  index.php hello.html  index.html index.html.var

4- Save your changes by shift+z+z or :wq!

5- Restart the apache service, in my case it's name is httpd

service httpd restart

6- And here you go!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
snyperjAuthor Commented:
thanks for the help
Change in your httpd.conf

DirectoryIndex index.html index.htm index.php
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.