web-dev-qa-db-fra.com

Échec de l'installation d'Apache2 dans Ubuntu 17.04

    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:
  www-browser Apache2-doc Apache2-suexec-pristine | Apache2-suexec-custom
Recommended packages:
  ssl-cert
The following NEW packages will be installed:
  Apache2 Apache2-bin Apache2-data Apache2-utils
0 upgraded, 4 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/1,308 kB of archives.
After this operation, 5,562 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package Apache2-bin.
(Reading database ... 83701 files and directories currently installed.)
Preparing to unpack .../Apache2-bin_2.4.27-2ubuntu3_AMD64.deb ...
Unpacking Apache2-bin (2.4.27-2ubuntu3) ...
Selecting previously unselected package Apache2-utils.
Preparing to unpack .../Apache2-utils_2.4.27-2ubuntu3_AMD64.deb ...
Unpacking Apache2-utils (2.4.27-2ubuntu3) ...
Selecting previously unselected package Apache2-data.
Preparing to unpack .../Apache2-data_2.4.27-2ubuntu3_all.deb ...
Unpacking Apache2-data (2.4.27-2ubuntu3) ...
Selecting previously unselected package Apache2.
Preparing to unpack .../Apache2_2.4.27-2ubuntu3_AMD64.deb ...
Unpacking Apache2 (2.4.27-2ubuntu3) ...
Processing triggers for ufw (0.35-5) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up Apache2-utils (2.4.27-2ubuntu3) ...
Setting up Apache2-bin (2.4.27-2ubuntu3) ...
Setting up Apache2-data (2.4.27-2ubuntu3) ...
Processing triggers for systemd (234-2ubuntu12.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up Apache2 (2.4.27-2ubuntu3) ...
Job for Apache2.service failed because the control process exited with error code.
See "systemctl  status Apache2.service" and "journalctl  -xe" for details.
invoke-rc.d: initscript Apache2, action "start" failed.
**●** Apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/Apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/Apache2.service.d
           └─Apache2-systemd.conf
   Active: **failed (Result: exit-code)** since Thu 2017-11-16 05:00:16 UTC; 14ms ago
  Process: 4690 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 1107 (code=exited, status=0/SUCCESS)
      CPU: 18ms



Nov 16 05:00:16 vultr.guest systemd[1]: Starting The Apache HTTP Server...
Nov 16 05:00:16 vultr.guest apachectl[4690]: Apache2: Syntax error on line 146 of /etc/Apache2/Apache2.conf: Syntax error on line 3 of /etc/Apache2/mods-enabled/php7.0.load: Cannot load /usr/lib/Apache2/modules/libphp7.0.so into server: /usr/lib/Apache2/modules/libphp7.0.so: cannot open shared object file: No such file or directory
Nov 16 05:00:16 vultr.guest apachectl[4690]: Action 'start' failed.
Nov 16 05:00:16 vultr.guest apachectl[4690]: The Apache error log may have more information.
Nov 16 05:00:16 vultr.guest systemd[1]: Apache2.service: Control process exited, code=exited status=1
Nov 16 05:00:16 vultr.guest systemd[1]: Failed to start The Apache HTTP Server.
Nov 16 05:00:16 vultr.guest systemd[1]: Apache2.service: Unit entered failed state.
Nov 16 05:00:16 vultr.guest systemd[1]: Apache2.service: Failed with result 'exit-code'.

Je ne sais pas comment y remédier, veuillez m'aider! Je suis en première année. Je veux juste installer owncloud.

1
cYy

Installez le paquet libapache2-mod-php7.0

Sudo apt install libapache2-mod-php7.0

ou désactivez le module PHP7 en exécutant

Sudo a2dismod php7.0
1
sys0dm1n