1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Installing a WordPress site parallel to the site which is already active
This guide explains how to install a WordPress site using My WordPress Sitewithout crashing your current website. Here are the main ways to do it.
Install WordPress on a second site (on the same hosting)
- add a site (it's free if you don't already have 19 others on the same hosting) giving it a domain name in the form new.yourdomain,tld for example (help)
- clearly define the target of this site as being different from the first site (/new for example) (help)
- install your WordPress site with My WordPress Site (help); the WordPress files will be placed in the folder set up in the previous step.
At this stage, the primary site (yourdomain.tld) remains untouched and you should be able to work happily on the new site new.yourdomain.tld. The two work in parallel.
Once ready, if necessary you can delete the first site in order to reuse its domain name on the new one:
- hold the mouse over the name of your old site in the control panel and click on delete in the drop-down menu (help)
- add yourdomain.tld in alias de new.yourdomain.tld (help)
- switch the alias with the primary domain (help)
- remove new.votredomaine.tld which has become the alias (help)
- update the primary URL for your WordPress site via the My WordPress Site tool control panel (help)
Alternative (requires more technical knowledge): install WordPress in a subfolder
- modify the website directory by indicating the folder of the future WordPress site (help)
- install your WordPress site with My WordPress Site (help).
The WordPress files will be placed in the folder set up in the preceding step - put the target directory back to how it was before (by default: /web)
At thi sstage, the primary site (yourdomain.tld) should be accessible again. However, the WordPress site is no longer accessible and the site's pathway needs to be changed manually in the WordPress site MySQL database.
- create a new MySQL user and assign them rights on the database created automatically when installing the WordPress site (help)
- log in to phpMyAdmin through the user created in the previous step (help)
- In the WordPress site database, edit thewp_options table and change the siteurl and home entry values via the URL address of your WordPress site (in this example: yourdomain.tld/blogwordpress).
At this stage, your primary site and your WordPress site should work correctly. WordPress administration will be accessible via www.domain.xyz/wp-admin