Symfony is a developer- centric PHP framework that powers a number of websites and web apps today. This framework is built upon Symfony Components that developers mix-and-match to create CMS and platforms such as Drupal, eZ Publish etc.
This framework is famous for its vibrant community. This community include over 2,000 contributors that contribute and maintain code to Symfony core and related projects.
Such a robust framework needs to be paired with an excellent hosting and support. This is where Amazon Web Services (AWS) excels. Amazon is the pioneer in providing cloud infrastructures and is famous for its persistent performance, reliable server infrastructure and prompt technical support.
Amazon has data centers in almost all important business locations that means that your website can be hosted nearest to your target audience. However, hosting Symfony on AWS is difficult because of a difficult-to-follow process.
Cloudways, a managed cloud hosting platform is the easiest solution for this difficulty. Its platform is designed to provide easy installation and hosting solution that even beginners could follow without any issues. The result is a powerful Symfony hosting solution powered by AWS and managed by Cloudways.
To launch a Symfony on AWS EC2 server on Cloudways, below are the steps to follow:
Signup For Free
Click the “START FREE” button to initiate the signup process. Enter a valid email address to signup at the Platform. Remember that you can also sign up using your LinkedIn, Google or Github account.
Select PHP Stack
Select PHP Stack from the drop-down menu and give it a name. Additionally, give a name to the server and project folder too to avoid confusion later on.
Choose the Cloud Infrastructure
Choose a Cloud Infrastructure from the list of market leading providers. I chose AWS for obvious reasons.
Configure Your Server
Select your server size, bandwidth and storage space. Remember that your server should have enough storage, RAM, and bandwidth for uncertain situations.
Select Server Location
Choose the server location wisely. Your server should be located near to your target audience.
You are Halfway Done!
Your server is ready. Click the LAUNCH SERVER button. Just wait for a few minutes and start using your optimized PHP application.
Launch SSH Terminal
Move on to the “Server Management tab” to launch “SSH Terminal” that is located in the “Master Credentials”. Here you can find your login credentials for SSH terminal.
Login to SSH with these Master Credentials.
Empty your public_html directory
Empty your public_html directory by deleting all files in it. To remove all files, move to your public_html folder and delete all files using rm -Rf * command.
Install Symfony 3
In the directory of your “public_html”, run this command to install the latest version of Symfony.
composer create-project symfony/framework-standard-edition your_project_name "3.0.*"
For 3.1 and higher version replace the version number with x:
composer create-project symfony/framework-standard-edition your_project_name "3.x.*"
Database Information and finishing Installation
As Symfony starts downloading, it will ask you for your database information.
You can find your database information under the “Application Management”. Go to the “Access Detail” tab and see MySQL Access.
After providing your database information, the installation will soon complete installing Symfony.
You are done!
After that the installation is complete, go to “Access Detail” in the “Application Management tab” and copy your application’s URL.
Open any web browser and access the welcome page of Symfony by entering
This is it, your latest version of Symfony is ready to use.
If you still have any confusion following this setup process, feel free to comment below.
Moreover, to experience this swift and easy procedure of installing Symfony, try Cloudways by clicking on “Start Free” and signup for a free trial.
Cloudways is certainly the platform you look for. Cloudways offers a free 3-day trial. The platform is designed to provide easy-to-use cloud hosting.3
Apart from its user friendly UI, the Platform offers a number of exciting features including free SSL certificate by Let’s Encrypt,optimized PHP stack, state-of-the-art CloudwaysBot, and lots of other feature that provide top notch features.
Start Creating Web Apps on Managed Cloud Servers Now!
Easy Web App Deployment for Agencies, Developers and E-Commerce Industry