I am trying to install Magento2.4 Open source on the following setup.
VirtualBox 6.1 on Windows 10
Nginx server
Ubuntu 20.4 server installed on the Virtualbox
Php 7.3.20
Command used:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
I have given 0777 permission to /var/www/html/qa.magento.com/ directory
I am getting following error
Plugin installation failed (include(/var/www/html/qa.magento.com/vendor/magento/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Plugin.php): failed to open stream: No such file or directory), rolling back
Detailed Error:
muk@muk:/var/www/html/qa.magento.com$ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
Creating a "magento/project-community-edition" project at "./"
Installing magento/project-community-edition (2.4.0)
- Installing magento/project-community-edition (2.4.0): Loading from cache
Created project in /var/www/html/qa.magento.com/.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 526 installs, 0 updates, 0 removals
- Installing magento/magento-composer-installer (0.1.13): Loading from cache
Plugin installation failed (include(/var/www/html/qa.magento.com/vendor/magento/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Plugin.php): failed to open stream: No such file or directory), rolling back
- Removing magento/magento-composer-installer (0.1.13)
[RuntimeException]
Could not delete /var/www/html/qa.magento.com/vendor/magento/magento-composer-installer/src/MagentoHackathon:
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
Following sudo chown -R www-data:www-data /var/www/html/
command is not changing the ownership.
Update: All the above works if I use Ubuntu Server 18.04 instead of Ubuntu Server 20.04