After restarting Ubuntu, say after and upgrade, you’ll need to restart a few services to get your WordPress site back up and running – In this case, PHP, MySQL and Apache.
Here’s how it’s done.
1) SSH in to your server.
ssh -i /path/-to-my-pem-file.pem username@my-servers-ip
2) Run the following commands.
// Check your PHP version
php -v
// Restart PHP
sudo service php7.x-fpm start // change x for your PHP version
// Restart MySQL
sudo service mysql restart
// Restart Apache
sudo apachectl restart