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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:53:07+00:00 2026-06-13T07:53:07+00:00

I’ve made a Symfony2 installation on my machine. When I check the requirements in

  • 0

I’ve made a Symfony2 installation on my machine.

When I check the requirements in my local url:

localhost/Symfony2/web/config.php

It says:

MAJOR PROBLEMS

Set the “date.timezone” setting in php.ini* (like Europe/Paris).

RECOMMENDATIONS

Set short_open_tag to off in php.ini*.

Set magic_quotes_gpc to off in
php.ini*.

  • Changes to the php.ini file must be done in “/etc/php5/apache2/php.ini”.

I’ve made the required changes both in /etc/php5/apache2/php.ini and in /etc/php5/cli/php.ini:

date.timezone = “Europe/Madrid”

short_open_tag = Off

magic_quotes_gpc = Off

Both short_open_tag and magic_quotes_gpc where already set to Off when I checked the php.ini files.

After that I’ve restarted apache2:

sudo service apache2 restart

However I still get the same error messages.

I use Symfony 2.1.2, Ubuntu 12.04 and PHP 5.3.6

UPDATE:

If I run phpinfo() from the browser, it says the Loaded Configuration File it’s located in:

/etc/php5/apache2/php.ini

If I run php -i | grep php.ini it says the Loaded Configuration File it’s located in:

/etc/php5/cli/php.ini

These are the two files where I’ve already made the changes.

I’ve made sure that the changes have been saved in the file. I also have used phpinfo() in a php file and executed it in the browser. It says that the values for date.timezone are not set, and magic_quotes_gc and short_open_tag are set to On.

If I execute php app/check.php, the requirements are resolved, so I suppose that /etc/php5/cli/php.ini it’s working correctly and there is only a problem with /etc/php5/apache2/php.ini, which is the one that works with the browser.

  • 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-13T07:53:08+00:00Added an answer on June 13, 2026 at 7:53 am

    The changes you have made should fix your problem if done correctly; double check that. Make sure the changes are actually being saved. Many times when I edit php.ini files in Ubuntu I forget to run the editor with the right permissions(root) and miss the warning that the file could not be saved. Also, verify the changes by calling phpinfo() from a script.

    Do you get the the same result when you run the scrip located in app/check.php from the terminal. From project root:

    php app/check.php
    

    If still having problem, all I can suggest is clearing the cache; with symfony2 a lot of problems are solved that way.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
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 want to count how many characters a certain string has in PHP, but
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I would like to count the length of a string with PHP. The string
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.