Ubuntu 使用中遇到的小問題(持續更新)

1. apache2 正確的卸載重裝方式:php

sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install apache2

 2.安裝 apache php模塊apache

apt-get install libapache2-mod-php5

 3.開啓 apache rewrite功能 並修改apache配置文件ide

sudo a2enmod rewrite
<Directory />
        Options FollowSymLinks
        AllowOverride All
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
相關文章
相關標籤/搜索