Member
Member
Jole   2012-01-14, 12:13
#1

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?

Administrator
Administrator
acrylian   2012-01-14, 12:24
#2

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).

Member
Member
Jole   2012-01-14, 12:56
#3

My install shows me 3 orange question marks for:

[b]
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
[/b]

and 1 red mark for

[b]
PHP Register Globals [is set]
[/b]

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

About:
[i]
"or need to do that via .htaccess as it is setup on some hosts incl. mine"
[/i]

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


[b]
You did not answer me will Zenphoto 1.4.1.6 work on PHP version 5.2.17?
[/b]

And if not, is there any earlier version which will work on PHP version 5.2.17?

Administrator
Administrator
acrylian   2012-01-14, 14:56
#4

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)..

Member
Member
sbillard   2012-01-14, 18:43
#5

Your settings look correct. But please check that there are no quotation marks. "off" is unfortunately not the same as off.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.