How to install a web development environment on a VPS or a dedicated server
Find out how to install a web development environment on a VPS or an OVHcloud dedicated server
Objective
If you would like to install a CMS (Content Management System) on your VPS (e.g. WordPress), you will need to install a web development environment on your VPS or dedicated server in advance. The main services to install are:
- PHP: PHP is one of the most widely used languages for building websites. You need to install PHP so that your website can run scripts and dynamic features. It is best to install the most recent PHP version.
- Web server: The web server is essential for serving your website pages. The most popular web servers include Apache and Nginx, each with their own advantages in terms of flexibility, performance and ease of configuration.
- DBMS: To store, manage and retrieve your data efficiently, you will need a DBMS (DataBase Management System). MySQL, PostgreSQL and MariaDB are the most widely used DBMS in web development.
Find out how to manually install a web development environment on an OVHcloud VPS or dedicated server.
Information regarding OVHcloud service administration and how to find appropriate assistance
When using OVHcloud guides, please be aware of the following conditions:
- User instructions aim to provide as many details as possible but cannot cover individual use cases. You might need to adapt the pertinent actions to your requirements.
- The OVHcloud ecosystem is built for flexibility and freedom of choice. Customers are therefore responsible for the secure and proper configuration of their services. To prevent data loss, we strongly recommend to apply backup strategies to all your important data.
- Our guides and tutorials may reference third-party software or services in combination with OVHcloud solutions. The technical support provided by OVHcloud does not include the configuration of systems or products outside of our responsibility. This includes but is not limited to:
- Operating systems and user interfaces (Windows, Debian, Plesk, etc.).
- Any other third-party software (FTP clients, email software, etc.).
- Services offered by other providers (DNS, APIs, user interfaces, etc.).
To receive the appropriate assistance for any issues you might experience, follow these guidelines:
- You seek personalized advice or you would like to discuss a topic that is not covered in detail by our documentation?
Join the OVHcloud Community to search for your topic and reach out to other users. - You need to report an incident regarding your OVHcloud service or you are experiencing difficulties in the OVHcloud Control Panel?
Create a support request in our Help Centre. - You require professional assistance for your project or you need help with tasks outside our support scope?
Visit our partner portal to search for experts who are familiar with OVHcloud solutions. - You are looking for more detailed information regarding our support levels and Professional Services?
Please visit our web pages for OVHcloud support levels and OVHcloud Professional Services.
You can participate in improving our documentation:
- You would like to share feedback to improve a guide page or you want to report insufficient information on a specific page?
Use the "Was this page helpful?" buttons at the bottom of the page to let us know. - You would like to propose a specific documentation update?
Use the "Edit this page" function, available at the bottom of the page and in the sidebar.
Requirements
- A [VPS] solution (https://www.ovhcloud.com/en-gb/vps/) or a dedicated server in your
- Administrative (sudo) access to your server via SSH
Instructions
Log in to your VPS via SSH with your username and password.
Update the package index
Before installing the components, update the package list:
Apply the available updates:
Install PHP
Install PHP:
To check that PHP is installed properly, enter the following command:
If PHP is correctly installed, you should see this message:
Install a web server
For this guide, we choose Nginx, but you are free to install the web server of your choice.
Install Nginx:
To verify that Nginx is installed properly, enter the following command:
If Nginx is correctly installed, you should see a message like this:
If you have any queries, please refer to Nginx official website.
Install a DBMS (DataBase Management System)
Select the tab corresponding to the DBMS you want to use. The appropriate PHP extension will be installed in each case.
Install MariaDB (or MySQL) and the associated PHP extension:
Secure the installation:
Set a password for your DBMS and follow the on-screen instructions. Once the MariaDB (or MySQL) installation is complete, the following message should appear:

Conclusion
You have just installed PHP, an Nginx server, and a DBMS (MariaDB/MySQL or PostgreSQL). You now have a functional web development environment on your VPS or OVHcloud dedicated server. If you wish, you can now install the CMS (Content Management System) of your choice, such as WordPress. To find out more, please read the guides “How to install WordPress with WP-CLI on a VPS or a dedicated server” and “How to install WordPress with Docker on a VPS or a dedicated server”.
For some general tips on securing a GNU/Linux-based server, see our guides:
Go further
How to install WordPress with WP-CLI on a VPS or a dedicated server
How to install WordPress with Docker on a VPS or a dedicated server
For specialised services (SEO, development, etc.), contact OVHcloud partners.
Join our community of users.