From e04fb2415144939145039c10bc861ddc26370de2 Mon Sep 17 00:00:00 2001 From: fabienOVH Date: Tue, 14 Oct 2025 17:23:04 +0200 Subject: [PATCH 1/5] update --- .../install_env_web_dev_on_vps/guide.fr-fr.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md index 8412a4f490c..1686d11dc2c 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md @@ -1,7 +1,7 @@ --- title: 'Installer un environnement de développement web sur un VPS ou un serveur dédié' excerpt: 'Découvrez comment installer un environnement de développement web sur un VPS ou un serveur dédié OVHcloud' -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objectif @@ -30,6 +30,20 @@ Si vous souhaitez installer un CMS (**C**ontent **M**anagement **S**ystem) sur v Connectez-vous en SSH à votre VPS à l'aide de votre nom d'utilisateur et de votre mot de passe. +### Mettre à jour l’index des paquets + +Avant d’installer les composants, mettez à jour la liste des paquets : + +```bash +sudo apt update +``` + +Appliquez les mises à jour disponibles : + +```bash +sudo apt -y upgrade +``` + ### Installer PHP Installez PHP : From 9d6bf573da3b678c4ccd67a7feb795a9de0bde87 Mon Sep 17 00:00:00 2001 From: Yoann Cosse Date: Wed, 15 Oct 2025 15:00:21 +0200 Subject: [PATCH 2/5] Translation & duplication --- .../guide.en-asia.md | 18 ++++++++++++++++-- .../install_env_web_dev_on_vps/guide.en-au.md | 16 +++++++++++++++- .../install_env_web_dev_on_vps/guide.en-ca.md | 16 +++++++++++++++- .../install_env_web_dev_on_vps/guide.en-gb.md | 16 +++++++++++++++- .../install_env_web_dev_on_vps/guide.en-ie.md | 16 +++++++++++++++- .../install_env_web_dev_on_vps/guide.en-sg.md | 16 +++++++++++++++- .../install_env_web_dev_on_vps/guide.en-us.md | 16 +++++++++++++++- .../install_env_web_dev_on_vps/guide.fr-ca.md | 18 ++++++++++++++++-- 8 files changed, 122 insertions(+), 10 deletions(-) diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md index a1fb9bc3f04..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -22,13 +22,27 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo ## Requirements -- A [VPS] solution (https://www.ovhcloud.com/asia/vps) or a [dedicated server](/links/bare-metal/bare-metal) in your [OVHcloud Control Panel](/links/manager) +- A [VPS] solution (/links/bare-metal/vps) or a [dedicated server](/links/bare-metal/bare-metal) in your [OVHcloud Control Panel](/links/manager) - Administrative (sudo) access to your server via SSH ## Instructions Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md index 23e852405b2..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -29,6 +29,20 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md index 23e852405b2..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -29,6 +29,20 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md index 23e852405b2..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -29,6 +29,20 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md index 23e852405b2..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -29,6 +29,20 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md index 23e852405b2..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -29,6 +29,20 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md index 23e852405b2..b0f5d04b13b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md @@ -1,7 +1,7 @@ --- title: "How to install a web development environment on a VPS or a dedicated server" excerpt: "Find out how to install a web development environment on a VPS or an OVHcloud dedicated server" -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objective @@ -29,6 +29,20 @@ If you would like to install a CMS (**C**ontent **M**anagement **S**ystem) on yo Log in to your VPS via SSH with your username and password. +### Update the package index + +Before installing the components, update the package list: + +```bash +sudo apt update +``` + +Apply the available updates: + +```bash +sudo apt -y upgrade +``` + ### Install PHP Install PHP: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md index 8412a4f490c..b94c199da0a 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md @@ -1,7 +1,7 @@ --- title: 'Installer un environnement de développement web sur un VPS ou un serveur dédié' excerpt: 'Découvrez comment installer un environnement de développement web sur un VPS ou un serveur dédié OVHcloud' -updated: 2024-03-13 +updated: 2025-10-15 --- ## Objectif @@ -30,6 +30,20 @@ Si vous souhaitez installer un CMS (**C**ontent **M**anagement **S**ystem) sur v Connectez-vous en SSH à votre VPS à l'aide de votre nom d'utilisateur et de votre mot de passe. +### Mettre à jour l’index des paquets + +Avant d’installer les composants, mettez à jour la liste des paquets : + +```bash +sudo apt update +``` + +Appliquez les mises à jour disponibles : + +```bash +sudo apt -y upgrade +``` + ### Installer PHP Installez PHP : @@ -117,4 +131,4 @@ Pour obtenir quelques conseils généraux pour sécuriser un serveur basé sur G Pour des prestations spécialisées (référencement, développement, etc), contactez les [partenaires OVHcloud](/links/partner) -Échangez avec notre [communauté d'utilisateurs](/links/community). \ No newline at end of file +Échangez avec notre [communauté d'utilisateurs](/links/community). From ad97db94e9b416505f13b5857a65330bfc91bc56 Mon Sep 17 00:00:00 2001 From: fabienOVH Date: Wed, 15 Oct 2025 16:29:07 +0200 Subject: [PATCH 3/5] update --- .../install_env_web_dev_on_vps/guide.fr-fr.md | 58 ++++++++++++------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md index 1686d11dc2c..9b4ebf94d7b 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md @@ -9,7 +9,7 @@ updated: 2025-10-15 Si vous souhaitez installer un CMS (**C**ontent **M**anagement **S**ystem) sur votre VPS (comme WordPress par exemple), vous devez au préalable installer un environnement de développement web sur votre VPS ou votre serveur dédié. Les principaux services à installer sont : - **PHP** : PHP est l'un des langages les plus utilisés pour créer des sites web. Il est nécessaire d'installer PHP pour que votre site web puisse exécuter des scripts et des fonctionnalités dynamiques. Installez de préférence la version de PHP la plus récente. -- **Serveur Web** : Le serveur web est essentiel pour servir les pages de votre site web. Les serveurs web les plus populaires incluent Apache et Nginx, chacun ayant leurs propres avantages en termes de flexibilité, de performance et de facilité de configuration. +- **Serveur web** : Le serveur web est essentiel pour servir les pages de votre site web. Les serveurs web les plus populaires incluent Apache et Nginx, chacun ayant leurs propres avantages en termes de flexibilité, de performance et de facilité de configuration. - **SGBD** : Pour stocker, gérer, et récupérer vos données efficacement, vous aurez besoin d'un SGBD (**S**ystème de **G**estion de **B**ase de **D**onnées). MySQL, PostgreSQL ou encore MariaDB sont les SGBD les plus utilisés dans le développement web. **Découvrez comment installer manuellement un environnement de développement web sur un VPS ou un serveur dédié OVHcloud.** @@ -49,7 +49,7 @@ sudo apt -y upgrade Installez PHP : ```sh -~$ sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +~$ sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` Pour vérifier que PHP est bien installé, entrez la commande suivante : @@ -91,28 +91,44 @@ En cas de besoin, n'hésitez pas à consulter le [site officiel de Nginx](https: > [!primary] > -> Pour ce guide, nous choisissons MariaDB mais vous êtes libre d'installer le SGBD de votre choix. -> - -Installez MariaDB : - -```sh -~$ sudo apt install mariadb-server -y -``` - -Sécurisez et configurez MariaDB : - -```sh -~$ sudo mysql_secure_installation -``` - -Définissez un mot de passe pour votre SGBD et suivez les instructions à l'écran. Une fois l'installation de MariaDB terminée, le message suivant doit s'afficher : - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Choisissez l’onglet correspondant au SGBD que vous souhaitez utiliser. L’extension PHP adéquate est installée dans chaque cas. + +> [!tabs] +> MySQL / MariaDB +>> Installez MariaDB (ou MySQL) et l’extension PHP associée : +>> +>> ```sh +>> ~$ sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Sécurisez l'installation : +>> +>> ```sh +>> ~$ sudo mysql_secure_installation +>> ``` +>> +>> Définissez un mot de passe pour votre SGBD et suivez les instructions à l'écran. Une fois l'installation de MariaDB (ou MySQL) terminée, le message suivant doit s'afficher : +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Installez PostgreSQL et l’extension PHP correspondante : +>> +>> ```sh +>> ~$ sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Créez une base et un utilisateur (exemple) : +>> +>> ```sh +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'mot_de_passe_fort';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -Vous venez d'installer PHP, un serveur Nginx et le SGBD MariaDB. Vous possédez désormais un environnement de développement web fonctionnel sur votre VPS ou votre serveur dédié OVHcloud. Si vous le souhaitez, vous pouvez maintenant installer le CMS (**C**ontent **M**anagement **S**ystem) de votre choix, comme WordPress par exemple. Pour en savoir plus, consultez les guides « [Installer WordPress avec WP-CLI sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps) » et « [Installer WordPress avec Docker sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps) ». +Vous venez d'installer PHP, un serveur Nginx et un SGBD (MariaDB/MySQL ou PostgreSQL). Vous possédez désormais un environnement de développement web fonctionnel sur votre VPS ou votre serveur dédié OVHcloud. Si vous le souhaitez, vous pouvez maintenant installer le CMS (**C**ontent **M**anagement **S**ystem) de votre choix, comme WordPress par exemple. Pour en savoir plus, consultez les guides « [Installer WordPress avec WP-CLI sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps) » et « [Installer WordPress avec Docker sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps) ». Pour obtenir quelques conseils généraux pour sécuriser un serveur basé sur GNU/Linux, consultez nos guides : From 5b4079ba8f3fea3dd2a1143b8ce395974c678d41 Mon Sep 17 00:00:00 2001 From: fabienOVH Date: Wed, 15 Oct 2025 16:35:19 +0200 Subject: [PATCH 4/5] update --- .../install_env_web_dev_on_vps/guide.fr-fr.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md index 9b4ebf94d7b..d4763a1625a 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-fr.md @@ -48,14 +48,14 @@ sudo apt -y upgrade Installez PHP : -```sh -~$ sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` Pour vérifier que PHP est bien installé, entrez la commande suivante : -```sh -~$ sudo php -v +```bash +sudo php -v ``` Si PHP est bien installé, un message de ce type doit apparaître : @@ -71,14 +71,14 @@ Si PHP est bien installé, un message de ce type doit apparaître : Installez Nginx : -```sh -~$ sudo apt install nginx -y +```bash +sudo apt install nginx -y ``` Pour vérifier que Nginx est bien installé, entrez la commande suivante : -```sh -~$ sudo nginx -v +```bash +sudo nginx -v ``` Si Nginx est bien installé, un message de ce type doit apparaître : @@ -97,14 +97,14 @@ En cas de besoin, n'hésitez pas à consulter le [site officiel de Nginx](https: > MySQL / MariaDB >> Installez MariaDB (ou MySQL) et l’extension PHP associée : >> ->> ```sh ->> ~$ sudo apt install -y mariadb-server php-mysql +>> ```bash +>> sudo apt install -y mariadb-server php-mysql >> ``` >> >> Sécurisez l'installation : >> ->> ```sh ->> ~$ sudo mysql_secure_installation +>> ```bash +>> sudo mysql_secure_installation >> ``` >> >> Définissez un mot de passe pour votre SGBD et suivez les instructions à l'écran. Une fois l'installation de MariaDB (ou MySQL) terminée, le message suivant doit s'afficher : @@ -114,13 +114,13 @@ En cas de besoin, n'hésitez pas à consulter le [site officiel de Nginx](https: > PostgreSQL >> Installez PostgreSQL et l’extension PHP correspondante : >> ->> ```sh ->> ~$ sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql >> ``` >> >> Créez une base et un utilisateur (exemple) : >> ->> ```sh +>> ```bash >> sudo -u postgres psql -c "CREATE DATABASE db_name;" >> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'mot_de_passe_fort';" >> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" From e3a079eb6a1b4d74734af1bf0437cb01da0f754c Mon Sep 17 00:00:00 2001 From: Yoann Cosse Date: Wed, 15 Oct 2025 18:06:14 +0200 Subject: [PATCH 5/5] Proofreading & duplication --- .../guide.en-asia.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.en-au.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.en-ca.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.en-gb.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.en-ie.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.en-sg.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.en-us.md | 64 ++++++++++------- .../install_env_web_dev_on_vps/guide.fr-ca.md | 72 +++++++++++-------- 8 files changed, 324 insertions(+), 196 deletions(-) diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-asia.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-au.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ca.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-gb.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-ie.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-sg.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md index b0f5d04b13b..1d84d25161f 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.en-us.md @@ -47,13 +47,13 @@ sudo apt -y upgrade Install PHP: -```sh -sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` To check that PHP is installed properly, enter the following command: -```sh +```bash sudo php -v ``` @@ -70,13 +70,13 @@ If PHP is correctly installed, you should see this message: Install Nginx: -```sh +```bash sudo apt install nginx -y ``` To verify that Nginx is installed properly, enter the following command: -```sh +```bash sudo nginx -v ``` @@ -90,28 +90,44 @@ If you have any queries, please refer to [Nginx official website](https://www.ng > [!primary] > -> For this guide, we choose MariaDB, but you are free to install the DBMS of your choice. -> - -Install MariaDB: - -```sh -sudo apt install mariadb-server -y -``` - -Secure and configure MariaDB: - -```sh -sudo mysql_secure_installation -``` - -Set a password for your DBMS and follow the instructions on the screen. Once the MariaDB installation is complete, you should see the following message: - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case. + +> [!tabs] +> MySQL / MariaDB +>> Install MariaDB (or MySQL) and the associated PHP extension: +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Secure the installation: +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear: +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Install PostgreSQL and the corresponding PHP extension: +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Create a database and a user (example): +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -You have just installed PHP, an Nginx server and MariaDB DBMS. You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. +You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (**C**ontent **M**anagement **S**ystem) of your choice, such as WordPress. To find out more, please read the guides “[How to install WordPress with WP-CLI on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps)” and “[How to install WordPress with Docker on a VPS or a dedicated server](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps)”. For some general tips on securing a GNU/Linux-based server, see our guides: diff --git a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md index b94c199da0a..ef2122be672 100644 --- a/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md +++ b/pages/bare_metal_cloud/virtual_private_servers/install_env_web_dev_on_vps/guide.fr-ca.md @@ -9,7 +9,7 @@ updated: 2025-10-15 Si vous souhaitez installer un CMS (**C**ontent **M**anagement **S**ystem) sur votre VPS (comme WordPress par exemple), vous devez au préalable installer un environnement de développement web sur votre VPS ou votre serveur dédié. Les principaux services à installer sont : - **PHP** : PHP est l'un des langages les plus utilisés pour créer des sites web. Il est nécessaire d'installer PHP pour que votre site web puisse exécuter des scripts et des fonctionnalités dynamiques. Installez de préférence la version de PHP la plus récente. -- **Serveur Web** : Le serveur web est essentiel pour servir les pages de votre site web. Les serveurs web les plus populaires incluent Apache et Nginx, chacun ayant leurs propres avantages en termes de flexibilité, de performance et de facilité de configuration. +- **Serveur web** : Le serveur web est essentiel pour servir les pages de votre site web. Les serveurs web les plus populaires incluent Apache et Nginx, chacun ayant leurs propres avantages en termes de flexibilité, de performance et de facilité de configuration. - **SGBD** : Pour stocker, gérer, et récupérer vos données efficacement, vous aurez besoin d'un SGBD (**S**ystème de **G**estion de **B**ase de **D**onnées). MySQL, PostgreSQL ou encore MariaDB sont les SGBD les plus utilisés dans le développement web. **Découvrez comment installer manuellement un environnement de développement web sur un VPS ou un serveur dédié OVHcloud.** @@ -48,14 +48,14 @@ sudo apt -y upgrade Installez PHP : -```sh -~$ sudo apt install php php-cli php-mysql php-xml php-gd php-curl -y +```bash +sudo apt install -y php php-cli php-fpm php-xml php-gd php-curl ``` Pour vérifier que PHP est bien installé, entrez la commande suivante : -```sh -~$ sudo php -v +```bash +sudo php -v ``` Si PHP est bien installé, un message de ce type doit apparaître : @@ -71,14 +71,14 @@ Si PHP est bien installé, un message de ce type doit apparaître : Installez Nginx : -```sh -~$ sudo apt install nginx -y +```bash +sudo apt install nginx -y ``` Pour vérifier que Nginx est bien installé, entrez la commande suivante : -```sh -~$ sudo nginx -v +```bash +sudo nginx -v ``` Si Nginx est bien installé, un message de ce type doit apparaître : @@ -91,28 +91,44 @@ En cas de besoin, n'hésitez pas à consulter le [site officiel de Nginx](https: > [!primary] > -> Pour ce guide, nous choisissons MariaDB mais vous êtes libre d'installer le SGBD de votre choix. -> - -Installez MariaDB : - -```sh -~$ sudo apt install mariadb-server -y -``` - -Sécurisez et configurez MariaDB : - -```sh -~$ sudo mysql_secure_installation -``` - -Définissez un mot de passe pour votre SGBD et suivez les instructions à l'écran. Une fois l'installation de MariaDB terminée, le message suivant doit s'afficher : - -![env dev web](images/success_msg_mariadb.png){.thumbnail} +> Choisissez l’onglet correspondant au SGBD que vous souhaitez utiliser. L’extension PHP adéquate est installée dans chaque cas. + +> [!tabs] +> MySQL / MariaDB +>> Installez MariaDB (ou MySQL) et l’extension PHP associée : +>> +>> ```bash +>> sudo apt install -y mariadb-server php-mysql +>> ``` +>> +>> Sécurisez l'installation : +>> +>> ```bash +>> sudo mysql_secure_installation +>> ``` +>> +>> Définissez un mot de passe pour votre SGBD et suivez les instructions à l'écran. Une fois l'installation de MariaDB (ou MySQL) terminée, le message suivant doit s'afficher : +>> +>> ![env dev web](images/success_msg_mariadb.png){.thumbnail} +>> +> PostgreSQL +>> Installez PostgreSQL et l’extension PHP correspondante : +>> +>> ```bash +>> sudo apt install -y postgresql postgresql-contrib php-pgsql +>> ``` +>> +>> Créez une base et un utilisateur (exemple) : +>> +>> ```bash +>> sudo -u postgres psql -c "CREATE DATABASE db_name;" +>> sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'mot_de_passe_fort';" +>> sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" +>> ``` ### Conclusion -Vous venez d'installer PHP, un serveur Nginx et le SGBD MariaDB. Vous possédez désormais un environnement de développement web fonctionnel sur votre VPS ou votre serveur dédié OVHcloud. Si vous le souhaitez, vous pouvez maintenant installer le CMS (**C**ontent **M**anagement **S**ystem) de votre choix, comme WordPress par exemple. Pour en savoir plus, consultez les guides « [Installer WordPress avec WP-CLI sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps) » et « [Installer WordPress avec Docker sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps) ». +Vous venez d'installer PHP, un serveur Nginx et un SGBD (MariaDB/MySQL ou PostgreSQL). Vous possédez désormais un environnement de développement web fonctionnel sur votre VPS ou votre serveur dédié OVHcloud. Si vous le souhaitez, vous pouvez maintenant installer le CMS (**C**ontent **M**anagement **S**ystem) de votre choix, comme WordPress par exemple. Pour en savoir plus, consultez les guides « [Installer WordPress avec WP-CLI sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_site_on_vps) » et « [Installer WordPress avec Docker sur un VPS ou un serveur dédié](/pages/bare_metal_cloud/virtual_private_servers/install_wordpress_docker_on_vps) ». Pour obtenir quelques conseils généraux pour sécuriser un serveur basé sur GNU/Linux, consultez nos guides :