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

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

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

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

is it set by webmin ?

i found it

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

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