PHP errors on install.php in docker container
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
Hey @Vicvinegar0 I've made some changes to the path now, can you give it a try now?
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.
Hmm @xakraz any ideas on this? I haven't used the docker build :/
I will try to give a look this weekend. Stay tune !
@Vicvinegar0 :
- either copy
src/dcimstack/config/db.php.exampleas./docker-compose/conf/dcimstack/config/db.php - Or comment the line 33 in
docker-compose.ymland copy localydb.php.exampleasdb.php