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

  • SEARCH
  • Home
  • 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 8969573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:36:43+00:00 2026-06-15T17:36:43+00:00

I signed up for a shared hosting package at Hostgator. So far so good,

  • 0

I signed up for a shared hosting package at Hostgator. So far so good, but I run into trouble when executing Symfony 2.1 console commands via ssh.

By default, Hostgator provides php v5.2. After some googling, I found that adding the following lines to the document root .htaccess file will turn on php v5.3, as required by Symfony:

Action application/x-hg-php53 /cgi-sys/php53
AddType application/x-httpd-php53 .php
suPHP_ConfigPath /opt/php53/lib

Great! The Symfony pages are rendered without errors. Only problem is when I use the CLI console for commands such as:

app/console cache:clear

or

app/console doctrine:schema:update --force

Then I get the typical PHP version compatibility error:

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/mysite/public_html/Symfony/app/console on line 13

Caused by the php 5.3 “use” keyword parsed by a php 5.2 engine.

After 1 hour spent trying to convince a Hostgator representative that there was no syntax error in the Symfony console script, but their CLI was running php 5.2, I am turning to you guys for help on how to get the CLI to run php 5.3 at Hostgator.

  • 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-15T17:36:44+00:00Added an answer on June 15, 2026 at 5:36 pm

    I made it!

    for running commands using php5.3 in hostgator, you have to execute: /opt/php53/bin/php

    example, the symfony console:

    /opt/php53/bin/php app/console
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I signed in into the app with some credentials and that user has some
I'm building a simple live chat into a web application running on Django, but
I'm having trouble getting tomcat to load a self signed certificate. I followed the
I've built an application and shared the apk (properly signed) to a few beta
I signed up for an As-You-Go account with Windows Azure, and created an SQL
I signed up for the iPhone Developer Program (now awaiting approval) using a new
I've just signed up for a godaddy server to test a PHP script I'm
I have a signed class library that I want to create assemblies for via
I have signed my applet and it is in jar. I have added the
I'm retrieving a signed int from a SQL Server database and need to convert

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.