Hi all
Has anyone installed both Magento 2 and Magento 1 on their local dev machine (xampp)?
I already have M1 installed and use it for developing and testing but now need to get to grips with M2 for a platform upgrade.
Thanks in advance
Andy
M1 and M2 system requirements are different like php version and needed php extensions. You can use any virtualization technique like docker, vagrant. I suggest you can use docker, it is very light weight, we can create separate container for M1 and M2, in this way we can separate the system requirements without any conflict.
Alternately, you can achieve without any virtualization technique, directly create two vhost one for M1 and one for M2, you have to enable dual php which means php5.6 for M1 and php7.X for M2, you can do this by .htaccess.
Hi Billa
I'm already running php version 7.3.6
I also switch between WordPress and Magento 1 by configuring the http.config file.
I just wondered if there may be some other issue that might prevent M2 from running (not alongside M1).
Many Thanks
Andy
@Andy_AcuteIf you have separate host and setting you won't run in any issue. FYI Magento latest version does not supports 7.3.x. So for support is provided till PHP 7.2.x.
In near future release you may see the support for PHP 7.3.x. On the below URL you can see the technology requirement for latest version of Magento.
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
Hi Tarandeep
I ended up creating a second xampp and installing magento 2 into that. All went well but just getting text on homepage because I didn't install the sample date. The admin just displays a dark grey blank page with page soure of:
<!doctype html> <html lang="en"> <head > <meta charset="utf-8"/> <meta name="robots" content="NOINDEX,NOFOLLOW"/> <meta name="title" content="Magento Admin"/> <meta name="viewport" content="width=1024"/> <meta name="format-detection" content="telephone=no"/> <title>Magento Admin</title> <link rel="stylesheet" type="text/css" media="all" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/extjs/resources/css/ext-all.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/extjs/resources/css/ytheme-magento.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/jquery/jstree/themes/default/style.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/css/styles.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/MSP_ReCaptcha/css/msp_recaptcha.css" /> <link rel="icon" type="image/x-icon" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/Magento_Theme/favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/Magento_Theme/favicon.ico" /> <script type="text/javascript" src="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/requirejs/require.js"></script> <script type="text/javascript" src="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/mage/requirejs/mixins.js"></script> <script type="text/javascript" src="http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/requirejs-config.js"></script> <script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script> </head> <body data-container="body" data-mage-init='{"loaderAjax": {}, "loader": { "icon": "http://localhost/pub/static/version1568123970/adminhtml/Magento/backend/en_GB/images/loader-2.gif"}}' id="html-body" class="adminhtml-auth-login page-layout-admin-login"> </body> </html>
weird
Andy
@Andy_Acute Seems like server configuration issue. I would recommend to upload a phpinfo file in frontend to see if it loading or spitting the code from the file. If it just display the file content then definitely an issue with the server and php configuration. Should be easy to find the solution.
@Andy_Acute Glad to see that!