带LAMP的Ubuntu服务器11.10。安装gd会破坏php(或apache?)
我刚刚安装了一个干净的带有lamp的ubuntu服务器11.10(来自ubuntu安装程序)。 服务器运行良好,在apache中运行php 但是,在安装gd时:带LAMP的Ubuntu服务器11.10。安装gd会破坏php(或apache?),php,apache,gd,Php,Apache,Gd,我刚刚安装了一个干净的带有lamp的ubuntu服务器11.10(来自ubuntu安装程序)。 服务器运行良好,在apache中运行php 但是,在安装gd时: sudo apt-get install php5-gd 服务器已经坏了,也就是说,它将只输出php文件作为文本而不进行解释。 我检查了httpd.conf,它被清除了 有人知道如何补救这种情况吗 编辑 在从头开始重新安装服务器后,我尝试在安装gd之前停止服务器,这对我来说很有效 sudo /etc/init.d/apache2 st
sudo apt-get install php5-gd
服务器已经坏了,也就是说,它将只输出php文件作为文本而不进行解释。
我检查了httpd.conf,它被清除了
有人知道如何补救这种情况吗
编辑
在从头开始重新安装服务器后,我尝试在安装gd之前停止服务器,这对我来说很有效
sudo /etc/init.d/apache2 stop
sudo apt-get install php5-gd
sudo /etc/init.d/apache2 start
然后重新启动Apache服务器以加载php模块-sudo/etc/init.d/apache2 restart