WebjxCom提示:ubuntu7.10下apache2不能解释php程序的解决办法.
安装apache2,php5,
mysql,phpmyadmin:
sudoapt-getinstallapache2libapache2-mod-php5php5php5-gd
mysql-serverphp5-mysqlphpmyadminphp5-cliphp-pear
安装完成后
,怎么也不能解析php文件
,经过一番查找,解决如下:
microdict@ibm-t60:~$cd/etc/apache2/mods-enabled/
microdict@ibm-t60:/etc/apache2/mods-enabled$sudoln-s../mods-available/php5.loadphp5.load
microdict@ibm-t60:/etc/apache2/mods-enabled$sudoln-s../mods-available/php5.confphp5.conf
microdict@ibm-t60:/etc/apache2/mods-enabled$sudo/etc/init.d/apache2restart
*Restartingwebserverapache2apache2:Couldnotreliablydeterminetheserver’sfullyqualifieddomainname,using127.0.1.1forServerName
apache2:Couldnotreliablydeterminetheserver’sfullyqualifieddomainname,using127.0.1.1forServerName[OK]
microdict@ibm-t60:/etc/apache2/mods-enabled$