Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Installed Appserv. Made a php.


Then I have a folder, like "E:/foldie"

I want file.php to mess with that folder. I found this somewhere:
<IfModule mod_alias.c>
Alias /foldie/ "E:/foldie"
<Directory "E:/foldie">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

So I added it to my httpd.config file.Then I added the following to file.php:


Was expecting "G:/foldie". Nothing happened.


share|improve this question

The Alias Directive is for apache to serve files from a different directory, it is separate to php code running on the apache server.

share|improve this answer
I want a .php to read the files in another drive. I want to configure apache to le tme. – navand Jul 8 '11 at 16:39
Well, you can't configure apache to do this, you'll have to write php to do it. – theotherreceive Jul 8 '11 at 19:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.