ubc / iPeer

Peer Evaluation System
http://ipeer.ctlt.ubc.ca
Other
17 stars 18 forks source link

Installation issue #641

Open vpsinghbaghel opened 4 years ago

vpsinghbaghel commented 4 years ago

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 commented 4 years ago

i am having some what same error:

https://github.com/ubc/iPeer/issues/639#issuecomment-629343173

kitsook commented 4 years ago

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

# 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 commented 4 years ago

bravo