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 -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache doesn't find PHP files
Author
shiguera



Joined: 31 Jan 2007
Posts: 4

PostPosted: Thu 01 Feb '07 8:59    Post subject: Apache doesn't find PHP files Reply with quote

I'm running Apache 2.2.4, PHP5.0, on Win XP sp2. I have tested Apache from localhost and it displays the "It Works" html page. I wrote the test phpinfo.php file and placed it in a c:/php/phptest directory and on the browser I say: http://localhost/c/php/phptest/phpinfo.php and it doesn't find the file. Instead, if I place it where the index.html file (the one that displays the "It Works" message) is located, Apache will find it and display correctly.

What do I have to do in order for Apache to read my php files from any directory?
Back to top
James Blond
Moderator


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

PostPosted: Thu 01 Feb '07 10:41    Post subject: Reply with quote

http://localhost/c/php/phptest/phpinfo.php is wrong!

You have to place your php files in htdocs folder from apache there where the index.html (It works) file is.
Back to top
halfer



Joined: 31 Jan 2007
Posts: 19

PostPosted: Thu 01 Feb '07 12:23    Post subject: Reply with quote

Generally, you won't want your server to be able to read files from any location, as this is highly unsafe, unless you trust all your users completely. It is possible - set your document root to C:\ - but it is not recommended! Why do you want this configuration, anyway?
Back to top
shiguera



Joined: 31 Jan 2007
Posts: 4

PostPosted: Fri 02 Feb '07 0:06    Post subject: Reply with quote

I am just testing the software to evaluate a CMS application.
Back to top


Reply to topic   Topic: Apache doesn't find PHP files View previous topic :: View next topic
Post new topic   Forum Index -> Other Software