Installing Symfony 3.x on DigitalOcean
Tags: digitalocean, symfony, php, symfonydigitalocean
Published: 2017-05-18 12:54:35

---
title: Installing Symfony 3.x on DigitalOcean
published: true
description: This is walkthrough of installing Symfony 3.x on DigitalOcean server.
tags: digital ocean, symfony, php, symfony digitalocean
cover_image: https://thepracticaldev.s3.amazonaws.com/i/bey2z3qo31v8xytfpn12.jpg
---

*This article was originally published at Cloudways: [How To Install Symfony 3 On Cloud Server](https://www.cloudways.com/blog/install-symfony-3-on-cloud/)*

Symfony is the leading, modern PHP framework that is used to create secure websites and web applications with the help of its different components. It’s a popular MVC framework which saves time with handling typical development tasks such as content rendering, directing traffic, creating persistent models, etc.

To install and run Symfony 3, your system needs to fulfill a list of following requirements:

- PHP with a minimum version of 5.5.9
- Composer
- JSON enabled
- ctype enabled
- date.timezone should be set (default timezone will not work)

Note: If you want to use any optional component, see these [Requirements for Running Symfony](http://symfony.com/doc/current/reference/requirements.html).

If you are wondering how to install Symfony on Cloudways, you can simply follow this easy step-by-step guide. Ready? Lets begin!

##Step 1: Prepare your server and application

[Signup or Login to your Cloudways account](https://platform.cloudways.com/signup) and create a new server by selecting PHP Stack from the **“Select your Application”** drop-down. Also, Name your App, Server & Project accordingly.

![](https://www.cloudways.com/blog/wp-content/uploads/select-application.png)

##Step 2: Select Cloud Provider

Now select your favorite Cloud provider.

![](https://www.cloudways.com/blog/wp-content/uploads/select-cloud-provider-1.png)

##Step 3: Server Size and Location

In “Server Size” field, scale up to 1GB.

![](https://www.cloudways.com/blog/wp-content/uploads/server-size.png)

Keeping the latency difference in mind, now select your server location in “Location” field.

![](https://www.cloudways.com/blog/wp-content/uploads/server-location.png)

To launch your server, click “Launch” button at the bottom right side of the page and wait for a while. A working example:

![](http://www.cloudways.com/blog/wp-content/uploads/php-server-stack.gif)

##Step 4: Server Timezone

Once launched, change your server timezone as it’s the requirement to install Symfony (default value for timezone is not supported by Symfony). Under **“Server Management”**, go to *“Settings & Packages.”**

![](https://www.cloudways.com/blog/wp-content/uploads/server-management.png)

In **“Basic”** tab you can see **“PHP Timezone.”** Change server timezone to your respective location.

![](https://www.cloudways.com/blog/wp-content/uploads/server-timezone-1.png)

##Step 5: SSH Terminal

After changing server timezone, in “Server Management” click on “Launch SSH Terminal” under “Master Credentials” where you can find your login credentials for SSH Terminal.

![](https://www.cloudways.com/blog/wp-content/uploads/master-credentials.png)

Login to SSH with your Master Credentials.

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-7.png)

##Step 6: Emptying public_html directory

Now delete all files from your public_html directory. Navigate to your public_html folder and remove all files using `rm -Rf *` command.

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-8.png)

##Step 7: Symfony 3 Installation

Now in your “public_html” directory, run the following command to install Symfony 3 on your server:

```
composer create-project symfony/framework-standard-edition your_project_name "3.0.*"
```

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-9-768x54.png)

for 3.1:

```
composer create-project symfony/framework-standard-edition your_project_name "3.1"
```

##Step 8: DB Information and Finishing Project Installation

Now Symfony will start downloading to your server. During downloading, it will ask for your database information.

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-10-768x341.png)

You can find out your DB information under *“Application Management”* go to **“Access detail”** and see **MySQL Access**.

![](https://www.cloudways.com/blog/wp-content/uploads/MySQL-access.png)

After providing database information, in very few seconds you will see the following screen which means that Symfony has been installed successfully.

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-11.png)

##Step 9: Composer Repositories

Now we will check if there is any need to install or update composer dependencies required for the application by using `composer install` command. Navigate to your project directory and run the command.

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-12-768x481.png)

##Step 10: Installation Completed

After a successful installation, in “Application Management” go to “Access detail” and copy your Application URL.

![](https://www.cloudways.com/blog/wp-content/uploads/MySQL-access.png)

Open your favorite web browser and access to Welcome page to Symfony by the following URL:

http://your_application_url/your_project_directory/web

This is how the Symfony Welcome page should look like:

![](https://www.cloudways.com/blog/wp-content/uploads/symfony-14-768x409.png)

There you have it! Your Symfony Project is ready for development. If you have any issues in installing Symfony 3, feel free to comment below. And if you are still not a part of the Cloudways family, then you can start your FREE TRIAL here and experience ease at its best.