Install problem

I have some problems with installing new version zenphoto-1.4.1.6 on new site.

I see warnings:

"PHP version 5.2.17
Warning!
Version 5.3 or greater is strongly recommended."

"PHP Register Globals [is set]
Error!
PHP Register globals presents a security risk to any PHP application. See Using Register Globals. Zenphoto refuses to operate under these conditions. Change your PHP.ini settings to register_globals = off. "

"PHP magic_quotes_gpc [is enabled]
Warning!
You should consider disabling magic_quotes_gpc. For more information See What is magic_quotes_gpc and why should it be disabled? in the Zenphoto troubleshooting guide. "

Probably I can contact my host provider to turn off magic quotes and register globals, maybe they will do that, but still will Zenphoto work on PHP version 5.2.17?

I tried to turn off magic quotes and register globals with php.ini and .htaccess files like this:

For php.ini

register_globals=off
magic_quotes_gpc=off

For .htaccess

php_flag magic_quotes_gpc off
php_flag register_globals off

But still Zenphoto setup is telling me again that warnings.

What I can or should do?

Comments

  • acrylian Administrator, Developer
    You might need to contact your host about that. Maybe you are not allowed to change the php.ini values at all. (or need to do that via .htaccess as it is setup on some hosts incl. mine).
  • My install shows me 3 orange question marks for:


    PHP version 5.2.17
    PHP magic_quotes_gpc [is enabled]
    The Zenphoto filesystem character define is ISO-8859-1 [no test performed] Notice! click for details


    and 1 red mark for


    PHP Register Globals [is set]


    and if I am right this (PHP Register Globals [is set] ) is main problem, right?

    About:

    "or need to do that via .htaccess as it is setup on some hosts incl. mine"


    I already tried that:
    For .htaccess
    `
    php_flag magic_quotes_gpc off
    php_flag register_globals off
    `
    Is my code right?

    ---------------

    You did not answer me will Zenphoto 1.4.1.6 work on PHP version 5.2.17?


    And if not, is there any earlier version which will work on PHP version 5.2.17?
  • acrylian Administrator, Developer
    Yes, the register globals is the main problem as it is an error and the others are warnings. The htcaccess code looks right (but if it works in a php.ini or htaccess only your host can answer).

    Zenphoto should work on PHP 5.2+, 5.3 is a recommendation as we mainly test and develop on that (5.3 is the official current php version)..
  • Your settings look correct. But please check that there are no quotation marks. `"off"` is unfortunately not the same as `off`.
Sign In or Register to comment.