Van toepassing op: LifeinCloud Cloud VPS • Ubuntu 22.04 LTS

Overzicht

De LAMP-stack (Linux, Apache, MySQL, PHP) is de klassieke open-source webhostingomgeving. LifeinCloud biedt een 1-klik LAMP-image, maar hier lees je hoe je deze handmatig installeert.

Vereisten

  • LifeinCloud VPS met Ubuntu 22.04.
  • Root SSH-toegang.

Stap 1 — Systeem bijwerken

ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y

Stap 2 — Installeer Apache

apt install -y apache2
systemctl enable apache2
systemctl start apache2

Stap 3 — Installeer MySQL

apt install -y mysql-server
mysql_secure_installation

Stap 4 — Installeer PHP

apt install -y php libapache2-mod-php php-mysql

Stap 5 — Test PHP-verwerking

echo "<?php phpinfo(); ?>" > /var/www/html/info.php

Open http://YOUR_SERVER_IP/info.php om te bevestigen dat PHP werkt.

Tip: Je kunt alle stappen overslaan door het 1-klik LAMP Stack-image vanuit het LifeinCloud-paneel te implementeren.
Was dit antwoord nuttig? 1 gebruikers vonden dit artikel nuttig (1 Stemmen)