Ubuntu 使用中遇到的小问题(持续更新)
1. apache2 正确的卸载重装方式:
sudo apt-get remove --purge apache2 apache2-utils sudo apt-get install apache2
2.安装 apache php模块
apt-get install libapache2-mod-php5
3.开启 apache rewrite功能 并修改apache配置文件
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>