Pages

Install Magento 2.3.3 - Wamp 3 - Windows 7

Steps to be followed :

1) Install Composer

     > composer install

2) Upload the latest Magento to = > wamp/www/magento2 & Create Database.

3)  using cmd run following,

      php bin/magento setup:install --base-url=http://localhost/magento2 --db-host=localhost --db-name="magento2" --db-user="root" --db-password="" --admin-firstname="abc" --admin-lastname="abc" --admin-email=abc@gmail.com --admin-user="magento2" --admin-password="magento2123" --language="en_US" --currency="INR" --timezone="Asia/Kolkata" --use-rewrites="1"

4) If backend not working, update the file
magento2/vendor/magento/framework/View/Element/Template/File/Validator.php

find 

protected function isPathInDirectories($path, $directories)

replaced entire function with following code :


protected function isPathInDirectories($path, $directories)
{
    if (!is_array($directories)) {
        $directories = (array)$directories;
    }
    $realPath = $this->fileDriver->getRealPath($path);
    $realPath = str_replace('\\', '/', $realPath); // extra code added
    foreach ($directories as $directory) {
        if (0 === strpos($realPath, $directory)) {
            return true;
        }
    }
    return false;
}


5) Open di.xml file inside magento2/app/etc/di.xml

   replace the word "Symlink" with the "Copy" in the file and save the file.


6) Enjoy :)



No comments:

Post a Comment