Answer the question
In order to leave comments, you need to log in
How to properly install php on debian server?
Installed php on the server, uploaded it to django static files, but I get an error
Failed to load resource: the server responded with a status of 404 (Not Found)
sudo apt update
sudo apt install php php-fpm
обновил код nginx
server {
# . . . other code
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}
sudo systemctl restart nginx
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question