Star Liu
2008-10-08 09:50:09 UTC
I'm learning to use php. when i drop my Welcome.php into /var/www,
which is the default root directory for localhost, and visit it by
http://localhost/Welcome.php, it can display the html normally; but i
want my php files in another place like /root/MyLife/LifeOS/StarLiu/,
so I add a entry into /etc/apache2/sites-available/default, like this:
Alias /php/ "/root/MyLife/LifeOS/"
<Directory "/root/MyLife/LifeOS/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
then i visit it by http://localhost/php/StarLiu/Welcome.php, but it
pops out the download dialog to download the Welcome.php file.
it seems i didn't configure it correctly, how can i fix it? thanks
which is the default root directory for localhost, and visit it by
http://localhost/Welcome.php, it can display the html normally; but i
want my php files in another place like /root/MyLife/LifeOS/StarLiu/,
so I add a entry into /etc/apache2/sites-available/default, like this:
Alias /php/ "/root/MyLife/LifeOS/"
<Directory "/root/MyLife/LifeOS/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
then i visit it by http://localhost/php/StarLiu/Welcome.php, but it
pops out the download dialog to download the Welcome.php file.
it seems i didn't configure it correctly, how can i fix it? thanks
--
MY IMs, Welcome to add me as a debian user or a web developer!
(msn) ***@live.com
(xmpp) ***@gmail.com
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
MY IMs, Welcome to add me as a debian user or a web developer!
(msn) ***@live.com
(xmpp) ***@gmail.com
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org