I am trying to install Magento 2.2.4 on windows localhost using XAMPP.
My XAMPP is installed I C:\xampp7.1
To use command line I using Command prompt in C:\xampp7.1\php>
And the following command:
php C:\xampp7.1\htdocs\Magento2_2_4\bin\magento setup:install --db-host=localhost --db-name=magento224 --db-user=root --db-password=root --base-url=http://127.0.0.1/Magento2_2_4/ --backend-frontname=admin --admin-firstname=admin --admin-lastname=admin [email protected] --admin-user=admin --admin-password=admin@123
But it always giving error: Can't create directory
C:/xampp7.1/htdocs/Magento2_2_4/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/. in [Magento\Framework\App\Config\ConfigSourceAggregated\Proxy]
I have given Magentonto root directory permission 777 using Cygwin
Please guide me in setting proper permissions to Magento's root directory and its ownership on windows localhost
-
You can struggle of course with all stuff you'll face with using windows. But the best solution is vagrant or Docker. So if you ask for guide - then my first step of guide for you is - use linux. Magento2 doesn't support windows.Stepan Furman– Stepan Furman2018年05月20日 10:05:53 +00:00Commented May 20, 2018 at 10:05
-
As which user are you running the php /bin/magento command? I also agree with @StepanFurman - switch over to a real linux environment using vagrant or docker. Not much works very well under windows =(Cyclonecode– Cyclonecode2018年05月21日 11:46:31 +00:00Commented May 21, 2018 at 11:46
-
As administratorWasiq Shahrukh– Wasiq Shahrukh2018年05月21日 11:47:03 +00:00Commented May 21, 2018 at 11:47
-
1@Cyclonecode What's the difference if permissions - 777?Stepan Furman– Stepan Furman2018年05月21日 12:16:49 +00:00Commented May 21, 2018 at 12:16
-
I think there was some issue when using chmod 777 Magento224 because I haven't been able to edit or delete any files after this. So I have just deleted whole magento folder and re extracted it. It is now working fine.. I am never ever going to use chmod 777 with cygwin in windows.Wasiq Shahrukh– Wasiq Shahrukh2018年05月21日 18:59:15 +00:00Commented May 21, 2018 at 18:59
1 Answer 1
Remove generated folder and try again.
-
This should really be a comment, your answer that is =)Cyclonecode– Cyclonecode2018年05月21日 11:45:15 +00:00Commented May 21, 2018 at 11:45
-
this worked for me along with setting the permission to magento root, pub and static folder on windows takeown /F C:\xampp\htdocs\magento223Ankur Jain– Ankur Jain2020年04月20日 06:26:41 +00:00Commented Apr 20, 2020 at 6:26
Explore related questions
See similar questions with these tags.