日期:2010-09-17 浏览次数:20734 次
安装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$