How to Upgrade PHP Version on Ubuntu
Upgrading PHP improves security and performance. On Ubuntu LTS the usual path is Ondřej's PPA.
Steps
Add the PPA and install the target version (8.3 example):
Upgrading PHP improves security and performance. On Ubuntu LTS the usual path is Ondřej's PPA.
Add the PPA and install the target version (8.3 example):
HTTPS is required for trust and SEO. Certbot + Let’s Encrypt automates free certificates on Apache.
Point the domain (A/AAAA) to the VPS IP and open 80/443.
sudo apt updatesudo apt install -y certbot python3-certbot-apacheObtain and install the certificate for your VirtualHost.
Apache remains a common choice for PHP and VirtualHosts. Minimal install on Ubuntu/Debian.
Install Apache:
sudo apt updatesudo apt install -y apache2Enable the service:
sudo systemctl enable --now apache2sudo systemctl status apache2Let’s Encrypt provides free SSL certificates, making it easy to secure your website with HTTPS. This guide shows you how to install a Let’s Encrypt SSL certificate on your server using Certbot.