Hi everybody, I am Cuong, welcome back to my Magento 2 tutorial video series.
#magento #magento2 #magento2tutorial #xampp #
In the previous lesson, I showed everybody on How to install magento 2.4 on Ubuntu, if you don't watch this tutorial yet, you can watch it here https://bit.ly/3piC1f6.
After I published the video about this practice on YouTube, I got a requirement to create another video on How to Install Magento 2.4 on Windows 10 using XAMPP. In this video, I will guide you to complete your task.
I don't recommend everybody using XAMPP to develop Magento 2 on Windows. You should learn Linux, the best you should learn Ubuntu. Because when you publish a Magento website on Internet, you must use Ubuntu.
Before doing this practice, we need to check the Magento 2.4 system requirements again.
You can get this by accessing the link https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html
Magento 2.4.2 system requirements Overview will be:
1. Composer: 2.x
2. Web servers: Apache 2.4.x
3. Database: MariaDB 10.4.17
4. PHP: 7.4.x
5. Elasticsearch: 7.11.x
Okie, let's go.
Let's do this practice, you need to follow steps by step:
Step 1: Installing XAMPP on Windows
- Access the link https://www.apachefriends.org/download.html
- Download the XAMPP Server having the version 7.4.15 / PHP 7.4.15
- Okay! this version meets the standard of Magento 2.4.2.
- Install it on your computer
Step 2: Installing Composer on Windows
- Access the link https://getcomposer.org/
- Download the Composer 2.0.x
- Install it on your computer
- After installing the composer, you must enable the extension (php_intl.dll) in the php.ini file. To enable the extension, edit php.ini and uncomment the line “extension=intl” and just remove the semicolon “;” from the starting of the line. Next, restart the XAMPP control panel.
Step 3: Installing Elasticsearch 7.11.1 on Windows
- Access the link https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.11.1-windows-x86_64.zip
- Download the Elasticsearch 7.11.1
- Install it on your computer
elasticsearch-service.bat install
- Start Elasticsearch by the command line:
elasticsearch-service.bat start
- Elasticsearch uses the port:9200 on your computer, so you can check the result by accessing the link http://localhost:9200
Step 4: Install Magento 2.4.2 on Windows
- Download Magento 2.4.2 by accessing the link https://magento.com/tech-resources/download
- You can include sample data for testing by clicking on Include sample data
- Unzip the downloaded Magento 2.4.2 file to xampp\htdocs\magento\2.4.2
- Access this folder C:\Windows\System32\drivers\etc and open the hosts file, then add this domain for installing Magento 2.4
127.0.0.1 magento-2.4.2.giaphugroup.com
- Create a database named magento242 for Magento 2.4.2: Access the link http://localhost/phpmyadmin
- Enable the extensions: 'soap' 'xsl' 'sockets' 'sodium'
- Edit the file path vendor\magento\framework\Image\Adapter\Gd2.php, then look at the line 98 and add this code. && !file_exists($filename)
- In the command prompt, execute the command:
php bin/magento setup:install --base-url="http://magento-2.4.2.giaphugroup.com/" --db-host="localhost" --db-name="magento242" --db-user="root" --db-password="" --admin-firstname="Cuong" --admin-lastname="Ngo" --admin-email="[email protected]" --admin-user="cuongnq" --admin-password="1qaz4321" --use-rewrites="1" --backend-frontname="admin" --language="en_US" --currency="USD" --timezone="America/Chicago" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200
php bin/magento module:disable Magento_TwoFactorAuth
php bin/magento deploy:mode:set developer
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
Step 5: Check and see the result
- We need to update vhost configuration.
- Open the file C:\xampp\apache\conf\extra\httpd-vhosts.conf
Add the following codes:
Open the file vendor\magento\framework\View\Element\Template\File\Validator.php, look at the line 138 and replace by these codes:
- Access the link http://magento-2.4.2.giaphugroup.com/
Thank you for your watching. If you have any questions about this practice, please feel free to leave a comment below.
Don't forget to like, comment, share my videos and subscribe to my channel for getting the latest videos.
Please do not hesitate to contact me, if you need me to join your Magento project. My rate is $25/hour in Magento 1 and $30/hour in Magento 2.
#magento #magento2 #magento2tutorial #xampp #
In the previous lesson, I showed everybody on How to install magento 2.4 on Ubuntu, if you don't watch this tutorial yet, you can watch it here https://bit.ly/3piC1f6.
After I published the video about this practice on YouTube, I got a requirement to create another video on How to Install Magento 2.4 on Windows 10 using XAMPP. In this video, I will guide you to complete your task.
I don't recommend everybody using XAMPP to develop Magento 2 on Windows. You should learn Linux, the best you should learn Ubuntu. Because when you publish a Magento website on Internet, you must use Ubuntu.
Before doing this practice, we need to check the Magento 2.4 system requirements again.
You can get this by accessing the link https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html
Magento 2.4.2 system requirements Overview will be:
1. Composer: 2.x
2. Web servers: Apache 2.4.x
3. Database: MariaDB 10.4.17
4. PHP: 7.4.x
5. Elasticsearch: 7.11.x
Okie, let's go.
Let's do this practice, you need to follow steps by step:
Step 1: Installing XAMPP on Windows
- Access the link https://www.apachefriends.org/download.html
- Download the XAMPP Server having the version 7.4.15 / PHP 7.4.15
- Okay! this version meets the standard of Magento 2.4.2.
- Install it on your computer
Step 2: Installing Composer on Windows
- Access the link https://getcomposer.org/
- Download the Composer 2.0.x
- Install it on your computer
- After installing the composer, you must enable the extension (php_intl.dll) in the php.ini file. To enable the extension, edit php.ini and uncomment the line “extension=intl” and just remove the semicolon “;” from the starting of the line. Next, restart the XAMPP control panel.
Step 3: Installing Elasticsearch 7.11.1 on Windows
- Access the link https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.11.1-windows-x86_64.zip
- Download the Elasticsearch 7.11.1
- Install it on your computer
elasticsearch-service.bat install
- Start Elasticsearch by the command line:
elasticsearch-service.bat start
- Elasticsearch uses the port:9200 on your computer, so you can check the result by accessing the link http://localhost:9200
Step 4: Install Magento 2.4.2 on Windows
- Download Magento 2.4.2 by accessing the link https://magento.com/tech-resources/download
- You can include sample data for testing by clicking on Include sample data
- Unzip the downloaded Magento 2.4.2 file to xampp\htdocs\magento\2.4.2
- Access this folder C:\Windows\System32\drivers\etc and open the hosts file, then add this domain for installing Magento 2.4
127.0.0.1 magento-2.4.2.giaphugroup.com
- Create a database named magento242 for Magento 2.4.2: Access the link http://localhost/phpmyadmin
- Enable the extensions: 'soap' 'xsl' 'sockets' 'sodium'
- Edit the file path vendor\magento\framework\Image\Adapter\Gd2.php, then look at the line 98 and add this code. && !file_exists($filename)
- In the command prompt, execute the command:
php bin/magento setup:install --base-url="http://magento-2.4.2.giaphugroup.com/" --db-host="localhost" --db-name="magento242" --db-user="root" --db-password="" --admin-firstname="Cuong" --admin-lastname="Ngo" --admin-email="[email protected]" --admin-user="cuongnq" --admin-password="1qaz4321" --use-rewrites="1" --backend-frontname="admin" --language="en_US" --currency="USD" --timezone="America/Chicago" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200
php bin/magento module:disable Magento_TwoFactorAuth
php bin/magento deploy:mode:set developer
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
Step 5: Check and see the result
- We need to update vhost configuration.
- Open the file C:\xampp\apache\conf\extra\httpd-vhosts.conf
Add the following codes:
Open the file vendor\magento\framework\View\Element\Template\File\Validator.php, look at the line 138 and replace by these codes:
- Access the link http://magento-2.4.2.giaphugroup.com/
Thank you for your watching. If you have any questions about this practice, please feel free to leave a comment below.
Don't forget to like, comment, share my videos and subscribe to my channel for getting the latest videos.
Please do not hesitate to contact me, if you need me to join your Magento project. My rate is $25/hour in Magento 1 and $30/hour in Magento 2.
- Kategorien
- PC (Windows/Mac/Linux) Anleitungen
Kommentare deaktiviert.