We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Installation keeps getting "Killed" on Digital Ocean droplet

Eric September 10, 2020 by Eric

Hi all,

I'm having trouble installing Statamic on a Digital Ocean LAMP droplet and am wondering if anyone knows what's wrong.

I've created a non-root user, run apt update, checked firewall settings, added domains and DNS entries, added virtual host files, installed Composer globally, installed and enabled a few extra PHP extensions that Statamic requires that weren't on the droplet by default (mbstring, bcmath, xml, zip, unzip) -- But still when I run:

composer create-project statamic/statamic mysite --prefer-dist --stability=dev

I get:

Creating a "statamic/statamic" project at "./mysite"
Installing statamic/statamic (dev-master c2b4f8d3a622d31e5d14e2981c294db23cb5b853)
  - Installing statamic/statamic (dev-master c2b4f8d): Downloading (100%)         
Created project in /var/www/mysite.com/mysite
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)

That "Killed" message is killing me :) The line before it, "Updating dependencies," hangs for about a minute, so I'm wondering if it's timing out and if so, how to keep it from doing so. A lot of site files do get installed after this, but then if I try to run:

php please make:user

I get:

PHP Warning:  require(/var/www/mysite.com/mysite/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/mysite.com/mysite/please on line 18
PHP Fatal error:  require(): Failed opening required '/var/www/mysite.com/mysite/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/mysite.com/mysite/please on line 18

...and when I look for the vendor/autoload.php file it actually seems like the vendor directory isn't being installed.

Any ideas what might be causing this failure? I'm not very experienced with sysadmin, so maybe there's something you all know that I don't. Help me out? Thanks!

Answered by Duncan McClean!
>>>>>>> Answered <<<<<<<
4 Replies