PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0

6 posts / 0 new
Last post
#1 Fri, 12/11/2015 - 23:55
hostile

PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0

Cron <root@ns1> [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean

PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0

Hi, root get above messages on email

any idea how to fix it?

PHP Version 5.6.14-0+deb8u1

http://vodeoo.com/info.php

Fri, 12/11/2015 - 23:58
andreychek

Howdy,

Was this domain migrated from an older distribution perhaps?

You may want to review your PHP config files within /etc/, and comment out the "register_globals" line if you see one.

-Eric

Sat, 12/12/2015 - 01:01 (Reply to #2)
hostile

thx no its new install

latest php on debian

there is no register_globals in php.ini

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

http://serverfault.com/questions/449562/register-globals-error-in-php

Sat, 12/12/2015 - 01:03
hostile

why do I need this cron job? [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean ?

is it set by webmin ?

Sat, 12/12/2015 - 02:29
hostile

i found it

root@ns1:/etc/cron.d# grep register_globals /etc/php5/*/php.ini /etc/php5/cgi/php.ini:register_globals = On

Mon, 12/14/2015 - 08:21
andreychek

Howdy,

I'm glad you found it!

That option shouldn't be seen in a new installation though... I'd double-check to make sure your php.ini file didn't come from another installation.

As far as the cron job you mentioned, that is installed by PHP itself.

-Eric

Topic locked