vdesktop@LNBServer:~$ sudo apt-get purge apache2* -y
[sudo] password for vdesktop:
Sorry, try again.
[sudo] password for vdesktop:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apache2-mpm-prefork' for glob 'apache2*'
Note, selecting 'apache2.2-common' for glob 'apache2*'
Note, selecting 'apache2-suexec-pristine' for glob 'apache2*'
Note, selecting 'apache2-api-20120211' for glob 'apache2*'
Note, selecting 'apache2-data' for glob 'apache2*'
Note, selecting 'apache2-suexec' for glob 'apache2*'
Note, selecting 'apache2-bin' for glob 'apache2*'
Note, selecting 'apache2.2-bin' for glob 'apache2*'
Note, selecting 'apache2-dbg' for glob 'apache2*'
Note, selecting 'apache2-dev' for glob 'apache2*'
Note, selecting 'apache2-doc' for glob 'apache2*'
Note, selecting 'apache2-suexec-custom' for glob 'apache2*'
Note, selecting 'apache2' for glob 'apache2*'
Note, selecting 'apache2-utils' for glob 'apache2*'
Note, selecting 'apache2-mpm-itk' for glob 'apache2*'
Package 'apache2.2-bin' is not installed, so not removed
Package 'apache2.2-common' is not installed, so not removed
Note, selecting 'apache2-bin' instead of 'apache2-api-20120211'
Package 'apache2-mpm-itk' is not installed, so not removed
Package 'apache2-mpm-prefork' is not installed, so not removed
Package 'apache2-dbg' is not installed, so not removed
Package 'apache2-dev' is not installed, so not removed
Package 'apache2-doc' is not installed, so not removed
Package 'apache2-suexec-custom' is not installed, so not removed
Package 'apache2-suexec-pristine' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
apache2* apache2-bin* apache2-data* apache2-utils*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 5,407 kB disk space will be freed.
(Reading database ... 188533 files and directories currently installed.)
Removing apache2 (2.4.18-2ubuntu3.9) ...
Purging configuration files for apache2 (2.4.18-2ubuntu3.9) ...
dpkg: warning: while removing apache2, directory '/var/www/html' not empty so not removed
Removing apache2-bin (2.4.18-2ubuntu3.9) ...
Removing apache2-data (2.4.18-2ubuntu3.9) ...
Removing apache2-utils (2.4.18-2ubuntu3.9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
vdesktop@LNBServer:~$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,255 kB of archives.
After this operation, 5,407 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package apache2-bin.
(Reading database ... 187887 files and directories currently installed.)
Preparing to unpack .../apache2-bin_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2-bin (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.9_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up apache2-bin (2.4.18-2ubuntu3.9) ...
Setting up apache2-utils (2.4.18-2ubuntu3.9) ...
Setting up apache2-data (2.4.18-2ubuntu3.9) ...
Setting up apache2 (2.4.18-2ubuntu3.9) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
vdesktop@LNBServer:~$ echo 1 | nc -v 127.0.0.1 80
Connection to 127.0.0.1 80 port [tcp/http] succeeded!
HTTP/1.1 400 Bad Request
Date: Thu, 30 Aug 2018 10:45:55 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 304
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at 80.211.91.44 Port 80</address>
</body></html>
vdesktop@LNBServer:~$ sudo systemctl start apache2
Заработало!!!!
Очень прошу пояснить в чем была проблема.
Благодарю!!