/    Sign up×
Community /Pin to ProfileBookmark

Apache Problem for testing PHP scripts

Hi there,

I’m not sure if I’m posting this in the right place so I apologise in advance.

I’ve installed Apache on my computer to test PHP scripts. On the whole, it’s largely working fine. However, when I open say an IE window, and enter [url]http://localhost/[/url]…. to go to my working files, I get the root directory folder as opposed to the index page. Please see the attached file.

Anyone know why this is happening?

The site works fine once I click on index.htm but I would like to go straight to it if possible.

Thanks for you time.

Riz

[upl-file uuid=30b2fdfc-e30d-4833-8a29-e495516f8e1a size=40kB]problem_apache.jpg[/upl-file]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@sneakyimpMar 05.2008 — I'm not certain, but I believe you need to check out your Apache config file and check your [url=http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindexDirectoryIndex[/url] settings.
×

Success!

Help @riz-man spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...