LAMP Ubuntu 16.04 Apache, mysql, php проблемы с установкой сервера

Попытка установить LAMP на Ubuntu 16.04, но с таким количеством проблем также попытаться установить XAMP с помощью связанных команд, но я сталкиваюсь с некоторыми проблемами, поэтому я удаляю как LAMP & XAMP с помощью связанной команды lamp, так и непосредственно удаляю XAMP. И я пытаюсь установить снова, но есть много проблем: -

(1) Установка apache

sudo apt-get install apache2

Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

(2) Установка mysql

sudo apt-get install mysql-server 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server is already the newest version (5.7.15-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

( 3) Установка php

sudo apt-get install php5 libapache-mod-php5 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
E: Unable to locate package libapache-mod-php5

(4) Проверка установки

 sudo /etc/init.d/apache2 restart  

 /etc/init.d/apache2: 46: .: Can't open /etc/apache2/envvars
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
 Failed!
0
задан 12 October 2016 в 21:37

0 ответов

Другие вопросы по тегам:

Похожие вопросы: