profile
viewpoint

Ask questionsDirectus basic installation is not working properly

<!-- For security issues, please email support@directus.io directly.

  1. Do not delete this template or the issue will be closed
  2. Ensure you're using the latest version of Directus
  3. Post to the correct repo: App: https://github.com/directus/app/issues API: https://github.com/directus/api/issues (YOU ARE HERE) Docs: https://github.com/directus/docs/issues -->

Bug Report

I've used installation document which seems quite easy, but stucked in the place that i need to navigate admin panel :

https://docs.directus.io/getting-started/installation.html#configure

  1. When i've tried to access admin panel, i get this message : http://ec2-18-184-173-146.eu-central-1.compute.amazonaws.com/admin https://pasteboard.co/ILzDaKM.jpg

  2. When i try to create a config manually by usage of command: bin/directus install:config -u directus -p directus

PHP Warning:  file_get_contents(/var/www/directus/config/__api.json): failed to open stream: No such file or directory in /var/www/directus/src/core/Directus/Console/Modules/InstallModule.php on line 135
PHP Notice:  Undefined index: super_admin_token in /var/www/directus/src/core/Directus/Console/Modules/InstallModule.php on line 136
Creating config files required: db_name, db_user, super_admin_token
  1. bin/directus help install shows that i need to set -a parameter install:config -k my-project -h db_host -n db_name -u db_user -p db_pass -d directus_path -a super_admin_token

But i don't know what to set as a value here, but when i try to set simple values like 123, it blocks :

PHP Warning:  file_get_contents(/var/www/directus/config/__api.json): failed to open stream: No such file or directory in /var/www/directus/src/core/Directus/Console/Modules/InstallModule.php on line 135
Permission denied: Superadmin Only

Steps to Reproduce

  1. Try installation via https://docs.directus.io/getting-started/installation.html

Expected Behavior

Normal installation.

Actual Behavior

Can't achieve the installation.

Other Context & Screenshots

<!-- Any other relevant information, screenshots, or schema files to help explain your problem -->

Technical Details

  • Device: Desktop
  • OS: Ubuntu 18.04.3 LTS
  • Web Server: Apache/2.4.29 (Ubuntu)
  • PHP Version: PHP 7.2.24-0ubuntu0.18.04.1 (cli) (built: Oct 28 2019 12:07:07) ( NTS )
  • Database: mysql Ver 14.14 Distrib 5.7.28, for Linux (x86_64) using EditLine wrapper
  • Directus Release Version: v8.3.1
  • Install Method: https://docs.directus.io/getting-started/installation.html
directus/directus

Answer questions ozcanoguz

After doing some configurations, i was able to enable php module with apache2, thanks for your support.

useful!
source:https://uonfu.com/
answerer
Oğuz Özcan ozcanoguz BSH Home Appliances Munich Solution Developer
Github User Rank List