ubuntu重装apache出现Can’t open /etc/apache2/envvars的解决办法

来源:互联网 发布:软件测试 翻译 编辑:程序博客网 时间:2024/06/03 18:07

不小心误删了 apache.conf ,重装后遇到
.: 45: Can’t open /etc/apache2/envvars
这个提示

搜索后借助这篇文章,

http://www.unixmen.com/linux-tutorials/940-how-to-reinstall-apache2-properly-in-linux

利用以下命令重装了apache

sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install apache2使用上面两个命令时,源是主服务器的源

原创粉丝点击