•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,588 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,634 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 415 | Replies: 2 | Solved
![]() |
I cannot get my locally installed Apache 2.2 to execute a .php if simply passed the folder.
For instance, if I tell my browser, "http://localhost/dev/wordpress/wp-admin/" it simply gives me a directory listing of the folder. There is an index.php file there, and if I click it, it executes normally. Or, if I tell the browser, "http://localhost/dev/wordpress/wp-admin/index.php" the file executes normally.
In the Apache configuration file (httpd.conf), I have the following settings in support of PHP:
Is there something else I'm missing that would preclude Apache/PHP from executing index.php when passed only a folder reference?
Thanks!
Tom
For instance, if I tell my browser, "http://localhost/dev/wordpress/wp-admin/" it simply gives me a directory listing of the folder. There is an index.php file there, and if I click it, it executes normally. Or, if I tell the browser, "http://localhost/dev/wordpress/wp-admin/index.php" the file executes normally.
In the Apache configuration file (httpd.conf), I have the following settings in support of PHP:
...
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
...
<IfModule mime_module>
AddType application/x-httpd-php .php .html
...
</IfModule>
...
PHPIniDir "C:/Program Files/PHP"
Is there something else I'm missing that would preclude Apache/PHP from executing index.php when passed only a folder reference?
Thanks!
Tom
Girls Rock Radio - Playing the most awesome contemporary Pop, Rock, & Alternative music from today's All-Girl and Girl-Fronted bands! TUNE IN TODAY !! How about right now?
Thanks xan.
I knew it was something remarkably simple like that. Sadly, "remarkably simple" escapes me sometimes.
I knew it was something remarkably simple like that. Sadly, "remarkably simple" escapes me sometimes.
Girls Rock Radio - Playing the most awesome contemporary Pop, Rock, & Alternative music from today's All-Girl and Girl-Fronted bands! TUNE IN TODAY !! How about right now?
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- Previous Thread: require_once variables not available in function
- Next Thread: Should I echo out password value in the password field?


Linear Mode