安装apache2, PHP5, MySQL, phpmyadmin: sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin php5-cli php-pear 安装完成后,怎么也不能解析php文件,经过一番查找,解决如下: microdict@ibm-t60:~$ cd /etc/apache2/mods-enabled/ microdict@ibm-t60:/etc/apache2/mods-enabled$ sudo ln -s ../mods-available/php5.load php5.load microdict@ibm-t60:/etc/apache2/mods-enabled$ sudo ln -s ../mods-available/php5.conf php5.conf microdict@ibm-t60:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 restart * Restarting Web server apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] microdict@ibm-t60:/etc/apache2/mods-enabled$
(责任编辑:admin) |