I have uploaded Wordpress files to /var/www/html/mysite.com
, given recursive permissions 755
and recursively owned by www-data:www:data
I use the PHP-FPM service running with NGINX as web server on ubuntu 20.04.
This is my domain configuration inside of /etc/nginx/conf.d/mysite.com
server {
listen 80;
server_name mysite.com www.mysite.com;
root /var/www/html/mysite.com;
index index.php;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
ssl_certificate /home/ubuntu/cloudflare/mysite.com/cert.pub;
ssl_certificate_key /home/ubuntu/cloudflare/mysite.com/cert.key;
}
I have a couple other sites with the same configuration and they work, but only this site gives me the This page isn't working - HTTP Error 500
. So I want to know what the configuration problems are.