alextselegidis/plainpad

PHP error with docker

Opened this issue · 1 comments

  1. modify .env and docker-compose up
    The log is in https://drive.google.com/file/d/1wNEnKYbHnfoHEuzHdZM0mXhPI4VUEWe2/view?usp=sharing

  2. when I curl http://localhost:8000 , return

<title>403 Forbidden</title>

Forbidden

You don't have permission to access this resource.


Apache/2.4.38 (Debian) Server at localhost Port 8000 container: plainpad-server | [Tue Jun 15 19:13:50.479593 2021] [autoindex:error] [pid 17] [client 172.24.0.1:59594] AH01276: Cannot serve directory /var/www/html/public/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive plainpad-server | 172.24.0.1 - - [15/Jun/2021:19:13:50 +0000] "GET / HTTP/1.1" 403 437 "-" "curl/7.47.0"
  1. Then I tried to "docker exec -it plainpad-server bash" and run the seed the database with "php artisan migrate:fresh --seed"
    Return :
    Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/artisan on line 18

Call Stack:
0.0001 392608 1. {main}() /var/www/html/artisan:0

Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/artisan on line 18

Call Stack:
0.0001 392608 1. {main}() /var/www/html/artisan:0

Hello!

Thanks for posting the detailed information.

Let me check this and get back to you.

Alex Tselegidis, Plainpad Creator
Need a customization? Get a free quote!