I'd like to try out Directus but I'm unable to get Directus up and running.
Follow the official installation instructions
/var/www/XXX/directus using git clone https://github.com/directus/directus.git (commit e49e5d28f4c4506f18567db613fb0d471d8df62c)/public)/adminThe configuration screen should show up.
Redirection to login screen without possibilty to start the configuration process.
Error in Apache log:
[Fri Sep 27 14:24:32.891821 2019] [php7:error] [pid 23581] [client XXX] PHP Fatal error: Uncaught Directus\\Logger\\Exception\\InvalidLoggerConfigurationException: Invalid Configuration for logger "path" variable. in var/www/XXX/directus/src/core/Directus/Application/CoreServicesProvider.php:142
Stack trace:
#0 /var/www/XXX/directus/vendor/pimple/pimple/src/Pimple/Container.php(118): Directus\\Application\\CoreServicesProvider->Directus\\Application\\{closure}(Object(Directus\\Application\\Container))
#1 /var/www/XXX/directus/src/core/Directus/Container/Container.php(27): Pimple\\Container->offsetGet('logger')
#2 /var/www/XXX/directus/src/core/Directus/Application/CoreServicesProvider.php(236): Directus\\Container\\Container->get('logger')
#3 [internal function]: Directus\\Application\\CoreServicesProvider->Directus\\Application\\{closure}(Object(Directus\\Exception\\NotInstalledException))
#4 /var/www/XXX/directus/src/core/Directus/Hook/Emitter.php(291): call_user_func_array(Object(Closure), Array)
#5 /var/www/XXX/directus/src/core/Directus/Hook/Emitter.php(1 in /var/www/XXX/directus/src/core/Directus/Application/CoreServicesProvider.php on line 142, referer: https://XXX/admin/
I also tried configuring Directus with the provided scripts (as described here) but this leads to the same issue. Login is also not possible with the configured credentials. The DB connection works fine as the user table was changed during script execution.
Issue #2286 helped me to solve my issues. Why did not I find this issue earlier 馃槖 I did not meet two requirements:
curl was missing. Install it using apt-get install php-curl.AllowOverride enabled for all my virtual hosts, however my config was not sufficient for Directus. What I used so far in my apache.conf:<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
What I added to my Directus virtual host config:
<Directory /var/www/XXX/directus>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
There is a Medium post which is spot on. Maybe this helps someone else in future!
I was having the same issue. In my case it was because directus was not in the root of the domain, but in a subfolder.
Most helpful comment
Issue #2286 helped me to solve my issues. Why did not I find this issue earlier 馃槖 I did not meet two requirements:
curlwas missing. Install it usingapt-get install php-curl.AllowOverrideenabled for all my virtual hosts, however my config was not sufficient for Directus. What I used so far in myapache.conf:What I added to my Directus virtual host config:
There is a Medium post which is spot on. Maybe this helps someone else in future!