@cortez.connelly
To restart PHP in Ubuntu, you can follow these steps:
- Open a terminal.
- Type the following command to restart PHP-FPM (FastCGI Process Manager):
sudo systemctl restart php7.4-fpm
Replace 7.4 with the version of PHP you have installed. You can check the installed versions using the command php -v.
- If you are using Apache web server with mod_php, you need to restart the Apache service instead. Type the following command:
sudo systemctl restart apache2
Note: Restarting Apache will restart PHP along with it.
That's it! PHP should now be restarted on your Ubuntu system.