DCIMStack icon indicating copy to clipboard operation
DCIMStack copied to clipboard

PHP errors on install.php in docker container

Open pth0rn opened this issue 7 years ago • 5 comments

Started up the docker container to check out the app, and I just get these errors

Warning: include(config/db.php): failed to open stream: No such file or directory in /www/install.php on line 10

Warning: include(): Failed opening 'config/db.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/install.php on line 10

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /www/install.php on line 41

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /www/install.php on line 42

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /www/install.php on line 43

pth0rn avatar Aug 21 '18 21:08 pth0rn

Hey @Vicvinegar0 I've made some changes to the path now, can you give it a try now?

arjitc avatar Aug 22 '18 21:08 arjitc

Thanks. However I'm still getting the same error. Maybe I am misunderstanding. Do I still need to configure the database for the docker container? I was assuming the DB stuff was already pre-configured for the container.

pth0rn avatar Aug 22 '18 21:08 pth0rn

Hmm @xakraz any ideas on this? I haven't used the docker build :/

arjitc avatar Aug 24 '18 19:08 arjitc

I will try to give a look this weekend. Stay tune !

xakraz avatar Aug 24 '18 19:08 xakraz

@Vicvinegar0 :

  • either copy src/dcimstack/config/db.php.example as ./docker-compose/conf/dcimstack/config/db.php
  • Or comment the line 33 in docker-compose.yml and copy localy db.php.example as db.php

xakraz avatar Aug 24 '18 22:08 xakraz