Install Magento 2 on Windows
Magento is a robust PHP-based open-source e-commerce web platform. Magento, Inc. was the company that created it on March 31, 2008. Magento was created using the Zend framework, and it stores data using the entity attribute value (EAV) database model. The Magento community edition is the only free version available. Magento gives you the ability to manage e-commerce stores by allowing you to interact with categories, goods, and sales orders. Magento is a framework that is extremely adaptable and adjustable
Magento2 installation
Magento2 can be installed in two ways:
Using WampServer: WampServer is a Microsoft Windows software stack designed by Romain Bourdon that includes the Apache web server, OpenSSL for SSL support, MySQL database, and PHP programming language.
Using the XAMPP Server: XAMPP stands for cross-platform, Apache, MySQL, PHP, and Perl, and it allows you to develop Magento sites on your computer’s local web server. The “cross-platform” component refers to the fact that this simple and lightweight solution works on Windows, Linux, and Mac.
So, before we can install Magento2, we must first install Xampp or Wampp Server on our system. The steps for the installation are as follows:
Step 1: Download Magento from its official website, magento.com.
Note: Download the most recent version; in this case, Magento-CE-2.3.4-2020-01-16-11-19-26.zip was utilised.
Step 2: Once the download is complete, navigate to C:xampphtdocs and extract the CE-2.3.4-2020-01-16-11-19-26.zip file.
If you’re using Wampp Server, navigate to C:Wamppwww and paste the CE-2.3.4-2020-01-16-11-19-26.zip file there.
Step 3: Right-click the CE-2.3.4-2020-01-16-11-19-26.zip file and select Extract All. Then, in the CE-2.3.4-2020-01-16-11-19-26.zip file, pick the extract.
Step 4: Finally, wait for the file to be extracted.
Step 5: Rename the file after it has been fully extracted (100%). Magento should be renamed.
Step 6: Open the Validator.php file in the C:xampphtdocsMagentovendormagentoframeworkViewElementTemplateFile.
Note: If you’re using Wampp Server, navigate to C:WamppwwwMagentovendormagento to get started.
Open the Validator.php file after opening the frameworkViewElementTemplateFile.
Step 7: After that, look for the protected method isPathInDirectories($path, $directories)……..
And then replace it with the code below.
isPathInDirectories($path, $directories) is a protected function.
{
is array($directories) if (!is array($directories))
{
(array)$directories; $directories = (array)$directories;
}
$path = $this->fileDriver->getRealPath($path); $realPath = $this->fileDriver->getRealPath($path);
$directories as $directory) foreach
{
$directory=$this->fileDriver->getRealPath($directory);
if ($realPath, $directory) === strpos($realPath, $directory)
{
return false;
}
}
return null;
}
Note: Your admin panel is properly displayed after installation. As a result, we can use this code.
Step 8: Now go to C:xampp and open Xampp-control, then start Apache first, Apache second, Apache third, and MySQL fourth.
Step 9: Now open Google Chrome and type localhost: 80/phpmyadmin / in the address bar.
Step 10: After that, make a new database with the name magento (here magento is your database name)
Step 11: Now open Google Chrome and type localhost: 80/Magento/ into the address bar (Open for client side).
Step 12: Following that, Agree and Setup Magento is the button to click. Then look at the screen below. Check your readiness by clicking on Readiness Check.
Note: If you get any errors, go to C:xamppphpphp.ini and fix them.
After that, delete the comment on
;entension=soap
;entension=xsl
;entension=intl
;entension=socket
Because the comment is (; semicolon), simply remove it before saving and closing the file.
After then, you should refresh your url link.
Step 13: After that, click the Next button.
Step 14: Complete the information in your database.
Step 15: Double-check your store’s address.
Step 16: Simply press the Next button.
Step 17: Enter your Email, Username, and Strong Password here.
Consider the following scenario: admin is the user name, and Magento2@ is the password.
Note: Passwords must have at least one symbol and must include uppercase, lowercase, and numeric characters.
Step 18: After that, press the Install Now button.
Step 19: You can see the Store Address and Magento Admin Address when the installation is complete.
Address of the Shop (which means client side) Create a route localhost: 80/ Magento in Google Chrome.
Magento’s Admin Email (which means admin side) Google Chrome and the localhost:80/Magento/admin write path
Step 20: Now open Google Chrome and type localhost:80/phpmyadmin/ in the address bar. [Notice how your Magento database is crammed with tables.]