Mam taki problem mam projekt w laravelu 5.8
Mam nową aplikację i muszę ją jakoś uruchomić na moim kompie mój system to debian 9.5
Muszę wykonać następujące czynności żeby ją uruchomić.
docker-compose build
docker-compose up
To pierwsze polecenie zwraca błąd
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Uruchomiłem zatem
docker ps --format '{{.Names}} | {{.Image}}' | sort | column -t -s ' '
Polecenie takie zwraca mi błąd
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get https://127.0.0.1/sas/public/sock/v1.39/containers/json: dial unix /var/run/docker.sock: connect: permission denied
Tu chodzi o jakieś repo, ale nie wiem dokładnie o co
I teraz dlaczego to docker zwracca błąd
Ja też próbowałem odpalić ten projekt z przeglądarki i ta aplikacja używa protokołu ssl
Po przekierowaniu z https://127.0.0.1/sas/public/ przekierowuje na https://www.127.0.0.1/sas/public/ i juz nie wczytuje.
dam plik htacces
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
RewriteCond %{HTTP_HOST} !^\. [NC]
RewriteRule .* https://%{REQUEST_URI} [L,R=301]
RewriteRule ^na-saskiej-kepie/plon /wokolplonu/ [L,R=301]
# remove /index.php from some weird urls, e.g.
# https://www.saskakepa.waw.pl/index.php/obiekt/972/PROM-Kultury-Saska-Kepa
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^index.php(.*)$ /$1 [R=301,L]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Migracja bazy danych tez nie działa
In PDOConnection.php line 31:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
In PDOConnection.php line 27:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
In PDOConnection.php line 27:
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known