Eu rasgo meu cabelo, faz quase um dia que eu tento reinstalar o lampp, mas não funciona.
Já faz quase um dia que eu tento reinstalar o lampp no meu Ubuntu 14.04 LTS em vão. Eu instalei primeiro abajur com o php 5.5.9 e tudo funcionou (eu estava desenvolvendo meu site sem problemas) e queria atualizar meu php para o php7. Então eu instalei php7 mas quando eu fiz phpinfo () no meu site, vi que a versão ainda era 5.5.9, enquanto a linha de comando php -v me dizendo que eu tinha que versão 7. Então, eu tentei remover e reinstalar a lâmpada, segui vários tutoriais e, infelizmente, eu sempre cometi erros.
Para reinstalar a lâmpada, eu sigo este tutorial: tuto aqui .
Mas quando eu fiz sudo apt-get install apache2
, eu tenho esses erros:
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-mysqlnd (5.5.9+dfsg-1ubuntu4.16) ...
Creating config file /etc/php5/mods-available/mysqlnd.ini with new version
cp: cannot create regular file '/etc/php5/mods-available/mysqlnd.ini': No such file or directory
dpkg: error processing package php5-mysqlnd (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of phpmyadmin:
phpmyadmin depends on php5-mysql | php5-mysqli | php5-mysqlnd; however:
Package php5-mysql is not installed.
Package php5-mysqli is not installed.
Package php5-mysqlnd is not configured yet.
dpkg: error processing package phpmyadmin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.6
php5-mysqlnd
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
Resultados do dpkg --configure -a:
Setting up php5-mysqlnd (5.5.9+dfsg-1ubuntu4.16) ...
Creating config file /etc/php5/mods-available/mysqlnd.ini with new version
cp: cannot create regular file '/etc/php5/mods-available/mysqlnd.ini': No such file or directory
dpkg: error processing package php5-mysqlnd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up mysql-server-5.6 (5.6.30-0ubuntu0.14.04.1) ...
2016-05-10 13:08:00 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-05-10 13:08:00 0 [Note] /usr/sbin/mysqld (mysqld 5.6.30-0ubuntu0.14.04.1) starting as process 15565 ...
2016-05-10 13:08:00 15565 [Note] Plugin 'FEDERATED' is disabled.
2016-05-10 13:08:00 15565 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-10 13:08:00 15565 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-10 13:08:00 15565 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-05-10 13:08:00 15565 [Note] InnoDB: Memory barrier is not used
2016-05-10 13:08:00 15565 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-05-10 13:08:00 15565 [Note] InnoDB: Using Linux native AIO
2016-05-10 13:08:00 15565 [Note] InnoDB: Using CPU crc32 instructions
2016-05-10 13:08:00 15565 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-05-10 13:08:00 15565 [Note] InnoDB: Completed initialization of buffer pool
2016-05-10 13:08:00 15565 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-10 13:08:00 15565 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-10 13:08:00 15565 [Note] InnoDB: Waiting for purge to start
2016-05-10 13:08:01 15565 [Note] InnoDB: 5.6.30 started; log sequence number 1626679
2016-05-10 13:08:01 15565 [Note] Binlog end
2016-05-10 13:08:01 15565 [Note] InnoDB: FTS optimize thread exiting.
2016-05-10 13:08:01 15565 [Note] InnoDB: Starting shutdown...
2016-05-10 13:08:02 15565 [Note] InnoDB: Shutdown completed; log sequence number 1626689
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
php5-mysqlnd
mysql-server-5.6
Obrigado!
EDIT: Eu encontrei a solução , eu desinstalo, sucessivamente, mysql e php e, em seguida, a instalação do apache funciona.
Os comandos que eu fiz (Talvez alguns comandos sejam inúteis, mas depois disso funciona):
sudo apt-get purge mysql-client-core-5.6
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mysql-client-core-5.5
sudo apt-get install mysql-server
sudo apt-get -y purge php.*