Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Install PHP—a server-side language—on a Rocky Linux VPS—add Remi repo with
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
then
dnf module enable php:8.1 && dnf install php php-mysqlnd -y
Restart Apache with
systemctl restart httpd
test with
php -v
—expect \"PHP 8 1 25\" Open port 80 with
firewall-cmd --add-service=http --permanent && firewall-cmd --reload
On DigitalOcean this runs phpMyAdmin—create /var/www/html/info php with
access at http://ip/info php Ensures uptime—add SSL for security supporting dynamic sites with MySQL

Back to All Tips