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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:47:43+00:00 2026-06-01T04:47:43+00:00

We were working on a Symfony2 project. Now, it’s done and ready to be

  • 0

We were working on a Symfony2 project. Now, it’s done and ready to be deployed. We uploaded the whole project files to the server (via ftp of course) and the database as well. Now when we open any page of it we got just a blank page (empty source code). Cache is clean, logs do not show anything new. We googled the steps of deploying a Symfony2 project to a hosting but we did not find a good explanation (even these ones were about Symfony not-version-2).
We believe it maybe a configuration issue, but no idea so far.
Any help will be greatly appreciated.
Thanks in advance.

Edit: the blank page is in Firefox. Google Chrome is saying something:

Server error The website encountered an error while retrieving
http://*.com/mammoky/web/app_dev.php/main. It may be down for
maintenance or configured incorrectly. Here are some suggestions:
Reload this webpage later. HTTP Error 500 (Internal Server Error): An
unexpected condition was encountered while the server was attempting
to fulfill the request.

error_log is showing:

[24-Mar-2012 23:29:24] PHP Parse error: syntax error, unexpected
T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in
/home/leadow33/public_html/mammoky/web/app.php on line 7

It’s: use Symfony\Component\HttpFoundation\Request;
And

[24-Mar-2012 23:15:08] PHP Warning: Unexpected character in input:
‘\’ (ASCII=92) state=1 in
/home/leadow33/public_html/mammoky/web/config.php on line 84

It’s: $reflector = new \ReflectionExtension(‘intl’);


EDIT: I’ve posted my solution, check it out down here.

  • 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-01T04:47:45+00:00Added an answer on June 1, 2026 at 4:47 am

    Answer:

    I got it to work, this is my experience:

    • Upload the whole project folder to the server.
    • Enter www.your-website.com/project-name/web/config.php.
    • It should say: “This script is only accessible from localhost”.
    • Open this web site: http://www.whatismyip.com, it should show you your public IP address, copy it.
    • Open the config.php from the admin panel (like cPanel) and edit that config.php:

    if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1', /*your IP here*/))) {
        header('HTTP/1.0 403 Forbidden');
        die('This script is only accessible from localhost.');  
    }
    

    • Refresh your config.php file, the page will tell you if your system is missing some required conditions like: PHP version, APC extension, giving /cache and /log folders permissions to write on, etc.
    • After you provide the required conditions you’ll see a form of configuring you project to connect to a database if you have one, this step is pretty simple.
    • Open the link www.your-website.com/project-name/web/app_dev.php, it’ll help you get started with Symfony2 project.
    • In case you got in app_dev.php this message: You are not allowed to access this file... just do the same thing to app_dev.php as you did in steps 4 and 5 (add your public IP address to the array).
      Note of Hakan Deryal (comment): If you don’t have a fix IP address, you need to do this last step each time you get a new IP adrdress from the DHCP. So to solve that, open the app_dev.php and comment out the line die('You are not allowed to.., however this is not a recommended way because you’re disabling the built-in security of the file.
    • One thing stopped me and may stop you too, the server I deployed the project on, was case-sensitive (unlike the localhost on my computer), so it kept telling me that the template (Index.html.php for example) does not exist, however it does exist, but I did return $this->render('...:index.html.php') with small i in DefaultController.php. So render the exact template (file) name with the same letters cases.

    Now everything is going well, I hope that helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a symfony2 based project with lots of ajax usage. Now
I have a Symfony2 project with its own database, and now I want to
I'm working on a project based on Symfony2 framework, and I would like to
I'm working on a project with Symfony2 where you must be logged to be
I'm working on a Symfony2 project at the moment. For the most part it's
I'm working on a project in Symfony2 and I have several small pieces of
I'm working on a first symfony project, i am using the sfWidgetFormTextareaTinyMCE widget for
I'm currently working on a project with symfony 1.4 and Doctrine 1.2. I'm looking
Working on a project at the moment and we have to implement soft deletion
Working on a project that parses a log of events, and then updates a

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.