Php bin/magento module:disable Magento_TwoFactorAuth Php bin/magento module:disable Magento_Csp Php bin/magento deploy:mode:set developer Php bin/magento setup:static-content:deploy –f Php bin/magento setup:install - base-url=” - db-host=”localhost” - db-name=”magento" - db-user=”root” - db-password=”” - admin-firstname=”admin” - admin-lastname=”admin” - admin-user=”admin” - admin-password=”admin123" - use-rewrites=”1" - backend-frontname=”admin” If any command gives an error, make sure your PHP version is 7.3 or greater and you’ve made all the changes mentioned above. Inside your magento directory, open cmd and run the following commands in order.Enable the extensions intl, soap, sockets, xsl on line 921, 943, 944, 949 respectively by removing semi-colon before the word extension. Inside your XAMPP installation directory, navigate to xampp/php and open php.ini with any code editor.$cacheId = implode(‘-’, $this->scopePriorityScheme). Replace the entire line with the following snippet: Inside your magento directory, navigate to vendor\magento\framework\Interception and open PluginListGenerator.php with any code editor.$realPath = str_replace('\\', '/',$this->fileDriver->getRealPath($path)) Inside your magento directory, navigate to vendor\magento\framework\View\Element\Template\File and open Validator.php with any code editor.If ($url & isset($url) & !in_array($url, $allowed_schemes) & !file_exists($filename)) Private function validateURLScheme(string $filename) : bool Replace the entire method code with this code: Search for the method named “ validateURLScheme”, which should be at line # 86. Inside your magento directory, navigate to vendor\magento\framework\Image\Adapter and open G2d.php with any code editor.Paste the Magento zip file, that we downloaded earlier, inside this folder and extract it. Create a new folder inside htdocs with the name of ‘ magento’.Now visit localhost/phpmyadmin and create a new database with the name ‘ magento’.You should see a JSON object as shown in the image below. Make sure that elasticsearch is up and running by visiting localhost:9200 by any browser.Extract the zip file, navigate to bin folder, and double click on “ elasticsearch.bat” to start elasticsearch cluster. Paste the downloaded Elasticsearch zip file inside the newly created folder. Create a new folder inside htdocs with the name of “ elasticsearch”.Navigate to htdocs folder inside XAMPP installation directory. Start Apache and MySQL from XAMPP Control Panel.After downloading the setups, You need to install XAMPP and Composer.Magento (Version 2.4.1 without sample data).Here is a very simple step-by-step tutorial to install Magento 2.4, configuring and resolving all the errors that arise in the process.įollowing are the pre-requisites required for installing Magento. Installing Magento 2.4 on Windows 10 can be really frustrating because of all the errors related to configurations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |