Symfony2 on Amazon Elastic Beanstalk Configure config.yml - php

I'm trying to run an app on Amazon Elastic Beanstalk, this app is programmed in Symfony2 and is able to run in any normal server, however I want to use it in Amazon Elastic Beanstalk.
Until now I have uploaded the code using git(thanks to the tutorial: http://vincent.composieux.fr/article/deploy-a-symfony-project-on-amazon-elastic-beanstalk),
Then I also connected to the server using SSH.
But now I want to configurate the symfony2 app parameters inside parameters.yml, but I cannot find the root location of the app in the server, does anybody know where Amazon stores source code of such an web-app?
Under /var/www/html I couldn't find anything :S

Found the location myself /var/app/ondeck
thanks to http://vincent.composieux.fr/article/deploy-a-symfony-project-on-amazon-elastic-beanstalk

Related

How to deploy a PHP application from ec2 instance?

I have created an ec2 instance and I need to deploy my php-yii application on it. I have uploaded the entire code base to the server and I have connected it with my RDS instance holding my MYSQL database. I have setup a LAMP stack for the server. I have also configured the Network Interfaces and Security Groups and I'm able to access my files in the server from outside.
How will I deploy my yii application in this setup? Should I use beanstalk for this?
Move the application to the /var/www/html folder and it launches automatically. Also remove the index.html already present in that folder.

How to setup EC2 as simple website with php support?

I'm an AWS newbie and I can't seem to find a good example. There are plenty of static website examples for S3, but my site needs to run a fairly simple PHP script which then means I need to be on EC2.
I used Elastic Beanstalk to create an EC2 instance and it added a simple PHP example, so when I go to the public DNS address in a browser, I see the example PHP script run. So far, so good.
But, where are those files and how to I access/modify them? They don't seem to be in the S3 bucket that Elastic Beanstalk created.
If I try to Connect to my EC2 instance, it says there's a problem with port 22 and a key pair is needed. Not sure what to do here.
So, how do I upload an html website to run on this instance and still get a PHP script to run?
Sorry if I have some of the terminology or methodology wrong.
Thank you.
But, where are those files and how to I access/modify them? They don't seem to be in the S3 bucket that Elastic Beanstalk created.
They probably are but in a ZIP package. You don't modify anything on the fly. You're supposed to modify your source code on a local machine, "bundle" it in a ZIP file and then either
Upload with AWS Console.
Upload it to S3, create an application version with AWS CLI and then deploy (also with AWS CLI).
Docs are here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP_eb.html
It is possible to change your application by connecting to an EC2 instance, but your changes will be lost during redeployment, scaling etc.
If I try to Connect to my EC2 instance, it says there's a problem with port 22 and a key pair is needed. Not sure what to do here.
When you created your Elastic Beanstalk environment you were asked for 'EC2 key pair'. You should use that exact SSH key to connect to your instance. This step is optional, so it is possible that you skipped it and created an environment without a key. In this case there is no way to connect to your EC2 instance (almost). You'll have to upload an SSH key (EC2 dashboard -> NETWORK & SECURITY -> Key Pairs) and create a new environment.

Deploy Web App on AWS

I'm a beginner on cloud providers, and I have a website to deploy. The website is made with PHP, HTML, CSS and Javascript, and it uses an API developed on NodeJS to access a database.
Is there a way to deploy all of this (Inteface + NodeJS API) on one AWS Elastic Beanstalk application? Or should I deploy only the API on AWS Elastic Beanstalk and deploy the website's interface with other AWS solution, e.g. a static website on Amazon S3.
I'm really lost on so many solutions, can someone give me some tips on this scenario?
One solution is you can deploy PHP application using Elastic Beanstalk and then apply edits to the configuration file of Elastic Beanstalk to Install Nodejs on the EC2 instance.
Or another solution is you can setup you PHP and Node application on a standalone EC2 instance and after everything is set you can create the AMI of that instance and use it in Elastic beanstalk .
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html

fetch and deploy PHP application on AWS elasticbeanstalk through git

I have a forum application uploaded to AWS elasticbeanstalk by zip package. but now I need to change some code, but now I don't know how should I get access to the code?
Is it possible for me to fetch this code back to local , make change and redeploy with "git push"? just like how Heroku deploy works?
I try to google it but with no luck.
There are really two parts to your questions.
To get to the code, you have to go to S3. You should see a elastic beanstalk bucket with your zip file in it.
Here is a pretty good guide to get you started with elastic beanstalk command line (including git aws.push).

Web Service creation AWS

So I am trying out AWS (Amazon Web Services) and I figured out how to put my db and its information on their server however I am not sure as to where I will put my php web service which gives a JSON response. Is there a tutorial or can someone tell me how I can accomplish this?
Suppose you are going to use the LAMP stack. I would either install LAMP on your EC2 instance or find a community image that has LAMP already installed and create an instance using that image.
You can start with Amazon Lightsail which is a beginner friendly service to deploy applications.
Or you can put your Application in Elastic Beanstalk and use its build in RDS feature for your database.
Attached you see the documentation for deploying a PHP application.

Categories