Ubuntu WEB服务器问题

来源:互联网 发布:酒店预定网站源码 编辑:程序博客网 时间:2024/06/16 09:04

我自己在UBUNTU上设置WEB服务器的时候遇到的问题, 解决方案如下:

Ubuntu 要比其它的LINUX多做一步

 

If the php file is in public_html directory (userdir), you must edit the file:

/etc/apache2/mods-enabled/php5.conf
and comments from line 8-15
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
#    <Directory /home/*/public_html>
#        php_admin_value engine Off
#    </Directory>
#</IfModule>

原创粉丝点击