看看官网这里说明吧 。2.4版本和2.2版本配置不一样!!
http://httpd.apache.org/docs/2.4/upgrading.html
另外还有出现这样问题的:
导致Apache2不能启动!
Invalid command 'PerlTaintCheck', perhaps misspelled or defined by a module not included in the server configuration
执行下面这个指令安装相关依赖库!
sudo apt-get install libapache2-mod-perl2 libapache2-mod-apreq2
然后重启Apache2服务 :sudo service Apache2 restart