After spending an entire day trying to install Flarum onto my regular hosting service without success (AllowOverride was the problem), I made the switch to Digital Ocean with the hope of finally running Flarum. However I keep running into problems. Here are my steps:
- Creating a new Droplet with LAMP 16.04 (from the one-click apps menu)
- Adding a new user (following this guide: https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-16-04)
- mysql secure intallation (sudo mysql_secure_installation)
- sudo apt-get install curl php-cli php-mbstring git unzip
- Since I don't know which method of installing curl is correct, I've tried this also: apt-get install php7.0-curl
- Installing composer:
- Installing Flarum:
- cd /var/www/html
- composer create-project flarum/flarum . --stability=beta
If I try this with my new user account this happens:
Cannot create cache directory /home/uing/.composer/cache/repo/https---packagist .org/, or directory is not writable. Proceeding without cache
Installing flarum/flarum (v0.1.0-beta.6)
Cannot create cache directory /home/uing/.composer/cache/files/, or directory i s not writable. Proceeding without cache
- Installing flarum/flarum (v0.1.0-beta.6) Downloading: 100%
Downloading: 100%
Downloading: 100% Failed to download flarum/flarum from dist: Could not dele te ./:
Now trying to download from source
- Installing flarum/flarum (v0.1.0-beta.6) Cloning 0c975a7f10
[RuntimeException]
Could not delete ./:
If I try this as root (which I should not do...) I get this error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- flarum/core v0.1.0-beta.6 requires s9e/text-formatter 0.6.1 -> satisfiabl e by s9e/text-formatter[0.6.1, 0.6.2].
- flarum/core v0.1.0-beta.5 requires s9e/text-formatter 0.4.12 -> satisfiab le by s9e/text-formatter[0.4.12].
- flarum/core v0.1.0-beta.3 requires s9e/text-formatter 0.4.0 -> satisfiabl e by s9e/text-formatter[0.4.0, 0.4.1, 0.4.10, 0.4.11, 0.4.12, 0.4.2, 0.4.3, 0.4. 4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9].
- flarum/core v0.1.0-beta.4 requires s9e/text-formatter 0.4.0 -> satisfiabl e by s9e/text-formatter[0.4.0, 0.4.1, 0.4.10, 0.4.11, 0.4.12, 0.4.2, 0.4.3, 0.4. 4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9].
- flarum/core v0.1.0-beta.2 requires s9e/text-formatter 0.3.2 -> satisfiabl e by s9e/text-formatter[0.3.2].
- flarum/core v0.1.0-beta requires s9e/text-formatter 0.1.0 -> satisfiable by s9e/text-formatter[0.1.0].
- s9e/text-formatter 0.6.2 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.6.1 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.9 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.8 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.7 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.6 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.5 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.4 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.3 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.2 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.12 requires ext-dom -> the requested PHP extensio n dom is missing from your system.
- s9e/text-formatter 0.4.11 requires ext-dom -> the requested PHP extensio n dom is missing from your system.
- s9e/text-formatter 0.4.10 requires ext-dom -> the requested PHP extensio n dom is missing from your system.
- s9e/text-formatter 0.4.1 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.4.0 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.3.2 requires ext-dom -> the requested PHP extension dom is missing from your system.
- s9e/text-formatter 0.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for flarum/core 0.1.0 -> satisfiable by flarum/core[ v0.1.0-beta, v0.1.0-beta.2, v0.1.0-beta.3, v0.1.0-beta.4, v0.1.0-beta.5, v0.1.0- beta.6].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-apcu.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-curl.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gd.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mbstring.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run php --ini
inside terminal to see which files are used by PH P in CLI mode.
What am I doing wrong?