@raphael_tillman
To switch from PHP v8.0 to v8.1, you can follow these steps:
- Check if PHP v8.1 is available on your system:
Run the following command in your terminal to check the installed PHP versions: php -v
Make sure that PHP v8.1 is installed on your system. If not, you may need to install it using your package manager or by downloading it from the official PHP website.
- Update your system's PHP alternatives:
Use the following command to update the PHP alternatives on your system: sudo update-alternatives --config php
This command will display a list of PHP versions installed on your system. Choose the PHP v8.1 version from the list.
- Check the PHP version:
Run php -v in your terminal again to verify that you are now using PHP v8.1.
- Restart your web server:
After switching to PHP v8.1, you may need to restart your web server for the changes to take effect. Use the following command to restart Apache or Nginx, depending on your configuration:
For Apache: sudo systemctl restart apache2
For Nginx: sudo systemctl restart nginx
- Test your PHP applications:
Finally, test your PHP applications to ensure that they are running correctly with the new PHP version.
By following these steps, you should be able to switch from PHP v8.0 to v8.1 on your system.