Publishing a website on your Web Hosting space

Learn how to publish a website on your OVHcloud web hosting space

Last updated 3rd February 2022

Objective

There are a multitude of different websites on the internet. Whether you are creating a blog or an online store, sharing your hobby or promoting your work, your OVHcloud Web Hosting space lets you host the site you want, provided it is compatible with the configuration of our infrastructures.

Learn how to publish a website on your OVHcloud Web Hosting space.

Requirements

Instructions

Step 1: define your project

Having a clear idea of your objective is essential if your project is to be a success. What do you want to do with your website? How will you publish it? There are several potential ways to make your project become a reality with your OVHcloud Web Hosting plan:

  • Use a turn-key site, with OVHcloud’s 1-click modules. This solution offers the benefits of a ready-made structure for your website that you can then customise (themes, text, etc.). OVHcloud offers four such 1-click modules, compatible with our infrastructures, on the “Create a website with 1-click modules” page.

  • Use a turn-key website that you install manually. This solution gives you the benefit of a ready-made website structure that you can customise (themes, text, etc.), which you install yourself on your OVHcloud Web Hosting space.

  • Create your website yourself. This is a more technical solution that requires programming skills, but it does give you the option of creating a tailor-made project.

  • Migrate an existing website to OVHcloud. This solution may prove complicated if an interruption in service for the website concerned is not an option. To guide you through this process, you should consult the following guide: “Migrating your website and emails to OVHcloud”.

Once you have examined these various possibilities, you can choose one of two options:

  • You wish to use our 1-click modules. Refer to the instructions set out in our “Install your website with 1-click modules” guide;

  • You do not wish to use our 1-click modules. You will have to manually install your website on your hosting space. You may find the information set out in this documentation helpful, but it is no substitute for the assistance of a webmaster.

OVHcloud is providing you with services for which you are responsible, including with regard to their configuration and management. You are therefore responsible for ensuring they function correctly.

This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you enlist the services of a specialist provider and/or contact the service's software publisher if you encounter any difficulties. We will not be able to assist you ourselves. You can find more information in the “Go further” section of this guide.

Step 2: putting your website files online in your storage space

There are several steps involved in manually publishing a website on a hosting space. Some of these steps will be optional, depending on which site you install, and there may be multiple ways of carrying them out. For most existing projects, however, there are two major steps involved in publishing a website, the first of which is uploading the website’s files to the relevant storage space.

Publication takes place in several sub-steps:

1. Gather the files for the website

Make sure you have all the files for the website that you are looking to publish. If you are migrating an existing website, you can obtain these files from your former hosting provider.

2. Log in to your storage space

If you have an FTP username, a password and a server address, you will be able to log in to your storage space. These elements were sent to you in the email informing you that your OVHcloud Web Hosting plan had been set up. If you are no longer in possession of the password, refer to the instructions set out in this guide: “Changing the password for an FTP user”.

To obtain the server address or username to allow you to access your storage space, log in to your OVHcloud Control Panel, then click on Hosting Plans. Select the name of the hosting plan concerned and click on the FTP - SSH tab.

siteinstallation

Once you are in possession of all the elements, you have three different options for connecting to your storage space:

  • Use OVHcloud’s FTP Explorer. This enables you to access your storage space via your browser. To use it, stay in the FTP - SSH tab, and click FTP Explorer.

  • Use FTP-compatible software. You will need to install an FTP-compatible program on your computer (e.g. FileZilla). Since OVHcloud did not create the software package you have installed, please contact its publisher if you encounter any difficulties when using it.

  • Using SSH access. You will need to use commands from a terminal to interact with your storage space. More advanced knowledge and a specific OVHcloud Web Hosting plan are required to use this type of access.

3. Uploading the files to the storage space

Once you have logged in to your storage space, all you need to do is place the files for your website online. We urge you to exercise particular care when selecting the folder to which you upload the files. For conventional websites, the files should be uploaded to the “www” folder. However, if you host several websites on your hosting space, you have almost certainly registered several Multisites.

To identify the folder from which the website should be published, go to the Multisite tab in your OVHcloud Control Panel. In the table shown, check the Root folder stated for the domain in question. This is the folder in which you should publish the files for your website.

You may find a file called “index.html” in your storage space. This file may have been created by OVHcloud when your hosting plan was set up, to display a default page on your website. If this is the case, remember to delete this file when you are putting your files online.

An "index.php" file will always take over an "index.html" file. Therefore, when both are present, only "index.php" will be called.

siteinstallation

Step 3: connecting your website to a database

This step is optional if your website does not need to be connected to a database.

Today, virtually all content management systems (CMSs), such as WordPress or Joomla!, use a database for storing dynamic elements, such as comments or articles. It is therefore essential for the files of the website and the database to be connected if the website is to function correctly. To establish this connection, a configuration file that contains the database’s information is used.

Depending on the website used, this connection may need to be established manually, or via an interface generated by the site itself. This is done through several sub-steps, some of which may be optional.

1. Recover the existing database

If you are migrating an existing website, you can recover your existing database from your former hosting provider. If it is a new website, you can move on to the next step.

2. Create the database with OVHcloud

If you already have a database and wish to use it (from an OVHcloud Web Hosting plan, a Cloud DB) you will need your username and password, the name of the database and the address of the server. You can now proceed to the next step.

If you want to create a new database with OVHcloud, log in to your OVHcloud Control Panel, then click on Hosting plans. Select the name of the hosting plan concerned and click on the Database tab.

Now click the Create a database button, or, if this button is not shown, click on Actions, then on Create a database. Follow the instructions shown.

siteinstallation

3. Import the existing database

If you are migrating an existing website, you can import your existing database into the newly created one. If it is a new website, you can move on to the next step.

There are several methods for importing a database. OVHcloud offers one of these in the OVHcloud Control Panel. Once you are on the list of databases created for your service in your OVHcloud Control Panel, click the ... button to the right of your database, then Import a file.

4. Connect your website to the database

Once your database is available and you have uploaded your files to your storage space, all you need to do is connect them. To do this, you will need the following information: a username, the associated password, the name of the database and the address of the server.

How this connection is created will depend on the type of website you are publishing. This process is dictated by how your website is configured and has nothing to do with OVHcloud. We therefore recommend that you contact your website’s editor or a similar professional (such as a specialist service provider) if you need assistance with this procedure.

Step 4: access your website

Once you have uploaded your files to your storage space and you have connected your database to it (if your website uses one), you can now access your website. Your site should display properly in your web browser.

If it does not display properly, we recommend that you:

  • Check the configuration of the domain name. The DNS configuration of your domain name may be preventing the website you have just uploaded to your OVHcloud Web Hosting space from displaying correctly. Make sure that the A record currently configured in the DNS zone for your domain corresponds to the IP address of your OVHcloud Web Hosting plan.

  • Make sure that no files are missing. When uploading your files to your OVHcloud Web Hosting space, you may have forgotten to transfer some files, or an error may have occurred. Be careful during this process, however, to avoid breaking any links between the website’s files and the database (if the website uses one).

  • Check that there are no errors in the site's code. This is definitely the most technical check to carry out, but the files you have uploaded may contain errors, which are preventing the server from displaying your website correctly.

As a reminder, if you encounter difficulties when publishing your website, we recommend that you contact a specialist and/or the publisher of the service (the CMS installed, for example).

Go further

Migrating your website and emails to OVHcloud

Install your website with 1-click modules

Modifying an FTP user password

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices exclude VAT. VAT may vary according to the customer's country of residence.