Skip to content

Comment Installer la Pile LOMP sur Ubuntu 24.04

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

Installer la pile LOMP (OpenLiteSpeed, MySQL et PHP) sur votre serveur VPS fonctionnant sous Ubuntu 24.04 est un processus simple. Suivez les étapes ci-dessous pour le configurer.

Étape 1 : Mettez à jour votre système

        sudo apt update && sudo apt upgrade -y
    

Étape 2 : Installez OpenLiteSpeed

Tout d’abord, vous devez installer OpenLiteSpeed :

        wget https://openlitespeed.org/package/repo/ubuntu/ol/ubuntu-latest.gpg
        sudo apt-key add ubuntu-latest.gpg
        echo "deb http://rpms.openlitespeed.org/ubuntu/ focal main" | sudo tee /etc/apt/sources.list.d/openlitespeed.list
        sudo apt update
        sudo apt install openlitespeed -y
    

Étape 3 : Installez MySQL

Ensuite, installez le serveur MySQL :

        sudo apt install mysql-server -y
        sudo mysql_secure_installation
    

Suivez les instructions pour sécuriser votre installation MySQL.

Étape 4 : Installez PHP

Installez PHP avec les extensions nécessaires :

        sudo apt install lsphp74 lsphp74-mysql lsphp74-xml lsphp74-mbstring lsphp74-curl lsphp74-zip lsphp74-gd -y
    

Étape 5 : Configurez OpenLiteSpeed pour utiliser PHP

Définissez la version de PHP dans OpenLiteSpeed :

        sudo nano /usr/local/lsws/conf/httpd_config.conf
    

Trouvez les lignes suivantes et mettez-les à jour pour pointer vers la bonne version de PHP :

Visual overview of Comment Installer la Pile LOMP sur Ubuntu 24.04
Visual overview: Comment Installer la Pile LOMP sur Ubuntu 24.04
        74
    

Étape 6 : Démarrez OpenLiteSpeed

Démarrez le serveur OpenLiteSpeed :

        sudo /usr/local/lsws/bin/lswsctrl start
    

Étape 7 : Accédez à OpenLiteSpeed WebAdmin

Ouvrez votre navigateur web et accédez à :

        http://your_server_ip:7080
    

Connectez-vous en utilisant les identifiants par défaut :

        Nom d'utilisateur : admin
        Mot de passe : 123456
    

Assurez-vous de changer le mot de passe après la première connexion.

Conclusion

En suivant ces étapes, vous avez installé avec succès la pile LOMP (OpenLiteSpeed, MySQL et PHP) sur votre serveur VPS fonctionnant sous Ubuntu 24.04. Vous pouvez maintenant commencer à développer vos applications web !

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Key topics covered in Comment Installer la Pile LOMP sur Ubuntu 24.04
Key topics covered in this NetCloud24 guide.

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Practical checklist for Comment Installer la Pile LOMP sur Ubuntu 24.04
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Comment Installer la Pile LOMP sur Ubuntu 24.04
Comment Installer la Pile LOMP sur Ubuntu 24.04
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.