PHP fun
Sometimes PHP is a pain. no, kinda always a pain.
when you update PHP on your server and everything falls over, theme breaks, etc, you can roll back the php-fpm socket temporarily by editing the sites-available conf in nginx. Apache2 is a little different.
xxxxxxxxxx
sudo vim /etc/nginx/sites-available/default
Change the FastCGI backend to use the new (or old version) PHP-FPM socket, save and exit the file
xxxxxxxxxx
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
Run the configuration test
xxxxxxxxxx
$ nginx -t
Restart the web server
xxxxxxxxxx
$ sudo service nginx restart
see if that gets you going long enough to figure out why php is breaking your site.
No Comments