Magento Installation Step by Step
Localhost admin user name password Set this.
admin
Admin@123
Install Magento 2.4.1 on Windows 10 using Composer and Command line Localhost XAMPP
Ok, Let's go...
1. Download Install XAMPP and Composer
2. Install Elasticsearch & run and test
Ok
E:\xampp\htdocs\elasticsearch\bin\elasticsearch.bat
http://localhost:9200/
do not turn off elasticsearch
3.Download Magento 2.4 from magento official site
note on windows:
Find validateURLScheme function in vendor\magento\framework\Image\Adapter\Gd2.php file. at line 86. Replace function with this:
private function validateURLScheme(string $filename) : bool
{
$allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
$url = parse_url($filename);
if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
return false;
}
return true;
}
---------------------------------
Now, Install magento v2.4.1
Command line:
php bin/magento setup:install --base-url="http://localhost/magento2.4" --db-host="localhost" --db-name="magento2" --db-user="root" --db-password="" --admin-firstname="admin" --admin-lastname="admin" --admin-email="user@example.com" --admin-user="admin" --admin-password="Admin@123" --use-rewrites="1" --backend-frontname="admin"
Enable Extesion : intl , soap ,socket ,xls
do not turn off elasticsearch
please waiting install......... 1h, ok
4. Test and see the result
localhost:9200
=>
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
Note: On Xampp Windows
Change Symlink to copy in file di.xml
Find file Validator.php in ...Magento\Framework\View\Element\Template\File\Validator.php
At around line 138 replace code with this one
$realPath = str_replace('\\', '/',$this-fileDriver-getRealPath($path));
Run : php bin/magento cache:flush
http://localhost/mage2.4/
php bin/magento module:disable Magento_TwoFactorAuth
Ok, Thanks for watching.
#magento2.4installationwindows
Video Keywords :
magento 2.4 installation,
magento 2.4 install command line
php bin/magento deploy:mode:set developer
Comments
Post a Comment