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 8821437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:51:17+00:00 2026-06-14T05:51:17+00:00

My setup shared hosting no root access shell access symfony 2.1 capifony for deployment

  • 0

My setup

  • shared hosting
  • no root access
  • shell access
  • symfony 2.1
  • capifony for deployment (well, at least, that’s the plan)

build_bootstrap.php uses

#!/usr/bin/env php

This is linked to the php4 cli in

/usr/local/bin/php

PHP4 does of course not work. The php 5.3 cli is in

/usr/local/bin/php53 

Is there a central place to tell Symfony 2.1 to change the env? Something with putenv? Export path in bash config files?

Update:

I am now using an alias for php in my bashrc as @thecatontheflat suggested.

Unfortunately Symfony brings its own logic where to look for the php binaries.
One option is to set PHP_PATH via putenv.
I added it both to app/console and app/autoload.php as both files are involved in the Capifony tasks

  • 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-06-14T05:51:19+00:00Added an answer on June 14, 2026 at 5:51 am

    Solution:

    add two settings to .bashrc/.bash_profile

    alias php="/usr/local/bin/php53"
    export PHP_PATH = "/usr/local/bin/php53"
    

    and also set php_bin in Capifony’s deploy.rb

    set  :php_bin, " /usr/local/bin/php53"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After trying to get the mercurial repository explorer setup on my shared hosting with
I'm trying to setup django on a shared hosting provider. I followed the instructions
I am trying to setup a central repository with shared hosting. I read all
On Linux I'm using shmget and shmat to setup a shared memory segment that
I have a tab delimited file on a shared path. I've setup that flat
Let's assume I have an unlimited hosting plan on GoDaddy that I want to
I am building an ASP.Net MVC app that will run on a shared hosting
I am working on a shared hosting server setting up something that was working
I am currently with HostGator on a shared hosting plan. I have a new
I have a shared hosting account which I have both SSH and FTP access

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.