Apache2未安装/etc/Apache2 ubuntu 12.04

Apache2未安装/etc/Apache2 ubuntu 12.04,apache,ubuntu,apache2,Apache,Ubuntu,Apache2,我正试图从最近升级到apache2.4和PHP5.5的问题中恢复过来。我已经卸载了apache2并删除了/etc/apache2文件夹,但当我安装apache2.2时,它不会创建/etc/apache2文件夹,因此不会启动。请执行以下操作 sudo apt-get remove --purge apache2 apache2-utils sudo apt-get install --reinstall apache2 apache2-utils 按以下步骤进行: sudo apt-get u

我正试图从最近升级到apache2.4和PHP5.5的问题中恢复过来。我已经卸载了apache2并删除了
/etc/apache2
文件夹,但当我安装apache2.2时,它不会创建
/etc/apache2
文件夹,因此不会启动。

请执行以下操作

sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install --reinstall  apache2 apache2-utils
按以下步骤进行:

sudo apt-get update

sudo apt-get remove apache2

sudo apt-get purge apache2

sudo apt-get update

sudo apt-get install apache2

感谢您的回复,我成功地重新安装了apache2,但我无法将PHP从PHP5.5.9-1+sury.org~precise+1降级到正常的PHP5.3,因为降级此链接可能会有所帮助。