laravel 8 ubuntu 20.04 missconfig on etc/nginx/sites-enabled/default file.
Budget: €8 – €30 EUR
If i run locally script locally works (see attached) with command php artisan serve --port=8090
got error from external ip admin.creditoamigos.com:8090
tried chown 777 but nothing happens.
Check part of etc/nginx/sites-enabled/default file:
server {
listen 8090 default_server;
listen [::]:8090 default_server;
root /var/www/code;
# Add index.php to the list if you are using PHP
index index.php index.htm index.nginx-debian.html;
server_name admin.creditoamigos.com:8090;
location / {
try_files $uri /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# fastcgi_pass 127.0.0.1.:8090;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
got error from external ip admin.creditoamigos.com:8090
tried chown 777 but nothing happens.
Check part of etc/nginx/sites-enabled/default file:
server {
listen 8090 default_server;
listen [::]:8090 default_server;
root /var/www/code;
# Add index.php to the list if you are using PHP
index index.php index.htm index.nginx-debian.html;
server_name admin.creditoamigos.com:8090;
location / {
try_files $uri /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# fastcgi_pass 127.0.0.1.:8090;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}