二、安装phpmyadmin:同样在新立得中搜索phpmyadmin,然后安装
三、启用 mod_rewrite 模块:sudo a2enmod rewrite
四、配置 apache2.conf:sudo gedit /etc/apache2/apache2.conf
去掉 AddHandler cgi-script .cgi 前的注释 “#”(有两个#)。
然后在任意地方添加这么一段:
DocumentRoot /var/www/
Options FollowSymLinks
AllowOverride all
Options ExecCGI
对Nicky的补充:还要再加上一句:ServerName ,否则重启服务器的时候会提示:
* Forcing reload of apache 2.0 web server...
apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName