Magento V2 requires PHP 5.6 and MySQL 5.6

6 posts / 0 new
Last post
#1 Wed, 02/03/2016 - 05:22
Purple Edge

Magento V2 requires PHP 5.6 and MySQL 5.6

Hello, trying to install Magento 2 and checking the requirements for Centos 7...

http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements.html

Neither php 5.6 nor MySQL 5.6 are available in the Webmin update packages, are there any plans to add them soon?

If not, what is the best way to install them?

Wed, 02/03/2016 - 13:51
sle44102

You can add php56 with a software collection. there is a thread here https://www.virtualmin.com/node/38648 with some info. it was pretty easy to do even for a noob like me, i put some notes on how to in the thread.

Wed, 02/03/2016 - 16:48 (Reply to #2)
Purple Edge

Thanks for that.

I think I'll wait for the update to the Webmin packages.

I'll see if I can manually install Magento 1.9 for now, the script install is returning an mcript error.

Sun, 04/10/2016 - 08:45
amityweb

I am also interested in this. What about upgrading to MySQL 5.6? Thanks

Sun, 04/10/2016 - 10:20
johnp_

For PHP 5.6 just use the official SCL:

Then select PHP 5.6 in the virtual server PHP Configuration.
I don't know Magento, but maybe you'll need to install some additional modules. Please kindly refer to their official documentation.

For MySQL 5.6 either use:

Please note that Virtualmin is unable to manage MySQL/MariaDB SCLs, but you should just have to enable to service. AFAIK the SCLs run on Port 3307 or similar instead of the default MySQL/MariaDB-Port 3306, but you should probably check that via netstat. You should also run mysql_secure_installation in a shell with the respective SCL enabled to properly do the initial database setup. For example:

$ scl enable rh-mariadb100 bash
$ mysql_secure_installation
Sun, 04/10/2016 - 10:40
andreychek

Howdy,

Virtualmin just uses the software versions that come with the distro you're using. Also, we don't recommend using software from third parties, as that can introduce a lot of complications.

PHP is a bit simpler, as you can install a second PHP version alongside your existing PHP version using the CentOS SCL repository.

But that's not so simple with MySQL.

Our recommendation is generally to use a Linux distribution that provides the software you are interested in.

However, as described above, there are ways to use newer MySQL/MariaDB versions, such as using the SCL repo, or directly from the MySQL/MariaDB websites. If you wish to go that route though, I'd highly recommend testing the process on a test server, rather than trying it for the first time on your live/production server.

-Eric

Topic locked