ubuntu 10.04 LAMP 配置
时间:2010-05-27 来源:wuxb45
在新立得里面,编辑 –> 使用任务分组标记软件包,选中LAMP项,然后apply就可以安装了。
完成后测试了一下,发现php文件直接被下载了!,原来是没有进行正确的配置:
sudo gedit /etc/apache2/apache2.conf 在文件后面加上
AddType application/x-httpd-php .php #后面的不必要吧 .htm .html AddDefaultCharset UTF-8 ServerName 0.0.0.0
sudo /etc/init.d/apache2 restart #重启
完成后测试了一下,发现php文件直接被下载了!,原来是没有进行正确的配置:
sudo gedit /etc/apache2/apache2.conf 在文件后面加上
AddType application/x-httpd-php .php #后面的不必要吧 .htm .html AddDefaultCharset UTF-8 ServerName 0.0.0.0
sudo /etc/init.d/apache2 restart #重启
相关阅读 更多 +