B
B
bohdanNa2018-02-14 11:32:33
PHP
bohdanNa, 2018-02-14 11:32:33

How to install mysql 5.5 and php 5.4 on ubuntu 16.04?

The task arose to test the product on the old technology stack, namely php 5.4, mysql 5.5, but these versions are not available from the repository for ubuntu 16.04
, as advised on the forum of the same name, I added a repository that has this package,
but when installing the mysql-server5.5 package, writes " The following packages have unmet dependencies:
mysql-server-5.5 : PreDepends: mysql-common (>= 5.5.35+dfsg-1ubuntu1) but it is not going to be installed
Depends: mysql-client-5.5 (>= 5.5.35 +dfsg-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages."
Displayed a list of retained packages, the result is empty.
I also tried to install these packages from the error, still no result
After that, a brilliant decision came to use aptitude instead of apt-get and, oh Gods, a miracle happened, the installation process began.
Next, I tried to start the mysql service, using sudo service mysql I
write the error "Failed to start mysql.service: Unit mysql.service not found. "
And the same for mysqld
the question arises, what am I doing wrong? And how can you make money?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maksim Fedorov, 2018-02-14
@bohdanNa

It’s better to do testing on a virtual machine through Vagrant or through Docker containers, and you won’t need to install software and resolve conflicts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question