Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Apache doesn't find PHP files |
|
Author |
|
shiguera
Joined: 31 Jan 2007 Posts: 4
|
Posted: Thu 01 Feb '07 8:59 Post subject: Apache doesn't find PHP files |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
halfer
Joined: 31 Jan 2007 Posts: 19
|
Posted: Thu 01 Feb '07 12:23 Post subject: |
|
|
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
|
Posted: Fri 02 Feb '07 0:06 Post subject: |
|
|
I am just testing the software to evaluate a CMS application. |
|
Back to top |
|
|
|
|
|
|