How to Install Magento2
§ How to Install Magento2
There are two ways we can install magento2.
1. Wampp
2. Xampp
Let’s understand how to install magento2 using Wampp server.
§ What is WampServer?
Ans: WampServer refers to a software stack for the Microsoft Windows operating system, created by Romain Bourdon and consisting of the Apache web server, OpenSSL for SSL support, MySQL database and PHP programming language.
§ So, first you want to install Wampp on your Machine then after we can install Magento2.
Let’s understand how to install magento2 using Xampp server.
1) Xampp
§ What is Xampp?
Ans: XAMPP is an abbreviation for cross-platform, Apache, MySQL, PHP and Perl, and it allows you to build Magento site offline, on a local web server on your computer. This simple and lightweight solution works on Windows, Linux, and Mac – hence the “cross-platform” part.
§ So, first you want to install Xampp on your Machine then after we can install Magento2.
§ So let’s Download Magento setup
Note: Download latest version, here I can use Magento-CE-2.3.4-2020-01-16-11-19-26.zip
Step2: After download successfully then Go to the C:\xampp\htdocs and past CE-2.3.4-2020-01-16-11-19-26.zip file.
Note: If you are using Wampp Server then go to the C:\Wampp\www and past and CE-2.3.4-2020-01-16-11-19-26.zip file.
Step3: then right click on CE-2.3.4-2020-01-16-11-19-26.zip file. And select the extract to CE-2.3.4-2020-01-16-11-19-26.zip file.
Step4: then after wait for extract file.
Step5: after file Full (100%) extract then rename the file. Rename your File name Magento.
Step: 6 go to the C:\xampp\htdocs\Magento\vendor\magento
\framework\View\Element\Template\File and then open the Validator.php
Note: If you are using Wampp Server then go to the C:\Wampp\www\Magento\vendor\magento
\framework\View\Element\Template\File and then open the Validator.php
Step: 7 Then find the protected function isPathInDirectories($path, $directories) {……..}
And replace with below code.
protected function isPathInDirectories($path, $directories)
{
if (!is_array($directories)) {
$directories = (array)$directories;
}
$realPath = $this->fileDriver->getRealPath($path);
foreach ($directories as $directory) {
$directory=$this->fileDriver->getRealPath($directory);
if (0 === strpos($realPath, $directory)) {
return true;
}
}
return false;
}
|
Note: after installation your admin panel is display properly. That’s why we can add this code.
Step: 8 now, go to the C:\xampp and open Xampp-control and then 1st start the Apache and after start Apache and then start the MySQL.
Step: 10 after then, create a blank database and give the name is magento (here magento is your database name)
Step: 11 now open Google chrome and write localhost: 80/Magento/ (Open for client side).
Step 12: After Click on Agree and Setup Magento button. Then you can see below screen .
· Click on Readiness Check
Note: If Some kinds of error display then go to the C:\xampp\php\php.ini
· Then after remove the comment on
;entension=soap
;entension=xsl
;entension=intl
;entension=socket
· Here comment is (; semicolon) so, just remove the semicolon and then after save and close file.
· Then after refresh your url link.
Step 13: then click on next
Step 14: Fill your database information.
Step 15: check your store address properly.
Step 16: Just Click on next
Step 19: Here you can give the Email, Username and Strong Password
For Example: Username: admin and Password: Magento2@
Note: Password must be One Latter Uppercase, lowercase and numeric and at least add one Symbol.
Step: 20 Then Click on Install Now Button.
Step 21: After installation successfully, you can see the Store Address and Magento Admin Address
Note:
2. Magento Admin Address (which means admin side) Google chrome and write a path localhost: 80/ Magento/admin
Step 22: now, open the Google chrome and write a path localhost: 80/ phpmyadmin / [And see your magento database is full of tables.]







Comments
Post a Comment