short_open_tag disabling for a certain site

Discussion in 'Installation/Configuration' started by JEU, Sep 27, 2011.

  1. JEU

    JEU New Member

    Hello guys, im trying to get some site developed with symfony up, my problem is that the "check.php" who test the enviroment for symfony keeps telling me that "short_open_tag = On". I have "php_flag short_open_tag Off" on the php.ini configuration for that site, but doesnt work.

    Any ideas??

    P.S.: phpinfo() is telling the same thing about short_open_tag.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which php mode do you use in that site?
  3. JEU

    JEU New Member

    It has Enabled CGI/SuEXEC and PHP is set on "Fast-CGI"
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. Then you have to enter this line into the php.ini field of the website, press save and wait a minute:

    short_open_tag = On

    The syntax with php flag that you used is for mod php only and is used in the apache directives field then and not the php ini field.
  5. JEU

    JEU New Member

    Excellent!. Its working now thks!! :D.

    Of course that i didnt knew that about syntax, can you briefly resume which syntax must be used which each PHP setting?
    I assume it will be the same that you've showed me for CGI/FastCGI, but what happens if im using ModPHP or suPHP?

    I have a Moodle installation (Fast-CGI) and it seems to work fine with:

    php_flag magic_quotes_gpc Off
    php_flag magic_quotes_runtime Off
    php_flag file_uploads On
    php_flag short_open_tag On
    php_flag session.auto_start Off
    php_flag session.bug_compat_warn Off
    php_value upload_max_filesize 2M
    php_value post_max_size 2M
    in the php.ini from that site, but now i realize that is wrong, however why it worked? (or at least moodle didnt complained about it).

    Thks for being patient :)

Share This Page