logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Root works - Subdirectories do not serve PHP pages
Author
talktodale



Joined: 06 Jun 2012
Posts: 1
Location: US, Orlando

PostPosted: Wed 06 Jun '12 23:52    Post subject: Root works - Subdirectories do not serve PHP pages Reply with quote

PHP will not run in subdirectories under document root.

http://localhost (works)
http://localhost/index.php (works)
http://localhost/testsubdirectory/index.php (DOES NOT WORK)

Yes, I am knew to PHP and Apache 2.2 but all I am trying to do is set up new projects in subdirectories and test those projects there and not from the root. Is this by design ?

Additional information from the httpd conf file.


<Directory "C:/Apache">

PHPIniDir "c:\php"
LoadModule php5_module "c:\php\php5apache2_2.dll"
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 07 Jun '12 17:50    Post subject: Reply with quote

I guess there is some kinda issue in your config. Please read the PHP part from http://www.apachelounge.com/viewtopic.php?t=2394

if you still have a question please ask again.
Back to top


Reply to topic   Topic: Root works - Subdirectories do not serve PHP pages View previous topic :: View next topic
Post new topic   Forum Index -> Apache