Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6852513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:22:47+00:00 2026-05-27T01:22:47+00:00

I’m attempting to deploy my symfony2 app to my ec2 instance. I have my

  • 0

I’m attempting to deploy my symfony2 app to my ec2 instance. I have my deploy.rb file configured and I’m able to initialize the server directory using cap deploy:setup. However, when I run cap deploy I get this error: failed "sh -c 'cd /var/www/html/capifonytest/releases/20110920052019 && php app/console cache:warmup --env=prod'" on xxx.xx.xxx.xx. Here’s my deploy.rb file:

set :application, "capifonytest"

default_run_options[:pty] = true
set :scm, :git

set :deploy_to, "/var/www/html/#{application}"

set :repository, "git@github.com:myname/myrepo.git"
set :branch, "master"
set :ssh_options, { :forward_agent => true }

set :user, "ec2-user"
set :domain, "xxx.xx.xxx.xx"
ssh_options[:keys] = [File.join(ENV["AWS_HOME"], "tsmith.pem")]

role :web,        domain                         # Your HTTP server, Apache/etc
role :app,        domain                         # This may be the same as your `Web` server
role :db,         domain, :primary => true       # This is where Rails migrations will run

set :use_sudo, true
set  :keep_releases,  3

Does anyone know of a good tutorial/resource for deploying a symfony2 app to a ec2 instance or using capifony/capistrano to do so? Also, any tips or tricks to get symfony2 working on an ec2 instance would be greatly appropriated. I’m running the amazon linux ami 64bit, which I believe is based on centos.


Here’s a more detailed snippet of the output:

servers: [“107.20.247.96”]
[107.20.247.96] executing command
** [out :: 107.20.247.96] find: /var/www/html/capifonytest/releases/2011092118<br />
2846/web/css': No such file or directory<br />
** [out :: 107.20.247.96] find:
/var/www/html/capifonytest/releases/2011092118
2846/web/images’: No such file or directory
** [out :: 107.20.247.96] find: /var/www/html/capifonytest/releases/2011092118<br />
2846/web/js': No such file or directory<br />
command finished in 358ms<br />
triggering after callbacks for
deploy:finalize_update’
* executing `symfony:cache:warmup’
* executing “cd /var/www/html/capifonytest/releases/20110921182846 && php app/
console cache:warmup –env=prod”
servers: [“107.20.247.96”]
[107.20.247.96] executing command
** [out :: 107.20.247.96] PHP Warning: require_once(/var/www/html/capifonytest
/releases/20110921182846/app/../vendor/symfony/src/Symfony/Component/Locale/Reso
urces/stubs/functions.php): failed to open stream: No such file or directory in
/var/www/html/capifonytest/releases/20110921182846/app/autoload.php on line 25
** [out :: 107.20.247.96] PHP Fatal error: require_once(): Failed opening requ
ired ‘/var/www/html/capifonytest/releases/20110921182846/app/../vendor/symfony/s
rc/Symfony/Component/Locale/Resources/stubs/functions.php’ (include_path=’.:/usr
/share/pear:/usr/share/php’) in /var/www/html/capifonytest/releases/201109211828
46/app/autoload.php on line 25
command finished in 302ms
* [deploy:update_code] rolling back
* executing “rm -rf /var/www/html/capifonytest/releases/20110921182846; true”
servers: [“107.20.247.96”]
[107.20.247.96] executing command
command finished in 280ms
failed: “sh -c ‘cd /var/www/html/capifonytest/releases/20110921182846 && php app
/console cache:warmup –env=prod'” on 107.20.247.96

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:22:48+00:00Added an answer on May 27, 2026 at 1:22 am

    A little late, but…

    If you recursively chown and chgrp your deploy directory (in your case /var/www/html/#{application}) with the deploy user, capifony should be able to clear the caches. In other words:

    sudo chown -R ec2-user /var/www/html/#{application}
    sudo chgrp -R ec2-user /var/www/html/#{application}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
I have a reasonable size flat file database of text documents mostly saved in
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.