I'm having the same issue here. I think it's caused because some missing conf in my nginx file, but i don't know what's missing.
here's my nginx.conf file:
user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; keepalive_timeout 65; upstream fastcgi_backend { # socket # server unix:/var/run/php5-fpm.sock; server unix:/var/run/php/php7.1-fpm.sock; # use tcp connection # server 127.0.0.1:9000; } server { listen 80; server_name localhost; set $MAGE_ROOT /var/www/html; #set $MAGE_DEBUG_SHOW_ARGS 1; #set $MAGE_MODE developer; #set $MAGE_MODE default; #set $MAGE_MODE production; location / { root $MAGE_ROOT; index index.php; autoindex off; charset UTF-8; error_page 404 403 = /errors/404.php; } location ~ \.php$ { root /var/www/html; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } }
I'm using php 7.1-fpm and nginx 1.17.3 running on docker containers
I just had this for the first time with a new installation
Thought usual permissions or user groups... Nothing that usually works was working. started panicking
Answer:
Only difference was. I was doing the install on a clean OS install.
Make sure you have all the Magento required PHP extensions installed and enabled.
I know I usually used to go to install wizard and see it tell me my missing extensions and going from there but
if you don't have php7.2-xml extension the installer wont even run
nothing will run. get php xml extension and restart your apache
this worked for me!
I run this code: sudo chmod -R 777 /var/www/html/magento
it seems that the problem is about permissions.
Is it a safe option to make the installation folder 777 ?
I have the same issue:
Magento 2.4, PHP 7.4 Nginx.
I have even tried changing permission to the unsafe 777 but nothing seems to work
It's ok after I install php7.2. Thank you!