Actually the question: tried to remove the Apache.

apt-get remove apache2 

But an error occurred, now Apache does not start

root@194:/etc# service apache2 start * Starting web server apache2 apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Include directory 'mods-enabled' not found [fail])

The directory is. When trying to remove apache ( apt-get remove apache2 )

The following packages will be REMOVED: apache2 0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded. After this operation, 36.9kB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 48868 files and directories currently installed.) Removing apache2 ... root@194:/etc#

When trying to install ( apt-get install apache2 )

The following NEW packages will be installed: apache2 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 0B/1,486B of archives. After this operation, 36.9kB of additional disk space will be used. Selecting previously deselected package apache2. (Reading database ... 48866 files and directories currently installed.) Unpacking apache2 (from .../apache2_2.2.14-5ubuntu8.7_i386.deb) ... Setting up apache2 (2.2.14-5ubuntu8.7) ... root@194:/etc#

Please help.

Added.

 root@194:/etc# apt-get purge apache2 

Reading package lists... Done Building dependency tree Reading state information... Done Package apache2 is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2.root@194:/etc# apt-get clean 3.root@194:/etc# apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: apache2 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 1,486B of archives. Setting up apache2 (2.2.14-5ubuntu8.7) ...

No result.

  • 2
    "Actually, the question was tried: remove the apache. (Apt-get remove apache2) But an error occurred, now the apache does not start"
  • What is the mistake now? - Dex
  • Same as in 1 post. - skydev
  • Fully lead the path to the directory And the path to the config - Dex

1 answer 1

Problem solved.

  1. sudo apt-get remove --purge apache2 apache2-utils
  2. sudo apt-get install apache2

Thanks to all.