diff --git a/.gitignore b/.gitignore
index 3698163e415..034e380690d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ data
.DS_Store
pages/platform/kubernetes-k8s/monitoring-gpu-application/images/gpu-app-demo-video.mov
+llm-config/
\ No newline at end of file
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.de-de.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.de-de.md
index a1107b5b2f2..8935b47b1e0 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.de-de.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.de-de.md
@@ -1,7 +1,7 @@
---
title: "Migrieren einer Website von einem Webhosting auf einen VPS"
-excerpt: "Erfahren Sie hier, wie Sie Ihre Website von einem Webhosting auf einen OVHcloud VPS migrieren"
-updated: 2024-11-06
+excerpt: "Erfahren Sie, wie Sie Ihre Website von einem Webhosting auf einen OVHcloud VPS migrieren"
+updated: 2025-10-23
---
## Ziel
@@ -111,11 +111,65 @@ Folgen Sie unserer [Anleitung zur Verwendung von FileZilla](/pages/web_cloud/web
- **Username** und **Password**: die Kennungen Ihres SSH-Benutzerkontos auf dem VPS.
- **Port**: Verwenden Sie Port 22 (Standard für SFTP).
-#### Schritt 3.2 - Dateien von Ihrer Website auf den VPS übertragen
+#### Schritt 3.2 - Übertragen Sie Ihre Website-Dateien auf den VPS
Wenn Sie auf Ihrem VPS eingeloggt sind, wird die Ordnerstruktur der lokalen Dateien links im FileZilla Interface und die Ordnerstruktur Ihres VPS rechts angezeigt.
-Wählen Sie die Dateien für Ihre Website und die Datenbank aus, die Sie in [Schritt 1.2](#step1.2) heruntergeladen haben. Ziehen Sie sie in das Webverzeichnis Ihres VPS auf der rechten Seite des Interface. Das Webverzeichnis ist der Ort, an dem die Dateien Ihrer Website gespeichert werden, um über Internet verfügbar zu sein. Standardmäßig kann dies ein Ordner mit dem Namen `/var/www/html` oder ein anderes Verzeichnis sein, das während der Installation des Webservers in [Schritt 2.2](#step2.2) konfiguriert wurde. Stellen Sie sicher, dass Sie die Dateien in dem Ordner ablegen, der als Web Root konfiguriert ist, damit die Website ordnungsgemäß funktioniert.
+Das Webverzeichnis (oder Webroot) ist der Ort, an dem Ihre Website-Dateien gespeichert werden, um im Internet zugänglich zu sein. **Standardmäßig kann es sich um einen Ordner namens `/var/www/html` oder einen anderen Ordner handeln, der während der Webserverinstallation in [Schritt 2.2](#step2.2) konfiguriert wurde**. Stellen Sie sicher, dass Ihre Dateien im Ordner platziert werden, der als **Webroot** konfiguriert ist, damit Ihre Website ordnungsgemäß funktioniert.
+
+> [!warning]
+>
+> Wenn Sie sich über SFTP mit einem Nicht-Root-Benutzer (z. B. `debian`) verbinden, haben Sie keine Schreibberechtigung für `/var/www/html`.
+
+**Einfache Vorgehensweise: Dateien in `/home` ablegen und dann mit `sudo` verschieben.**
+
+##### In FileZilla (SFTP)
+
+- Auf der „Remote Site“-Seite (rechte Seite), gehen Sie zu: `/home/debian/`
+- Ziehen Sie Ihre Datenbankdatei (z. B. `backup.sql`) in `/home/debian/`. **Platzieren Sie diese Sicherung nicht im Ordner, den Sie später in den Webroot kopieren** (z. B. `/home/debian/site/`) **oder im Webroot** (z. B. `/var/www/html`), da sie öffentlich heruntergeladen werden könnte.
+- Erstellen Sie einen Ordner `site` in `/home/debian/` (rechtsklicken → `Verzeichnis erstellen`{.action}), und öffnen Sie ihn.
+- Wählen Sie alle Ihre Website-Dateien (die Datenbankdatei sollte nicht mehr darin sein) aus und ziehen Sie sie in `/home/debian/site/`. **Ziehen Sie Ihre SQL-Dumps nicht in diesen Ordner**. Bewahren Sie sie außerhalb des Webroots auf, (z. B. `/home/debian/backup.sql`).
+
+##### Auf Ihrem VPS
+
+Loggen Sie sich via SSH in Ihrem VPS ein, indem Sie den Abschnitt „Mit Ihrem VPS verbinden“ unserer Anleitung „[Erste Schritte mit einem VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)“ verwenden.
+
+Führen Sie die folgenden Befehle aus:
+
+> [!warning]
+>
+> In diesem Beispiel ist der Webroot `/var/www/html`. Wenn Ihr Webroot anders ist (konfiguriert in Schritt 2.2), ersetzen Sie `/var/www/html` durch Ihren tatsächlichen Pfad.
+
+Erstellen Sie den Webroot, falls er nicht existiert:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Kopieren Sie den Inhalt von `/home/debian/site/` in den Webroot, wobei die Ordnerstruktur und Metadaten beibehalten werden:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative, wenn `rsync` nicht installiert ist:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Weisen Sie die Dateien dem Webdienst zu (`www-data` für Nginx/Apache auf Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Setzen Sie die Berechtigungen der Ordner auf `755` (durchsuchbar) und die Dateiberechtigungen auf `644` (lesbar):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Schritt 4 - Datenbank auf Ihren VPS importieren (optional)
@@ -123,22 +177,36 @@ Wählen Sie die Dateien für Ihre Website und die Datenbank aus, die Sie in [Sch
>
> Wenn Ihre Datenbank bereits auf Web Cloud Databases gehostet ist, muss sie nicht auf den VPS migriert werden. Sie können die Datenbank auf Web Cloud Databases belassen und Ihren VPS so konfigurieren, dass er sich mit dieser Datenbank verbindet ([Schritt 5](#step5)).
-Wenn Sie die Datenbank auf Ihren VPS importieren möchten, folgen Sie den nachstehenden Schritten.
+#### Vor dem Start
-Loggen Sie sich via SSH in Ihrem VPS ein, indem Sie den Abschnitt „Mit Ihrem VPS verbinden“ unserer Anleitung „[Erste Schritte mit einem VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)“ lesen.
+- Ihre Sicherungsdatei (`.sql`) wurde in Schritt 3.2 platziert (z. B. `/home/debian/backup.sql`).
+- Das **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) und sein Befehlszeilen-Client wurden in [Schritt 2.2](#step2.2) installiert.
+- Die Datenbank **`db_name`**:
+ - **existiert bereits**, wenn Sie sie während Schritt 2.2 (oder über Ihr Adminpanel) erstellt haben.
+ - **kann automatisch erstellt werden**, wenn Ihre Sicherungsdatei `.sql` `CREATE DATABASE` enthält.
+ - **muss andernfalls vor dem Import erstellt werden.**
-Wenn Sie via SSH mit Ihrem VPS verbunden sind, verwenden Sie die folgenden Befehle, um den Import der Datenbank durchzuführen.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-Im folgenden Beispiel verwenden wir MySQL als **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Verwenden Sie die offizielle DBMS-Dokumentation, die Sie in [Schritt 2.2](#step2.2) installiert haben, um die Datenbank über die entsprechenden Befehle in Ihren VPS zu importieren.
+ (Ersetzen Sie `db_name` durch Ihren gewünschten Namen).
-```php
-
-```
+#### Import der Datenbank
+
+1. Loggen Sie sich via SSH in Ihrem VPS ein, indem Sie den Abschnitt „Mit Ihrem VPS verbinden“ unserer Anleitung „[Erste Schritte mit einem VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)“ verwenden.
+2. Starten Sie den Import mit dem DBMS-Client:
+
+ Im folgenden Beispiel verwenden wir MySQL als DBMS. Verwenden Sie die offizielle Dokumentation des DBMS, das Sie während [Schritt 2.2](#step2.2) installiert haben, um den entsprechenden Befehl für den Import der Datenbank auf Ihren VPS zu verwenden.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Ersetzen Sie `user_name` durch Ihren MySQL-(MySQL/MariaDB)-Benutzernamen, nicht Ihren SSH-Anmeldenamen.
+ - Ersetzen Sie `db_name` durch den Namen der zu importierenden Datenbank.
-Ersetzen Sie `user_name` durch Ihren MySQL-Benutzernamen, `db_name` durch den Namen der zu importierenden Datenbank und `root/to/file.sql` durch den Pfad der gesicherten SQL-Datei.
+3. Geben Sie das DBMS-Benutzerkennwort ein, wenn Sie dazu aufgefordert werden, und warten Sie, bis der Import abgeschlossen ist.
### Schritt 5 - Konfigurationsdateien Ihrer Website einrichten
@@ -254,4 +322,4 @@ Eine vollständige Liste der bewährten Sicherheitspraktiken finden Sie in unser
Kontaktieren Sie für spezialisierte Dienstleistungen (SEO, Web-Entwicklung etc.) die [OVHcloud Partner](/links/partner).
-Treten Sie unserer [User Community](/links/community) bei.
\ No newline at end of file
+Treten Sie unserer [User Community](/links/community) bei.
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-asia.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-asia.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-asia.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-asia.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-au.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-au.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-au.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-au.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ca.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ca.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ca.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ca.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-gb.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-gb.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-gb.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-gb.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ie.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ie.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ie.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-ie.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-sg.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-sg.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-sg.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-sg.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-us.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-us.md
index fa6d93d8f51..78ab141176e 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-us.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.en-us.md
@@ -1,7 +1,7 @@
---
title: "How to migrate a website from a web hosting plan to a VPS"
excerpt: "Find out how to migrate your website from a web hosting plan to an OVHcloud VPS"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objective
@@ -116,7 +116,61 @@ Follow our [guide on using FileZilla](/pages/web_cloud/web_hosting/ftp_filezilla
Once you are logged in to your VPS, the tree-view of your local files will appear on the left-hand side of the FileZilla interface, and the tree-view of your VPS on the right-hand side.
-Select the files from your website and the database that you downloaded in [step 1.2](#step1.2). Drag them to the web directory of your VPS on the right-hand side of the interface. The web directory is where your website files will be stored to be accessible on the internet. By default, this can be a folder named `/var/www/html`, or another directory configured during the installation of your web server in [step 2.2](#step2.2). Make sure that you put your files in the folder that is set up as the web root for your website to work properly.
+The web directory (or web root) is where your website files will be stored to be accessible on the internet. **By default, it may be a folder named `/var/www/html` or another directory configured during your web server installation in [step 2.2](#step2.2)**. Ensure your files are placed in the directory configured as the **web root** to ensure your site functions correctly.
+
+> [!warning]
+>
+> If you are connected via SFTP with a non-root user (e.g., `debian`), you will not have permission to write directly into `/var/www/html`.
+
+**Simple procedure: drop into `/home` then move with `sudo`**
+
+##### In FileZilla (SFTP)
+
+- On the "Remote Site" side (right panel), go to: `/home/debian/`
+- Drag and drop your database file (e.g., `backup.sql`) into `/home/debian/`. **Do not place this backup in the folder you will copy to the web root** (e.g., `/home/debian/site/`) **or in the web root** (e.g., `/var/www/html`), as it could be publicly downloadable.
+- Create a `site` folder in `/home/debian/` (right-click → `Create a directory`{.action}), then open it.
+- Select all your website files (the database file should no longer be there) and drag and drop them into `/home/debian/site/`. **Do not drop your SQL dumps into this folder**. Keep them outside the web root, (e.g., `/home/debian/backup.sql`).
+
+##### On your VPS
+
+Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Run the following commands:
+
+> [!warning]
+>
+> In this example, the web root is `/var/www/html`. If your web root is different (configured in step 2.2), replace `/var/www/html` with your actual path.
+
+Create the web root if it does not exist:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copy the contents of `/home/debian/site/` to the web root while preserving the directory structure and metadata:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative if `rsync` is not installed:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assign ownership of the files to the web service (`www-data` for Nginx/Apache on Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Set directory permissions to `755` (navigable) and file permissions to `644` (readable):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Import the database onto your VPS (optional)
@@ -124,22 +178,36 @@ Select the files from your website and the database that you downloaded in [step
>
> If your database is already hosted on a Web Cloud Databases service, you do not need to migrate it to the VPS. You can keep the database on the Web Cloud Databases service and configure your VPS to connect to this database ([step 5](#step5)).
-If you would like to import the database onto your VPS, follow the steps below.
+#### Before you begin
-Log in to your VPS via SSH, by going to the "Log in to your VPS section" of our guide on "[How to get started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Your backup file (`.sql`) was placed in step 3.2 (e.g., `/home/debian/backup.sql`).
+- The **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) and its command-line client were installed in [step 2.2](#step2.2).
+- The database **`db_name`** :
+ - **already exists** if you created it during step 2.2 (or via your admin panel).
+ - **can be created automatically** if your backup `.sql` contains `CREATE DATABASE`.
+ - **otherwise, create it before importing** :
-Once you have connected to your VPS via an SSH connection, use the commands below to import the database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-In the example below, we use MySQL as a **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Use the official DBMS documentation that you installed in [step 2.2](#step2.2) to use the appropriate commands to import the database to your VPS.
+ (replace `db_name` with your desired name).
-```php
-
-```
+#### Import the database
+
+1. Connect to the VPS via SSH by referring to the "Connect to your VPS" section of our guide "[Getting started with a VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Launch the import using the DBMS client:
+
+ In the example below, we use MySQL as the DBMS. Use the official documentation of the DBMS you installed during [step 2.2](#step2.2) to use the appropriate command for importing the database onto your VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Replace `user_name` with your MySQL (MySQL/MariaDB) username, not your SSH login.
+ - Replace `db_name` with the name of the database to import.
-Replace `user_name` with your MySQL username, `db_name` with the name of the database to import, and `root/to/file.sql` with the path to the backed-up SQL file.
+3. Enter the DBMS user password when prompted and wait for the import to complete.
### Step 5 - Set up your website’s configuration files
@@ -255,4 +323,4 @@ For a full list of security best practices, please read our guide on "[How to se
For specialized services (SEO, development, etc.), contact [OVHcloud partners](/links/partner).
-Join our [community of users](/links/community).
\ No newline at end of file
+Join our [community of users](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-es.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-es.md
index 76c8415e188..ead0cf494cf 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-es.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-es.md
@@ -1,7 +1,7 @@
---
title: "Cómo migrar un sitio web desde un alojamiento web compartido hacia un VPS"
excerpt: "Descubra cómo migrar un sitio web de un alojamiento compartido a un VPS de OVHcloud"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objetivo
@@ -114,9 +114,63 @@ Siga nuestra [guía de uso de FileZilla](/pages/bare_metal_cloud/dedicated_serve
#### Etapa 3.2 - Transferir los archivos de su sitio web al VPS
-Una vez que se haya conectado al VPS, el árbol de archivos local aparecerá a la izquierda de la interfaz FileZilla y a la derecha de su VPS.
+Una vez conectado a su VPS, la estructura de archivos locales aparece a la izquierda de la interfaz de FileZilla, y la de su VPS a la derecha.
-Seleccione los archivos de su sitio web y la base de datos que haya descargado en el [etapa 1.2](#step1.2). Arrástrelos hasta el directorio web de su VPS, a la derecha de la interfaz. El directorio web es el lugar donde los archivos de su sitio web serán almacenados para ser accesibles en Internet. Por defecto, puede ser una carpeta denominada `/var/www/html` u otro directorio configurado durante la instalación del servidor web en el [etapa 2.2](#step2.2). Asegúrese de colocar los archivos en la carpeta configurada como raíz web para que su sitio web funcione correctamente.
+El directorio web (o raíz web) es el lugar donde se almacenarán los archivos de su sitio web para que sean accesibles en Internet. **Por defecto, puede ser un directorio llamado `/var/www/html` o otro directorio configurado durante la instalación de su servidor web en el [paso 2.2](#step2.2)**. Asegúrese de colocar sus archivos en la carpeta configurada como **raíz web** para que su sitio funcione correctamente.
+
+> [!warning]
+>
+> Si se conecta a través de SFTP con un usuario no root (ej. `debian`), no tendrá permiso para escribir directamente en `/var/www/html`.
+
+**Procedimiento simple: depositar en `/home` y luego mover con `sudo`**
+
+##### En FileZilla (SFTP)
+
+- En el lado "Sitio remoto" (panel derecho), vaya a: `/home/debian/`
+- Arrastre y suelte el archivo de su base de datos (ej. `backup.sql`) en `/home/debian/`. **No coloque esta copia de seguridad ni en la carpeta que va a copiar hacia la raíz web** (ej. `/home/debian/site/`) **ni en la raíz web** (ej. `/var/www/html`), de lo contrario podría ser descargada públicamente.
+- Cree una carpeta `site` en `/home/debian/` (haga clic derecho → `Crear un directorio`{.action}), y ábrala.
+- Seleccione todos los archivos de su sitio web (la base de datos ya no debe estar allí) y arrástrelos y suéltelos en `/home/debian/site/`. **No deposite sus volcados SQL en esta carpeta**. Manténgalos fuera de la raíz web, (ej. `/home/debian/backup.sql`.)
+
+##### En su VPS
+
+Conéctese al VPS mediante SSH consultando la sección "Conexión a su VPS" de nuestro guía "[Primeros pasos con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Ejecute los siguientes comandos:
+
+> [!warning]
+>
+> En este ejemplo, la raíz web es `/var/www/html`. Si su raíz web es diferente (configurada en el paso 2.2), reemplace `/var/www/html` por su ruta real.
+
+Cree la raíz web si no existe:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copie el contenido de `/home/debian/site/` hacia la raíz web preservando la estructura y las metadatos:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternativa si `rsync` no está instalado:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Asigne la propiedad de los archivos al servicio web (`www-data` para Nginx/Apache en Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Fije los permisos de los directorios en `755` (navegable) y de los archivos en `644` (legible):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Etapa 4 - Importar la base de datos en su VPS (opcional)
@@ -124,22 +178,36 @@ Seleccione los archivos de su sitio web y la base de datos que haya descargado e
>
> Si la base de datos ya está alojada en un servicio Web Cloud Databases, no es necesario migrarla al VPS. Puede conservar la base de datos en el servicio Web Cloud Databases y configurar su VPS para que se conecte a esta base de datos ([etapa 5](#step5)).
-Si quiere importar la base de datos en su VPS, siga los pasos que se indican a continuación.
+#### Antes de comenzar
-Conéctese al VPS por SSH en la sección "Conectarse a su VPS" de nuestra guía "[Primeros pasos con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Su archivo de respaldo (`.sql`) ha sido depositado en el paso 3.2 (por ejemplo: `/home/debian/backup.sql`).
+- El **S**istema de **G**estión de **B**ase de **D**atos (**SGBD**) (MySQL / MariaDB) y su cliente de línea de comandos han sido instalados en el [paso 2.2](#step2.2).
+- La base **`db_name`**:
+ - **ya existe** si la ha creado durante el paso 2.2 (o a través de su panel de administración).
+ - **puede ser creada automáticamente** si su respaldo `.sql` contiene `CREATE DATABASE`.
+ - **de lo contrario, créela antes de la importación**:
-Una vez que se haya conectado al VPS por SSH, utilice la línea de comandos siguiente para importar la base de datos.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-En el ejemplo siguiente, utilizamos MySQL como **S**istema de **G**estión de **B**ase de **D**atos (**SGBD**). Utilice la documentación oficial del SGBD que haya instalado en el [etapa 2.2](#step2.2) para utilizar la línea de comandos adecuada para importar la base de datos en su VPS.
+ (reemplace `db_name` por el nombre deseado).
-```php
-
-```
+#### Importar la base de datos
+
+1. Conéctese al VPS mediante SSH consultando la sección "Conexión a su VPS" de nuestro guía "[Primeros pasos con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Inicie la importación utilizando el cliente del SGBD:
+
+ En el ejemplo siguiente, utilizamos MySQL como SGBD. Utilice la documentación oficial del SGBD que ha instalado durante el [paso 2.2](#step2.2) para utilizar el comando adecuado para importar la base de datos en su VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Reemplace `user_name` por su nombre de usuario MySQL (MySQL/MariaDB), y no por su login SSH.
+ - Reemplace `db_name` por el nombre de la base de datos a importar.
-Sustituya `user_name` por su nombre de usuario MySQL, `db_name` por el nombre de la base de datos que desea importar, y `root/to/file.sql` por la ruta del archivo SQL de la copia de seguridad.
+3. Introduzca la contraseña del usuario SGBD cuando se le pida y espere a que finalice la importación.
### Etapa 5 - Configurar los archivos de configuración de su sitio web
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-us.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-us.md
index 76c8415e188..2f6c51199c5 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-us.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.es-us.md
@@ -1,7 +1,7 @@
---
title: "Cómo migrar un sitio web desde un alojamiento web compartido hacia un VPS"
excerpt: "Descubra cómo migrar un sitio web de un alojamiento compartido a un VPS de OVHcloud"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objetivo
@@ -114,9 +114,63 @@ Siga nuestra [guía de uso de FileZilla](/pages/bare_metal_cloud/dedicated_serve
#### Etapa 3.2 - Transferir los archivos de su sitio web al VPS
-Una vez que se haya conectado al VPS, el árbol de archivos local aparecerá a la izquierda de la interfaz FileZilla y a la derecha de su VPS.
+Una vez conectado a su VPS, la estructura de archivos locales aparece a la izquierda de la interfaz de FileZilla, y la de su VPS a la derecha.
-Seleccione los archivos de su sitio web y la base de datos que haya descargado en el [etapa 1.2](#step1.2). Arrástrelos hasta el directorio web de su VPS, a la derecha de la interfaz. El directorio web es el lugar donde los archivos de su sitio web serán almacenados para ser accesibles en Internet. Por defecto, puede ser una carpeta denominada `/var/www/html` u otro directorio configurado durante la instalación del servidor web en el [etapa 2.2](#step2.2). Asegúrese de colocar los archivos en la carpeta configurada como raíz web para que su sitio web funcione correctamente.
+El directorio web (o raíz web) es el lugar donde se almacenarán los archivos de su sitio web para que sean accesibles en Internet. **Por defecto, puede ser un directorio llamado `/var/www/html` o otro directorio configurado durante la instalación de su servidor web en el [paso 2.2](#step2.2)**. Asegúrese de colocar sus archivos en la carpeta configurada como **raíz web** para que su sitio funcione correctamente.
+
+> [!warning]
+>
+> Si se conecta a través de SFTP con un usuario no root (ej. `debian`), no tendrá permiso para escribir directamente en `/var/www/html`.
+
+**Procedimiento simple: depositar en `/home` y luego mover con `sudo`**
+
+##### En FileZilla (SFTP)
+
+- En el lado "Sitio remoto" (panel derecho), vaya a: `/home/debian/`
+- Arrastre y suelte el archivo de su base de datos (ej. `backup.sql`) en `/home/debian/`. **No coloque esta copia de seguridad ni en la carpeta que va a copiar hacia la raíz web** (ej. `/home/debian/site/`) **ni en la raíz web** (ej. `/var/www/html`), de lo contrario podría ser descargada públicamente.
+- Cree una carpeta `site` en `/home/debian/` (haga clic derecho → `Crear un directorio`{.action}), y ábrala.
+- Seleccione todos los archivos de su sitio web (la base de datos ya no debe estar allí) y arrástrelos y suéltelos en `/home/debian/site/`. **No deposite sus volcados SQL en esta carpeta**. Manténgalos fuera de la raíz web, (ej. `/home/debian/backup.sql`.)
+
+##### En su VPS
+
+Conéctese al VPS mediante SSH consultando la sección "Conexión a su VPS" de nuestro guía "[Primeros pasos con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Ejecute los siguientes comandos:
+
+> [!warning]
+>
+> En este ejemplo, la raíz web es `/var/www/html`. Si su raíz web es diferente (configurada en el paso 2.2), reemplace `/var/www/html` por su ruta real.
+
+Cree la raíz web si no existe:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copie el contenido de `/home/debian/site/` hacia la raíz web preservando la estructura y las metadatos:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternativa si `rsync` no está instalado:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Asigne la propiedad de los archivos al servicio web (`www-data` para Nginx/Apache en Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Fije los permisos de los directorios en `755` (navegable) y de los archivos en `644` (legible):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Etapa 4 - Importar la base de datos en su VPS (opcional)
@@ -124,22 +178,36 @@ Seleccione los archivos de su sitio web y la base de datos que haya descargado e
>
> Si la base de datos ya está alojada en un servicio Web Cloud Databases, no es necesario migrarla al VPS. Puede conservar la base de datos en el servicio Web Cloud Databases y configurar su VPS para que se conecte a esta base de datos ([etapa 5](#step5)).
-Si quiere importar la base de datos en su VPS, siga los pasos que se indican a continuación.
+#### Antes de comenzar
-Conéctese al VPS por SSH en la sección "Conectarse a su VPS" de nuestra guía "[Primeros pasos con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Su archivo de respaldo (`.sql`) ha sido depositado en el paso 3.2 (por ejemplo: `/home/debian/backup.sql`).
+- El **S**istema de **G**estión de **B**ase de **D**atos (**SGBD**) (MySQL / MariaDB) y su cliente de línea de comandos han sido instalados en el [paso 2.2](#step2.2).
+- La base **`db_name`**:
+ - **ya existe** si la ha creado durante el paso 2.2 (o a través de su panel de administración).
+ - **puede ser creada automáticamente** si su respaldo `.sql` contiene `CREATE DATABASE`.
+ - **de lo contrario, créela antes de la importación**:
-Una vez que se haya conectado al VPS por SSH, utilice la línea de comandos siguiente para importar la base de datos.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-En el ejemplo siguiente, utilizamos MySQL como **S**istema de **G**estión de **B**ase de **D**atos (**SGBD**). Utilice la documentación oficial del SGBD que haya instalado en el [etapa 2.2](#step2.2) para utilizar la línea de comandos adecuada para importar la base de datos en su VPS.
+ (reemplace `db_name` por el nombre deseado).
-```php
-
-```
+#### Importar la base de datos
+
+1. Conéctese al VPS mediante SSH consultando la sección "Conexión a su VPS" de nuestro guía "[Primeros pasos con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Inicie la importación utilizando el cliente del SGBD:
+
+ En el ejemplo siguiente, utilizamos MySQL como SGBD. Utilice la documentación oficial del SGBD que ha instalado durante el [paso 2.2](#step2.2) para utilizar el comando adecuado para importar la base de datos en su VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Reemplace `user_name` por su nombre de usuario MySQL (MySQL/MariaDB), y no por su login SSH.
+ - Reemplace `db_name` por el nombre de la base de datos a importar.
-Sustituya `user_name` por su nombre de usuario MySQL, `db_name` por el nombre de la base de datos que desea importar, y `root/to/file.sql` por la ruta del archivo SQL de la copia de seguridad.
+3. Introduzca la contraseña del usuario SGBD cuando se le pida y espere a que finalice la importación.
### Etapa 5 - Configurar los archivos de configuración de su sitio web
@@ -255,4 +323,4 @@ Para más información sobre las buenas prácticas de seguridad, consulte nuestr
Para servicios especializados (posicionamiento, desarrollo, etc.), contacte con [partners de OVHcloud](/links/partner).
-Interactúe con nuestra [comunidad de usuarios](/links/community).
\ No newline at end of file
+Interactúe con nuestra [comunidad de usuarios](/links/community).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-ca.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-ca.md
index f342d36c312..e6b68f46ef8 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-ca.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-ca.md
@@ -1,12 +1,12 @@
---
title: "Comment migrer un site web depuis un hébergement Web mutualisé vers un VPS"
excerpt: "Découvrez comment migrer votre site web d'un hébergement mutualisé vers un VPS OVHcloud"
-updated: 2024-11-05
+updated: 2025-10-23
---
## Objectif
-Votre site web évolue, sa consommation de ressources devient telle que votre hébergement web ne correspond plus à vos besoins en terme de performances ou en terme de capacité à traiter des tâches plus de plus complexes. Migrer vers un VPS permet d'améliorer la rapidité et la réactivité de votre site web, d'augmenter les ressources de calcul disponibles (CPU, RAM, etc.), et d'avoir plus de contrôle sur l'environnement serveur. Ce guide se concentre sur les étapes essentielles pour migrer efficacement vers un VPS, tout en garantissant la continuité de service.
+Votre site web évolue, sa consommation de ressources devient telle que votre hébergement web ne correspond plus à vos besoins en terme de performances ou en terme de capacité à traiter des tâches de plus de plus complexes. Migrer vers un VPS permet d'améliorer la rapidité et la réactivité de votre site web, d'augmenter les ressources de calcul disponibles (CPU, RAM, etc.), et d'avoir plus de contrôle sur l'environnement serveur. Ce guide se concentre sur les étapes essentielles pour migrer efficacement vers un VPS, tout en garantissant la continuité de service.
**Découvrez comment migrer votre site web d'un hébergement mutualisé vers un VPS.**
@@ -116,7 +116,61 @@ Suivez notre [guide sur l'utilisation de FileZilla](/pages/bare_metal_cloud/dedi
Une fois connecté à votre VPS, l'arborescence des fichiers locaux apparaît à gauche de l'interface FileZilla, et celle de votre VPS à droite.
-Sélectionnez les fichiers de votre site web et la base de données que vous avez téléchargés lors de l'[étape 1.2](#step1.2). Faites-les glisser vers le répertoire web de votre VPS à droite de l'interface. Le répertoire web est l'endroit où les fichiers de votre site web seront stockés pour être accessibles sur Internet. Par défaut, il peut s'agir d'un dossier nommé `/var/www/html` ou d'un autre répertoire configuré pendant l'installation de votre serveur web lors de l'[étape 2.2](#step2.2). Assurez-vous de placer vos fichiers dans le dossier configuré comme racine web pour que votre site web fonctionne correctement.
+Le répertoire web (ou racine web) est l’endroit où les fichiers de votre site web seront stockés pour être accessibles sur Internet. **Par défaut, il peut s’agir d’un dossier nommé `/var/www/html` ou d’un autre répertoire configuré pendant l’installation de votre serveur web lors de l’[étape 2.2](#step2.2)**. Assurez-vous de placer vos fichiers dans le dossier configuré comme **racine web** pour que votre site fonctionne correctement.
+
+> [!warning]
+>
+> Si vous êtes connecté en SFTP avec un utilisateur non-root (ex. `debian`), vous n’aurez pas la permission d’écrire directement dans `/var/www/html`.
+
+**Procédure simple : déposer dans `/home` puis déplacer avec `sudo`**
+
+##### Dans FileZilla (SFTP)
+
+- Côté « Site distant » (panneau de droite), allez dans : `/home/debian/`
+- Glissez-déposez le fichier de votre base de données (ex : `backup.sql`) dans `/home/debian/`. **Ne placez pas cette sauvegarde ni dans le dossier que vous allez copier vers la racine web** (ex : `/home/debian/site/`) **ni dans la racine web** (ex : `/var/www/html`), sinon elle pourra être téléchargée publiquement.
+- Créez un dossier `site` dans `/home/debian/` (clic droit → `Créer un répertoire`{.action}), puis ouvrez-le.
+- Sélectionnez tous les fichiers de votre site web (la base de données ne doit plus s'y trouver) et glissez-déposez-les dans `/home/debian/site/`. **Ne déposez pas vos dumps SQL dans ce dossier**. Gardez-les hors de la racine web, (ex : `/home/debian/backup.sql`.)
+
+##### Sur votre VPS
+
+Connectez-vous au VPS en SSH en consultant la section « Se connecter à votre VPS » de notre guide « [Premiers pas avec un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps) ».
+
+Exécutez les commandes suivantes :
+
+> [!warning]
+>
+> Dans cet exemple, la racine web est `/var/www/html`. Si votre racine web est différente (configurée à l’étape 2.2), remplacez `/var/www/html` par votre chemin réel.
+
+Créez la racine web si elle n’existe pas :
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copiez le contenu de `/home/debian/site/` vers la racine web en préservant l’arborescence et les métadonnées :
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative si `rsync` n’est pas installé :
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Donnez la propriété des fichiers au service web (`www-data` pour Nginx/Apache sur Debian/Ubuntu) :
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Fixez les permissions des dossiers en `755` (navigable) et des fichiers en `644` (lisible) :
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Étape 4 - Importer la base de données sur votre VPS (facultatif)
@@ -124,22 +178,36 @@ Sélectionnez les fichiers de votre site web et la base de données que vous ave
>
> Si votre base de données est déjà hébergée sur un service Web Cloud Databases, il n'est pas nécessaire de la migrer vers le VPS. Vous pouvez conserver la base de données sur le service Web Cloud Databases et configurer votre VPS pour qu'il se connecte à cette base de données ([étape 5](#step5)).
-Si vous souhaitez importer la base de données sur votre VPS, suivez les étapes ci-dessous.
+#### Avant de commencer
-Connectez-vous au VPS en SSH en consultant la section « Se connecter à votre VPS » de notre guide « [Premiers pas avec un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps) ».
+- Votre fichier de sauvegarde (`.sql`) a été déposé à l’étape 3.2 (par exemple : `/home/debian/backup.sql`).
+- Le **S**ystème de **G**estion de **B**ase de **D**onnées (**SGBD**) (MySQL / MariaDB) et son client en ligne de commande ont été installés à l’[étape 2.2](#step2.2).
+- La base **`db_name`** :
+ - **existe déjà** si vous l’avez créée lors de l’étape 2.2 (ou via votre panneau d’administration).
+ - **peut être créée automatiquement** si votre sauvegarde `.sql` contient `CREATE DATABASE`.
+ - **sinon, créez-la avant l’import** :
-Une fois connecté à votre VPS via une connexion en SSH, utilisez la ligne de commande ci-dessous pour réaliser l'importation de la base de données.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-Dans l'exemple ci-dessous, nous utilisons MySQL comme **S**ystème de **G**estion de **B**ase de **D**onnées (**SGBD**). Servez-vous de la documentation officielle du SGBD que vous avez installé lors de l'[étape 2.2](#step2.2) afin d'utiliser la ligne de commande adéquate pour importer la base de données sur votre VPS.
+ (remplacez `db_name` par le nom souhaité).
-```php
-
-```
+#### Importer la base de données
+
+1. Connectez-vous au VPS en SSH en consultant la section « Se connecter à votre VPS » de notre guide « [Premiers pas avec un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps) ».
+2. Lancez l’import en utilisant le client du SGBD :
+
+ Dans l'exemple ci-dessous, nous utilisons MySQL comme SGBD. Servez-vous de la documentation officielle du SGBD que vous avez installé lors de l'[étape 2.2](#step2.2) afin d'utiliser la ligne de commande adéquate pour importer la base de données sur votre VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Remplacez `user_name` par votre nom d'utilisateur MySQL (MySQL/MariaDB), et pas votre login SSH.
+ - Remplacez `db_name` par le nom de la base de données à importer.
-Remplacez `user_name` par votre nom d'utilisateur MySQL, `db_name` par le nom de la base de données à importer, et `root/to/file.sql` par le chemin du fichier SQL sauvegardé.
+3. Saisissez le mot de passe de l’utilisateur SGBD lorsqu’il est demandé et attendez la fin de l’import.
### Étape 5 - Paramétrer les fichiers de configuration de votre site web
@@ -255,4 +323,4 @@ Pour une liste complète des bonnes pratiques de sécurité, consultez notre gui
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).
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-fr.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-fr.md
index f342d36c312..9ff64cb4da5 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-fr.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.fr-fr.md
@@ -1,12 +1,12 @@
---
title: "Comment migrer un site web depuis un hébergement Web mutualisé vers un VPS"
excerpt: "Découvrez comment migrer votre site web d'un hébergement mutualisé vers un VPS OVHcloud"
-updated: 2024-11-05
+updated: 2025-10-23
---
## Objectif
-Votre site web évolue, sa consommation de ressources devient telle que votre hébergement web ne correspond plus à vos besoins en terme de performances ou en terme de capacité à traiter des tâches plus de plus complexes. Migrer vers un VPS permet d'améliorer la rapidité et la réactivité de votre site web, d'augmenter les ressources de calcul disponibles (CPU, RAM, etc.), et d'avoir plus de contrôle sur l'environnement serveur. Ce guide se concentre sur les étapes essentielles pour migrer efficacement vers un VPS, tout en garantissant la continuité de service.
+Votre site web évolue, sa consommation de ressources devient telle que votre hébergement web ne correspond plus à vos besoins en terme de performances ou en terme de capacité à traiter des tâches de plus de plus complexes. Migrer vers un VPS permet d'améliorer la rapidité et la réactivité de votre site web, d'augmenter les ressources de calcul disponibles (CPU, RAM, etc.), et d'avoir plus de contrôle sur l'environnement serveur. Ce guide se concentre sur les étapes essentielles pour migrer efficacement vers un VPS, tout en garantissant la continuité de service.
**Découvrez comment migrer votre site web d'un hébergement mutualisé vers un VPS.**
@@ -116,7 +116,61 @@ Suivez notre [guide sur l'utilisation de FileZilla](/pages/bare_metal_cloud/dedi
Une fois connecté à votre VPS, l'arborescence des fichiers locaux apparaît à gauche de l'interface FileZilla, et celle de votre VPS à droite.
-Sélectionnez les fichiers de votre site web et la base de données que vous avez téléchargés lors de l'[étape 1.2](#step1.2). Faites-les glisser vers le répertoire web de votre VPS à droite de l'interface. Le répertoire web est l'endroit où les fichiers de votre site web seront stockés pour être accessibles sur Internet. Par défaut, il peut s'agir d'un dossier nommé `/var/www/html` ou d'un autre répertoire configuré pendant l'installation de votre serveur web lors de l'[étape 2.2](#step2.2). Assurez-vous de placer vos fichiers dans le dossier configuré comme racine web pour que votre site web fonctionne correctement.
+Le répertoire web (ou racine web) est l’endroit où les fichiers de votre site web seront stockés pour être accessibles sur Internet. **Par défaut, il peut s’agir d’un dossier nommé `/var/www/html` ou d’un autre répertoire configuré pendant l’installation de votre serveur web lors de l’[étape 2.2](#step2.2)**. Assurez-vous de placer vos fichiers dans le dossier configuré comme **racine web** pour que votre site fonctionne correctement.
+
+> [!warning]
+>
+> Si vous êtes connecté en SFTP avec un utilisateur non-root (ex. `debian`), vous n’aurez pas la permission d’écrire directement dans `/var/www/html`.
+
+**Procédure simple : déposer dans `/home` puis déplacer avec `sudo`**
+
+##### Dans FileZilla (SFTP)
+
+- Côté « Site distant » (panneau de droite), allez dans : `/home/debian/`
+- Glissez-déposez le fichier de votre base de données (ex : `backup.sql`) dans `/home/debian/`. **Ne placez pas cette sauvegarde ni dans le dossier que vous allez copier vers la racine web** (ex : `/home/debian/site/`) **ni dans la racine web** (ex : `/var/www/html`), sinon elle pourra être téléchargée publiquement.
+- Créez un dossier `site` dans `/home/debian/` (clic droit → `Créer un répertoire`{.action}), puis ouvrez-le.
+- Sélectionnez tous les fichiers de votre site web (la base de données ne doit plus s'y trouver) et glissez-déposez-les dans `/home/debian/site/`. **Ne déposez pas vos dumps SQL dans ce dossier**. Gardez-les hors de la racine web, (ex : `/home/debian/backup.sql`.)
+
+##### Sur votre VPS
+
+Connectez-vous au VPS en SSH en consultant la section « Se connecter à votre VPS » de notre guide « [Premiers pas avec un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps) ».
+
+Exécutez les commandes suivantes :
+
+> [!warning]
+>
+> Dans cet exemple, la racine web est `/var/www/html`. Si votre racine web est différente (configurée à l’étape 2.2), remplacez `/var/www/html` par votre chemin réel.
+
+Créez la racine web si elle n’existe pas :
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copiez le contenu de `/home/debian/site/` vers la racine web en préservant l’arborescence et les métadonnées :
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternative si `rsync` n’est pas installé :
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Donnez la propriété des fichiers au service web (`www-data` pour Nginx/Apache sur Debian/Ubuntu) :
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Fixez les permissions des dossiers en `755` (navigable) et des fichiers en `644` (lisible) :
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Étape 4 - Importer la base de données sur votre VPS (facultatif)
@@ -124,22 +178,36 @@ Sélectionnez les fichiers de votre site web et la base de données que vous ave
>
> Si votre base de données est déjà hébergée sur un service Web Cloud Databases, il n'est pas nécessaire de la migrer vers le VPS. Vous pouvez conserver la base de données sur le service Web Cloud Databases et configurer votre VPS pour qu'il se connecte à cette base de données ([étape 5](#step5)).
-Si vous souhaitez importer la base de données sur votre VPS, suivez les étapes ci-dessous.
+#### Avant de commencer
-Connectez-vous au VPS en SSH en consultant la section « Se connecter à votre VPS » de notre guide « [Premiers pas avec un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps) ».
+- Votre fichier de sauvegarde (`.sql`) a été déposé à l’étape 3.2 (par exemple : `/home/debian/backup.sql`).
+- Le **S**ystème de **G**estion de **B**ase de **D**onnées (**SGBD**) (MySQL / MariaDB) et son client en ligne de commande ont été installés à l’[étape 2.2](#step2.2).
+- La base **`db_name`** :
+ - **existe déjà** si vous l’avez créée lors de l’étape 2.2 (ou via votre panneau d’administration).
+ - **peut être créée automatiquement** si votre sauvegarde `.sql` contient `CREATE DATABASE`.
+ - **sinon, créez-la avant l’import** :
-Une fois connecté à votre VPS via une connexion en SSH, utilisez la ligne de commande ci-dessous pour réaliser l'importation de la base de données.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-Dans l'exemple ci-dessous, nous utilisons MySQL comme **S**ystème de **G**estion de **B**ase de **D**onnées (**SGBD**). Servez-vous de la documentation officielle du SGBD que vous avez installé lors de l'[étape 2.2](#step2.2) afin d'utiliser la ligne de commande adéquate pour importer la base de données sur votre VPS.
+ (remplacez `db_name` par le nom souhaité).
-```php
-
-```
+#### Importer la base de données
+
+1. Connectez-vous au VPS en SSH en consultant la section « Se connecter à votre VPS » de notre guide « [Premiers pas avec un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps) ».
+2. Lancez l’import en utilisant le client du SGBD :
+
+ Dans l'exemple ci-dessous, nous utilisons MySQL comme SGBD. Servez-vous de la documentation officielle du SGBD que vous avez installé lors de l'[étape 2.2](#step2.2) afin d'utiliser la ligne de commande adéquate pour importer la base de données sur votre VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Remplacez `user_name` par votre nom d'utilisateur MySQL (MySQL/MariaDB), et pas votre login SSH.
+ - Remplacez `db_name` par le nom de la base de données à importer.
-Remplacez `user_name` par votre nom d'utilisateur MySQL, `db_name` par le nom de la base de données à importer, et `root/to/file.sql` par le chemin du fichier SQL sauvegardé.
+3. Saisissez le mot de passe de l’utilisateur SGBD lorsqu’il est demandé et attendez la fin de l’import.
### Étape 5 - Paramétrer les fichiers de configuration de votre site web
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.it-it.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.it-it.md
index dce8f074e4d..61fdf7661e0 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.it-it.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.it-it.md
@@ -1,7 +1,7 @@
---
title: "Come migrare un sito Web da un hosting Web condiviso a un VPS"
excerpt: "Questa guida ti mostra come migrare un sito Web da un hosting condiviso a un VPS OVHcloud"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Obiettivo
@@ -112,11 +112,65 @@ Consulta la nostra [guida sull’utilizzo di FileZilla](/pages/bare_metal_cloud/
- **Username** e **Password**: le credenziali dell'account utente SSH sul VPS.
- **Porta**: utilizza la porta 22 (porta predefinita per SFTP).
-#### Step 3.2 - Trasferisci i file del tuo sito Web sul VPS
+#### Step 3.2 - Trasferimento dei file del vostro sito web verso il VPS
-Una volta effettuato l’accesso al tuo VPS, visualizzi la gerarchia dei file locali a sinistra dell’interfaccia FileZilla e la gerarchia del tuo VPS a destra.
+Una volta connessi al VPS, l’albero delle directory locali apparirà a sinistra dell’interfaccia FileZilla, e quelle del VPS a destra.
-Seleziona i file del sito Web e il database scaricati nello [step 1.2](#step1.2). Trascinali nella cartella Web del tuo VPS a destra dell’interfaccia. La directory Web è il luogo in cui i file del sito Web saranno archiviati per essere accessibili su Internet. Per impostazione predefinita, può trattarsi di una cartella denominata `/var/www/html` o di un'altra directory configurata durante l'installazione del server Web nello [step 2.2](#step2.2). Per il corretto funzionamento del sito Web, assicurati di inserire i file nella cartella configurata come directory principale.
+La directory web (o radice web) è il luogo in cui i file del vostro sito web verranno memorizzati per essere accessibili su Internet. **Per impostazione predefinita, potrebbe trattarsi di una directory chiamata `/var/www/html` o di un’altra directory configurata durante l’installazione del vostro server web nell’[passo 2.2](#step2.2)**. Assicuratevi di posizionare i vostri file nella directory configurata come **radice web** per garantire il corretto funzionamento del vostro sito.
+
+> [!warning]
+>
+> Se siete connessi in SFTP con un utente non-root (es. `debian`), non avrete il permesso di scrivere direttamente in `/var/www/html`.
+
+**Procedura semplice: depositare in `/home` e spostare con `sudo`**
+
+##### In FileZilla (SFTP)
+
+- Sul lato "Sito remoto" (pannello a destra), andate in: `/home/debian/`
+- Trascinate e rilasciate il file del vostro database (es. `backup.sql`) in `/home/debian/`. **Non posizionate questa copia né nella directory che copierete verso la radice web** (es. `/home/debian/site/`) **né nella radice web** (es. `/var/www/html`), altrimenti potrebbe essere scaricata pubblicamente.
+- Create una directory `site` in `/home/debian/` (clic destro → `Crea una directory`{.action}), quindi apritela.
+- Selezionate tutti i file del vostro sito web (il database non deve trovarsi più qui) e trascinateli in `/home/debian/site/`. **Non depositate i vostri dump SQL in questa directory**. Manteneteli fuori dalla radice web, (es. `/home/debian/backup.sql`.)
+
+##### Sul VPS
+
+Connettetevi al VPS tramite SSH consultando la sezione "Connessione al VPS" della guida "[Primi passi con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Eseguite i seguenti comandi:
+
+> [!warning]
+>
+> In questo esempio, la radice web è `/var/www/html`. Se la vostra radice web è diversa (configurata al passo 2.2), sostituite `/var/www/html` con il vostro percorso reale.
+
+Creare la radice web se non esiste:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copia il contenuto di `/home/debian/site/` verso la radice web mantenendo la struttura e le metadati:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternativa se `rsync` non è installato:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Assegna la proprietà dei file al servizio web (`www-data` per Nginx/Apache su Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Imposta le autorizzazioni delle directory a `755` (navigabile) e dei file a `644` (leggibile):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Step 4 - Importa il database sul tuo VPS (facoltativo)
@@ -124,22 +178,36 @@ Seleziona i file del sito Web e il database scaricati nello [step 1.2](#step1.2)
>
> Se il database è già ospitato su un servizio Web Cloud Databases, non è necessario migrarlo verso il VPS. È possibile conservare il database sul servizio Web Cloud Databases e configurare il VPS per la connessione a questo database ([step 5](#step5)).
-Per importare il database sul VPS, segui gli step indicati qui sotto.
+#### Prima di iniziare
-Accedi al tuo VPS in SSH nella sezione "Accedi al tuo VPS" della nostra guida "[Iniziare a utilizzare un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Il vostro file di backup (`.sql`) è stato depositato al passo 3.2 (es. `/home/debian/backup.sql`).
+- Il **S**istema di **G**estione di **B**ase di **D**ati (**SGBD**) (MySQL / MariaDB) e il relativo client in riga di comando sono stati installati al [passo 2.2](#step2.2).
+- Il database **`db_name`**:
+ - **esiste già** se lo avete creato durante il passo 2.2 (o tramite il vostro pannello di amministrazione).
+ - **può essere creato automaticamente** se il vostro backup `.sql` contiene `CREATE DATABASE`.
+ - **altrimenti, createvelo prima dell'importazione**:
-Una volta effettuato l’accesso in SSH al VPS, esegui questo comando per importare il database.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-Nell'esempio seguente, utilizziamo MySQL come **S**istema di **G**estione di **B**ase di **D**ati (**SGBD**). Per importare il database sul VPS, utilizza la documentazione ufficiale del DBMS installata nello [step 2.2](#step2.2).
+ (sostituite `db_name` con il nome desiderato).
-```php
-
-```
+#### Importazione del database
+
+1. Connettetevi al VPS tramite SSH consultando la sezione "Connessione al VPS" della guida "[Primi passi con un VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Avviate l'importazione utilizzando il client del SGBD:
+
+ Nell'esempio seguente, utilizziamo MySQL come SGBD. Fate riferimento alla documentazione ufficiale del SGBD che avete installato durante il [passo 2.2](#step2.2) per utilizzare il comando corretto per importare il database sul VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Sostituite `user_name` con il vostro nome utente MySQL (MySQL/MariaDB), e non con il vostro login SSH.
+ - Sostituite `db_name` con il nome del database da importare.
-Sostituisci `user_name` con il tuo nome utente MySQL, `db_name` con il nome del database da importare e `root/to/file.sql` con il percorso del file SQL salvato.
+3. Inserite la password dell'utente SGBD quando richiesto e attendete la fine dell'importazione.
### Step 5 - Configurare i file di configurazione del sito Web
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pl-pl.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pl-pl.md
index 31c7a1c6be8..04a198a1877 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pl-pl.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pl-pl.md
@@ -1,7 +1,7 @@
---
title: "Jak migrować stronę WWW z hostingu na serwer VPS"
excerpt: "Dowiedz się, jak przenieść Twoją stronę WWW z hostingu na serwer VPS OVHcloud"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Wprowadzenie
@@ -112,11 +112,65 @@ Zapoznaj się z [przewodnikiem](/pages/bare_metal_cloud/dedicated_servers/commen
- **Username** i **Password**: Dane dostępowe do konta SSH na serwerze VPS.
- **Port** : użyj portu 22 (domyślny port SFTP).
-#### Etap 3.2 - Przeniesienie plików z Twojej strony WWW na serwer VPS
+#### Etap 3.2 - Prześlij pliki witryny do VPS
-Po zalogowaniu się do VPS, po lewej stronie ekranu FileZilla zostanie wyświetlone drzewo plików lokalnych, a po prawej stronie drzewo plików Twojego serwera VPS.
+Po zalogowaniu się do swojego VPS drzewo struktury plików lokalnych będzie widoczne po lewej stronie interfejsu FileZilla, a drzewo struktury plików VPS po prawej stronie.
-Wybierz pliki strony WWW i bazę danych, które pobrałeś w trakcie [etap 1.2](#step1.2). Przeciągnij je do katalogu www serwera VPS po prawej stronie interfejsu. Katalog WWW to miejsce, w którym przechowywane będą pliki Twojej strony WWW, umożliwiające do niej dostęp przez Internet. Domyślnie może to być folder o nazwie`/var/www/html` lub inny katalog skonfigurowany podczas instalacji serwera www podczas [etap 2.2](#step2.2). Upewnij się, że umieszczasz pliki w folderze skonfigurowanym jako katalog główny sieci Web, aby Twoja witryna działała poprawnie.
+Katalog sieci Web (lub katalog główny) to miejsce, w którym będą przechowywane pliki witryny, aby były dostępne w Internecie. **Domyślnie może to być folder o nazwie `/var/www/html` lub inny katalog skonfigurowany podczas instalacji serwera sieci Web na [etapie 2.2](#step2.2)**. Upewnij się, że pliki są umieszczone w katalogu skonfigurowanym jako **katalog główny**, aby witryna działała poprawnie.
+
+> [!warning]
+>
+> Jeśli jesteś połączony przez SFTP z użytkownikiem niebędącym rootem (np. `debian`), nie będziesz miał uprawnień do zapisu bezpośrednio do `/var/www/html`.
+
+**Procedura: wstawienie do `/home`, a następnie przeniesienie za pomocą `sudo`**
+
+##### W FileZilla (SFTP)
+
+- Na stronie "Remote Site" (prawa część), przejdź do: `/home/debian/`
+- Przeciągnij i upuść swój plik bazy danych (np. `backup.sql`) do `/home/debian/`. **Nie umieszczaj tej kopii zapasowej w folderze, który skopiujesz do katalogu głównego** (np. `/home/debian/site/`) **ani w katalogu głównym** (np. `/var/www/html`), ponieważ może być ona publicznie pobieralna.
+- Utwórz folder `site` w `/home/debian/` (kliknij prawym przyciskiem myszy → `Utwórz katalog`{.action}), a następnie otwórz go.
+- Wybierz wszystkie pliki witryny (plik bazy danych już tam nie powinien być) i przeciągnij je do `/home/debian/site/`. **Nie umieszczaj swoich zrzutów SQL w tym folderze**. Zachowaj je poza katalogiem głównym (np. `/home/debian/backup.sql`).
+
+##### Na swoim VPS
+
+Połącz się z VPS przez SSH, korzystając z sekcji "Połącz się z VPS" naszego przewodnika "[Rozpoczęcie pracy z VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Uruchom poniższe polecenia:
+
+> [!warning]
+>
+> W tym przykładzie katalog główny to `/var/www/html`. Jeśli Twój katalog główny jest inny (skonfigurowany w etapie 2.2), zastąp `/var/www/html` swoim rzeczywistym ścieżką.
+
+Utwórz katalog główny, jeśli nie istnieje:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Skopiuj zawartość `/home/debian/site/` do katalogu głównego, zachowując strukturę katalogów i metadane:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternatywa, jeśli `rsync` nie jest zainstalowany:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Przypisz właściciela plików do usługi sieci Web (`www-data` dla Nginx/Apache na Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Ustaw uprawnienia katalogów na `755` (przezprawne) i uprawnienia plików na `644` (czytelne):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Etap 4 - Import bazy danych na serwer VPS (opcjonalnie)
@@ -124,22 +178,36 @@ Wybierz pliki strony WWW i bazę danych, które pobrałeś w trakcie [etap 1.2](
>
> Jeśli baza danych jest już hostowana w ramach usługi Web Cloud Databases, nie musisz migrować jej na VPS. Możesz zachować bazę danych w usłudze Web Cloud Databases i skonfigurować serwer VPS, aby łączył się z tą bazą danych ([etap 5](#step5)).
-Jeśli chcesz importować bazę danych na Twój serwer VPS, wykonaj poniższe kroki.
+#### Przed rozpoczęciem
-Zaloguj się do serwera VPS przez SSH i zapoznaj się z sekcją "Logowanie do serwera VPS" w naszym przewodniku "[Pierwsze kroki z serwerem VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- Twój plik kopii zapasowej (`.sql`) został umieszczony w etapu 3.2 (np. `/home/debian/backup.sql`).
+- **D**ata**B**ase **M**anagement **S**ystem (**DBMS**) (MySQL / MariaDB) oraz jego konsola zostały zainstalowane na [etap 2.2](#step2.2).
+- Baza danych **`db_name`**:
+ - **już istnieje**, jeśli została utworzona podczas etapu 2.2 (lub przez panel administracyjny).
+ - **może zostać utworzona automatycznie**, jeśli plik kopii zapasowej `.sql` zawiera `CREATE DATABASE`.
+ - **w przeciwnym razie utwórz ją przed zaimportowaniem**:
-Po połączeniu się z Twoim serwerem VPS za pomocą SSH skorzystaj z poniższego wiersza poleceń, aby wykonać import bazy danych.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-W poniższym przykładzie używamy MySQL jako **D**ata**B**ase **M**anagement **S**ystem (**DBMS**). Skorzystaj z oficjalnej dokumentacji systemu zarządzania bazą danych, który zainstalowałeś podczas [etap 2.2](#step2.2), aby zaimportować bazę danych na serwer VPS za pomocą wiersza poleceń.
+ (zastąp `db_name` wybraną przez Ciebie nazwą).
-```php
-
-```
+#### Zaimportuj bazę danych
+
+1. Połącz się z VPS przez SSH, korzystając z sekcji "Połącz się z VPS" naszego przewodnika "[Rozpoczęcie pracy z VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Uruchom import za pomocą klienta DBMS:
+
+ W poniższym przykładzie używamy MySQL jako DBMS. Skorzystaj z oficjalnej dokumentacji DBMS, którego zainstalowałeś w [etap 2.2](#step2.2), aby użyć odpowiedniego polecenia do zaimportowania bazy danych na VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Zastąp `user_name` swoją nazwą użytkownika MySQL (MySQL/MariaDB), nie swoją nazwą logowania SSH.
+ - Zastąp `db_name` nazwą bazy danych do zaimportowania.
-Zmień `user_name` na nazwę użytkownika MySQL, `db_name` na nazwę bazy danych do zaimportowania, oraz `root/to/file.sql` na ścieżkę do zapisanego pliku SQL.
+3. Wprowadź hasło użytkownika DBMS, gdy zostanie wyświetlone, i poczekaj, aż import się zakończy.
### Etap 5 - Ustaw pliki konfiguracyjne Twojej strony WWW
diff --git a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pt-pt.md b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pt-pt.md
index 4354a939309..4db2cae75f2 100644
--- a/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pt-pt.md
+++ b/pages/web_cloud/web_hosting/migrate_website_to_vps/guide.pt-pt.md
@@ -1,7 +1,7 @@
---
title: "Como migrar um website a partir de um alojamento web partilhado para um VPS"
excerpt: "Saiba como migrar o seu website de um alojamento partilhado para um VPS OVHcloud"
-updated: 2024-11-06
+updated: 2025-10-23
---
## Objetivo
@@ -112,11 +112,65 @@ Siga o nosso [guia de utilização do FileZilla](/pages/bare_metal_cloud/dedicat
- **Username** e **Password**: As credenciais da sua conta de utilizador SSH na VPS.
- **Porta** : utilize a porta 22 (porta predefinida para SFTP).
-#### Etapa 3.2 - Transferir os ficheiros do seu website para o VPS
+#### Etapa 3.2 - Transferir os ficheiros do seu site web para o VPS
-Depois de aceder ao VPS, a árvore de ficheiros locais aparece à esquerda da interface FileZilla e a árvore de ficheiros do VPS à direita.
+Uma vez conectado ao seu VPS, a estrutura de ficheiros local aparece à esquerda da interface do FileZilla, e a do seu VPS à direita.
-Selecione os ficheiros do seu website e a base de dados que descarregou durante a [etapa 1.2](#step1.2). Arraste-os para o diretório web do seu VPS à direita da interface. O diretório web é o local onde os ficheiros do seu website serão armazenados para poderem ser acedidos na Internet. Por predefinição, pode ser uma pasta chamada `/var/www/html` ou outra pasta configurada durante a instalação do servidor web no [etapa 2.2](#step2.2). Certifique-se de colocar os seus ficheiros na pasta configurada como raiz web para que o seu website funcione corretamente.
+O diretório web (ou raiz web) é o local onde os ficheiros do seu site web serão armazenados para serem acessíveis na Internet. **Por defeito, pode tratar-se de uma pasta denominada `/var/www/html` ou de outro diretório configurado durante a instalação do seu servidor web na [etapa 2.2](#step2.2)**. Certifique-se de colocar os seus ficheiros na pasta configurada como **raiz web** para que o seu site funcione corretamente.
+
+> [!warning]
+>
+> Se estiver conectado em SFTP com um utilizador não-root (ex. `debian`), não terá permissão para escrever diretamente em `/var/www/html`.
+
+**Procedimento simples: colocar em `/home` e depois mover com `sudo`**
+
+##### No FileZilla (SFTP)
+
+- No lado "Site remoto" (painel direito), vá para: `/home/debian/`
+- Arraste e solte o ficheiro da sua base de dados (ex: `backup.sql`) em `/home/debian/`. **Não coloque esta cópia de segurança nem no diretório que vai copiar para a raiz web** (ex: `/home/debian/site/`) **nem na raiz web** (ex: `/var/www/html`), senão poderá ser descarregada publicamente.
+- Crie uma pasta `site` em `/home/debian/` (clicar com o botão direito → `Criar um diretório`{.action}), depois abra-a.
+- Selecione todos os ficheiros do seu site web (a base de dados já não deve estar aqui) e arraste-os para `/home/debian/site/`. **Não coloque os seus dumps SQL neste diretório**. Mantenha-os fora da raiz web, (ex: `/home/debian/backup.sql`.)
+
+##### No seu VPS
+
+Conecte-se ao VPS em SSH consultando a secção "Conectar-se ao seu VPS" do nosso guia "[Primeiros passos com um VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+
+Execute os seguintes comandos:
+
+> [!warning]
+>
+> Neste exemplo, a raiz web é `/var/www/html`. Se a sua raiz web for diferente (configurada na etapa 2.2), substitua `/var/www/html` pelo caminho real.
+
+Crie a raiz web se ela não existir:
+
+```bash
+sudo mkdir -p /var/www/html
+```
+
+Copie o conteúdo de `/home/debian/site/` para a raiz web mantendo a estrutura e as metadados:
+
+```bash
+sudo rsync -a /home/debian/site/ /var/www/html/
+```
+
+Alternativa se `rsync` não estiver instalado:
+
+```bash
+sudo cp -a /home/debian/site/. /var/www/html/
+```
+
+Dê a propriedade dos ficheiros ao serviço web (`www-data` para Nginx/Apache em Debian/Ubuntu):
+
+```bash
+sudo chown -R www-data:www-data /var/www/html
+```
+
+Defina as permissões dos diretórios em `755` (navegável) e dos ficheiros em `644` (lê-se):
+
+```bash
+sudo find /var/www/html -type d -exec chmod 755 {} \;
+sudo find /var/www/html -type f -exec chmod 644 {} \;
+```
### Etapa 4 - Importar a base de dados para o seu VPS (facultativo)
@@ -124,22 +178,36 @@ Selecione os ficheiros do seu website e a base de dados que descarregou durante
>
> Se a base de dados já estiver alojada num serviço Web Cloud Databases, não é necessário migrá-la para o VPS. Pode conservar a base de dados no serviço Web Cloud Databases e configurar o seu VPS para aceder à base de dados ([etapa 5](#step5)).
-Se pretender importar a base de dados para o seu VPS, siga os passos abaixo.
+#### Antes de começar
-Aceda ao VPS em SSH. Consulte a secção "Ligar-se ao VPS" do guia "[Primeiros passos com um VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+- O seu ficheiro de backup (`.sql`) foi colocado na etapa 3.2 (por exemplo: `/home/debian/backup.sql`).
+- O **S**istema de **G**estão de **B**ase de **D**ados (**SGBD**) (MySQL / MariaDB) e o seu cliente de linha de comandos foram instalados na [etapa 2.2](#step2.2).
+- A base **`db_name`**:
+ - **já existe** se a criou durante a etapa 2.2 (ou através do seu painel de administração).
+ - **pode ser criada automaticamente** se o seu backup `.sql` contém `CREATE DATABASE`.
+ - **senão, crie-a antes da importação**:
-Quando estiver conectado ao VPS por SSH, utilize a linha de comandos abaixo para realizar a importação da base de dados.
+ ```bash
+ sudo mysql -e "CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
+ ```
-No exemplo abaixo, utilizamos MySQL como **S**istema de **G**estão de **B**ase de dados **D**ados (**SGBD**). Utilize a documentação oficial do SGBD que instalou durante a [etapa 2.2](#step2.2) para utilizar a linha de comandos adequada para importar a base de dados para o seu VPS.
+ (substitua `db_name` pelo nome desejado).
-```php
-
-```
+#### Importar a base de dados
+
+1. Conecte-se ao VPS em SSH consultando a secção "Conectar-se ao seu VPS" do nosso guia "[Primeiros passos com um VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)".
+2. Inicie a importação utilizando o cliente do SGBD:
+
+ No exemplo abaixo, utilizamos o MySQL como SGBD. Utilize a documentação oficial do SGBD que instalou durante a [etapa 2.2](#step2.2) para utilizar o comando adequado para importar a base de dados no seu VPS.
+
+ ```bash
+ mysql -u user_name -p db_name < /home/debian/backup.sql
+ ```
+
+ - Substitua `user_name` pelo seu nome de utilizador MySQL (MySQL/MariaDB), e não pelo seu login SSH.
+ - Substitua `db_name` pelo nome da base de dados a importar.
-Substitua `user_name` pelo seu nome de utilizador MySQL, `db_name` pelo nome da base de dados a importar, e `root/to/file.sql` pelo caminho do ficheiro SQL guardado.
+3. Introduza a palavra-passe do utilizador SGBD quando solicitada e aguarde o fim da importação.
### Etapa 5 - Configurar os ficheiros de configuração do seu website