您的位置:首页 > 其它

LAMP环境搭建遇到的问题解决方案

2014-04-14 13:09 393 查看
Syntax error on line 160 of /etc/apache2/apache2.conf:

Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

解决方案:重装apache2

sudo apt-get purge apache2.2-common smb2www apache2-doc && sudo apt-get install apache2



Ubuntu apache服务器装了php5,运行不了php网页?

apt-get install  libapache2-mod-php5 php5 php5-gd  php5-cli
cd /etc/apache2/mods-enabled/
sudo ln -s ../mods-available/php5.load php5.load
sudo ln -s ../mods-available/php5.conf php5.conf


dpkg: error processing libapache2-mod-php5 (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
libapache2-mod-php5
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方案:终端进入sudo cd /var/lib/dpkg

rm -rf info.bak

mv info info.bak

mkdir info


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: