Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue #641

Open
vpsinghbaghel opened this issue May 16, 2020 · 3 comments
Open

Installation issue #641

vpsinghbaghel opened this issue May 16, 2020 · 3 comments
Assignees

Comments

@vpsinghbaghel
Copy link

vpsinghbaghel commented May 16, 2020

Hi,
Could you please help me on this:

This is a fresh installation on Ubuntu 18.
After running sudo docker-compose up -d
when i open on browser, IPaddress:8080 I get following error.

" Fatal error: Uncaught Error: Class 'DATABASE_CONFIG' not found in /var/www/html/app/config/bootstrap.php:97 Stack trace: #0 /var/www/html/cake/libs/configure.php(442): include() #1 /var/www/html/cake/libs/configure.php(52): Configure->__loadBootstrap(true) #2 /var/www/html/cake/bootstrap.php(38): Configure::getInstance() #3 /var/www/html/app/webroot/index.php(83): include('/var/www/html/c...') #4 /var/www/html/index.php(55): require('/var/www/html/a...') #5 {main} thrown in /var/www/html/app/config/bootstrap.php on line 97 "

Could you please help me on this?

Best Regards.

Also I am getting below error unless I don't manually chmod 777 to tmp directory inside app.
Warning (512): /var/www/html/app/tmp/cache/persistent/ is not writable [CORE/cake/libs/cache/file.php, line 281]
Warning: mkdir() [function.mkdir]: Permission denied in /var/www/html/cake/libs/folder.php on line 498
Warning (512): /var/www/html/app/tmp/cache/models/ is not writable [CORE/cake/libs/cache/file.php, line 281]
Warning: mkdir() [function.mkdir]: Permission denied in /var/www/html/cake/libs/folder.php on line 498

Please help to fix this.
Regards.

@shoaibsheikh1111
Copy link

i am having some what same error:

#639 (comment)

@kitsook kitsook self-assigned this May 19, 2020
@kitsook
Copy link
Contributor

kitsook commented May 19, 2020

A few steps are missing. Will update the README with a quick start guide. Basically, you need to:

  • create the file app/config/database.php. A quick way is to copy the file app/config/database.php.default
  • when the docker containers are up, before launching browser, run composer inside the app container. This should fix the folder permission and install necessary php packages
# launch a shell into the app container
docker exec -it ipeer_app bash

# within the container, run composer install
composer install

# exit the container
exit

# on host, restart containers
docker-compose restart

You may then launch browser at http://127.0.0.1:8080/ to continue the installation setup

@shoaibsheikh1111
Copy link

bravo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants