[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"doc-en-test-copy-website-plesk":3},{"path":4,"slug":5,"title":6,"description":7,"category":8,"subcategory":9,"icon":10,"date":11,"author":12,"order":13,"image":14,"tags":15,"keywords":21,"docGroup":28,"docGroupIcon":28,"link_fr":29,"bodyHtml":30},"\u002Fdocs\u002Fen\u002Fcloud\u002Fhebergement-web\u002Ftest-copy-website-plesk","test-copy-website-plesk","How to Create a Test Copy of Your Website on Plesk","Create a test copy of your website on a subdomain with Plesk Website Copying, duplicate the database and protect the copy before your changes.","cloud","hebergement-web","tabler:file-text","2026-11-02","Winheberg",157,"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Ftest-copy-website-plesk.webp",[16,17,18,19,20],"Plesk","Staging","Copy","Subdomain","Web Hosting",[22,23,24,25,26,27],"website copy","plesk staging","test website","website copying","staging","clone a website","","\u002Fdocs\u002Fhebergement-web\u002Fcopie-test-site-plesk","\u003Ch2>Context\u003C\u002Fh2>\n\u003Cp>Switching theme, updating a major extension or redesigning a page directly on the live website means taking the risk that your visitors land on a broken website. The right method is to work on a test copy, also called staging, then to carry the changes over once they are approved.\u003C\u002Fp>\n\u003Cp>Your \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fcloud\u002Fweb-hosting\">Winheberg web hosting\u003C\u002Fa> lets you create this copy on a subdomain, for instance \u003Ccode>test.example.com\u003C\u002Fcode>, with the Plesk \u003Cstrong>Copie du site Web\u003C\u002Fstrong> (\u003Cem>Website Copying\u003C\u002Fem>) tool.\u003C\u002Fp>\n\u003Cp>This guide covers creating the subdomain, copying the files, copying the database, setting up the copy and protecting it.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-note\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>The Winheberg Plesk panel is displayed in French. Menu, field and button names are quoted below exactly as they appear on screen, followed by their English meaning.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cdiv class=\"markdown-alert markdown-alert-tip\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 16v-4\"\u002F>\u003Cpath d=\"M12 8h.01\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>For a WordPress website, WP Toolkit does all of this in one click, database included. Follow our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fmanage-wordpress-wp-toolkit-plesk\">How to Manage Your WordPress Website with WP Toolkit on Plesk\u003C\u002Fa> instead.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>Prerequisites\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>A Winheberg web hosting plan with access to the Plesk panel\u003C\u002Fli>\n\u003Cli>A plan that allows at least one more subdomain\u003C\u002Fli>\n\u003Cli>The name of the configuration file of your website, the one that holds the database access\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>1. Create the test subdomain\u003C\u002Fh2>\n\u003Cp>In \u003Cstrong>Sites Web &amp; Domaines\u003C\u002Fstrong> (\u003Cem>Websites &amp; Domains\u003C\u002Fem>), click \u003Cstrong>Ajouter un sous-domaine\u003C\u002Fstrong> (\u003Cem>Add Subdomain\u003C\u002Fem>). Enter \u003Ccode>test\u003C\u002Fcode> in \u003Cstrong>Nom du sous-domaine\u003C\u002Fstrong> (\u003Cem>Subdomain name\u003C\u002Fem>), choose your domain on the right, then keep the suggested \u003Cstrong>Racine du document\u003C\u002Fstrong> (\u003Cem>Document root\u003C\u002Fem>). Confirm with \u003Cstrong>OK\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Ftest-copy-website-plesk-1793621338620-d485cbdfbb567e747162aad7.webp\" alt=\"Add Subdomain form in Plesk\" width=\"790\" \u002F>\n\n\u003Ch2>2. Copy the website files\u003C\u002Fh2>\n\u003Cp>Open the \u003Cstrong>Tableau de bord\u003C\u002Fstrong> (\u003Cem>Dashboard\u003C\u002Fem>) of your main website. In the \u003Cstrong>Fichiers et bases de données\u003C\u002Fstrong> (\u003Cem>Files &amp; Databases\u003C\u002Fem>) section, click \u003Cstrong>Copie du site Web\u003C\u002Fstrong> (\u003Cem>Website Copying\u003C\u002Fem>).\u003C\u002Fp>\n\u003Cp>In \u003Cstrong>Destination de la copie\u003C\u002Fstrong> (\u003Cem>Copy destination\u003C\u002Fem>), keep \u003Cstrong>Site Web dans Plesk\u003C\u002Fstrong> (\u003Cem>Website in Plesk\u003C\u002Fem>), choose your test subdomain in \u003Cstrong>Nom du site\u003C\u002Fstrong> (\u003Cem>Site name\u003C\u002Fem>), then tick \u003Cstrong>Supprimer tous les fichiers existants\u003C\u002Fstrong> (\u003Cem>Delete all existing files\u003C\u002Fem>), which empties the subdomain before the copy. Click \u003Cstrong>OK\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Ftest-copy-website-plesk-1793621339048-0c8ae86aa59d8bcb6b38794d.webp\" alt=\"Website Copying form to a subdomain in Plesk\" width=\"795\" \u002F>\n\n\u003Cdiv class=\"markdown-alert markdown-alert-warning\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Cpath d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"\u002F>\u003Cline x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\u002F>\u003Cline x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Check the \u003Cstrong>Nom du site\u003C\u002Fstrong> twice before confirming. With \u003Cstrong>Supprimer tous les fichiers existants\u003C\u002Fstrong>, the chosen website is emptied before it receives the copy.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>3. Copy the database\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Copie du site Web\u003C\u002Fstrong> only copies files. If your website uses a database, it must be duplicated separately.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Open \u003Cstrong>Bases de données\u003C\u002Fstrong> (\u003Cem>Databases\u003C\u002Fem>) and click \u003Cstrong>Ajouter une base de données\u003C\u002Fstrong> (\u003Cem>Add Database\u003C\u002Fem>) to create the database of the copy, linked to the test subdomain\u003C\u002Fli>\n\u003Cli>Export the database of the live website, then import that file into the new database\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Both operations are detailed in our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fmanage-database-phpmyadmin-plesk\">How to Manage Your Database with phpMyAdmin on Plesk\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2>4. Link the copy to its own database\u003C\u002Fh2>\n\u003Cp>In the test subdomain, open the configuration file with the \u003Cstrong>Fichiers\u003C\u002Fstrong> (\u003Cem>Files\u003C\u002Fem>) manager and replace the database access with that of the new database. Also update the website address when the file holds one.\u003C\u002Fp>\n\u003Cdiv class=\"md-table md-table--info md-table--striped\">\u003Cdiv class=\"md-table__caption\">Configuration file by website\u003C\u002Fdiv>\u003Cdiv class=\"md-table__scroll\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Website\u003C\u002Fth>\n\u003Cth>File\u003C\u002Fth>\n\u003Cth>Values to change\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>Joomla\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>configuration.php\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>$db\u003C\u002Fcode>, \u003Ccode>$user\u003C\u002Fcode>, \u003Ccode>$password\u003C\u002Fcode>, and \u003Ccode>$live_site\u003C\u002Fcode> if it is filled in\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Laravel\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>.env\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>DB_DATABASE\u003C\u002Fcode>, \u003Ccode>DB_USERNAME\u003C\u002Fcode>, \u003Ccode>DB_PASSWORD\u003C\u002Fcode>, \u003Ccode>APP_URL\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Azuriom\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>.env\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>DB_DATABASE\u003C\u002Fcode>, \u003Ccode>DB_USERNAME\u003C\u002Fcode>, \u003Ccode>DB_PASSWORD\u003C\u002Fcode>, \u003Ccode>APP_URL\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Custom PHP website\u003C\u002Ftd>\n\u003Ctd>Depends on your code\u003C\u002Ftd>\n\u003Ctd>Database name, user, password\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cdiv class=\"markdown-alert markdown-alert-caution\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Until this file is changed, the copy writes to the database of the live website. An order or an account created during your tests would then show up for your real visitors.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>5. Protect the copy\u003C\u002Fh2>\n\u003Cp>Your test copy must be seen neither by your visitors nor by search engines. Protect the whole subdomain with a password by following our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fpassword-protect-folder-plesk\">How to Password Protect a Folder of Your Website on Plesk\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2>6. Carry the changes over to the live website\u003C\u002Fh2>\n\u003Cp>Once your changes are approved on the copy, there are two approaches.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Redo the same settings on the live website, the safest method when changes are made from the website administration\u003C\u002Fli>\n\u003Cli>Copy the changed files back to the live website, with \u003Cstrong>Copie du site Web\u003C\u002Fstrong> started this time from the \u003Cstrong>Tableau de bord\u003C\u002Fstrong> of the test subdomain and the \u003Cstrong>Garder les fichiers existants sur le site cible\u003C\u002Fstrong> (\u003Cem>Keep existing files on the target site\u003C\u002Fem>) option, which only overwrites files with the same name\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cdiv class=\"markdown-alert markdown-alert-warning\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Cpath d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"\u002F>\u003Cline x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\u002F>\u003Cline x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Do not copy the database of the copy back to the live website. It would overwrite everything that happened on the website during your tests, such as new accounts, comments or orders.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Back up the live website before carrying anything over, with our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fbackup-restore-website-plesk\">How to Back Up and Restore Your Website on Plesk\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2>Troubleshooting\u003C\u002Fh2>\n\u003Ch3>❌ The copy shows a database connection error\u003C\u002Fh3>\n\u003Cp>The access in the configuration file does not match the new database.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Check the database name, user and password in the configuration file\u003C\u002Fli>\n\u003Cli>Check in \u003Cstrong>Bases de données\u003C\u002Fstrong> that the user does have access to the new database\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>❌ The copy sends you to the live website\u003C\u002Fh3>\n\u003Cp>The website address saved in the configuration or in the database is still that of the live website.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Update the address in the configuration file, as in step 4\u003C\u002Fli>\n\u003Cli>Clear the cache of your CMS and of the browser\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>❌ The subdomain still shows the Plesk default page\u003C\u002Fh3>\n\u003Cp>The copy did not target the right website, or it is still running.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Open the \u003Cstrong>Fichiers\u003C\u002Fstrong> manager of the subdomain and check that your files are there\u003C\u002Fli>\n\u003Cli>Run \u003Cstrong>Copie du site Web\u003C\u002Fstrong> again, checking the \u003Cstrong>Nom du site\u003C\u002Fstrong>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Best practices\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Make a fresh copy before each large piece of work, an old copy no longer looks like the live website\u003C\u002Fli>\n\u003Cli>Keep the copy password protected at all times\u003C\u002Fli>\n\u003Cli>Write down each change made on the copy, to carry it over without forgetting anything\u003C\u002Fli>\n\u003Cli>Delete the copy and its database when you no longer need them, they use your disk space\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Need help?\u003C\u002Fh2>\n\u003Cp>If the copy of your website does not work, open a ticket with our support from your \u003Ca href=\"https:\u002F\u002Fbilling.winheberg.com\">client area\u003C\u002Fa>, \u003Cstrong>Technical\u003C\u002Fstrong> department, filling in the \u003Cstrong>Related Product\u003C\u002Fstrong> field with the web hosting concerned. Give the original website, the test subdomain and the message shown.\u003C\u002Fp>\n\u003Cp>Your sandbox is ready, test without fear 🧪\u003C\u002Fp>\n",1794526351168]