Ok, so I created a new droplet with 1gb and repeated all the steps I mentioned above.
I am logged in with my new user account. When I try to install Flarum with the following command:
composer create-project flarum/flarum . --stability=beta
I get this error even though the folder /var/www/html/ is empty:
Failed to download flarum/flarum from dist: Could not delete ./:
Now trying to download from source
- Installing flarum/flarum (v0.1.0-beta.6) Cloning 0c975a7f10 from cache
[RuntimeException]
Could not delete ./:
then I tried the same command but with sudo, but it gives me the same error as in my first post:
Your requirements could not be resolved to an installable set of packages etc.
did the sudo apt-get install php-xml again. Now I get:
[InvalidArgumentException]
Project directory ./ is not empty.
When I connect with Filezilla and check the folder, it is empty!? What is going on?