Cron email error per/hour "register_globals is On"

Cron Error message emailed on the hour how can I fixed this in Dolphin 7.1?

I'm not sure why my cron is telling me that register_globals and allow_url_include are On. I verified that they're not by creating a phpinfo.php file and it shows that those PHP settings are set to Off. 

http://pquniversity.com

The .htaccess file located within the 'pquniver' account's public_html folder is making it so that the php.ini file located at:

/home/pquniver/public_html/php.ini

Here is the email message I get on the hour:

<font color="red">register_globals is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br /> <font color="red">allow_url_include is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br />
Please go to the <br />
<a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br />
and solve the problem.


Here is the current cron job:

Minute Hour Day Month Weekday Command Actions
0 * * * * /usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

 

I have attached my .htaccess and php.ini files:

pquniversity-phpini-htaccess-files.zip · 16.9K · 306 downloads
Quote · 2 Feb 2013

Do you have a cgi-bin directory too? if so try putting the php.ini file there.

And check www.yoursite.com/administration/host_tools.php for register_globals

so much to do....
Quote · 2 Feb 2013

I moved the php.ini file to my cgi-bin directory and change the file path in my .htaccess file.

<IfModule mod_suphp.c>

suPHP_ConfigPath /home/pquniver/public_html/cgi-bin/php.ini

</IfModule>

 

I still get the email error on the hour.

Below is a message from my web host tech support at Acenet, Inc. any suggestions?

Hello Kraig,


I manually ran the cron job, to see what is being output. It looks like the register_globals and allow_url_include errors have been resolved. One thing that is erroring now is that the cron file was built with an older version of Zend Optimizer. You will likely need to update your script in order to resolve this.

=======================================================================================================
root@smoke [/home/pquniver/public_html]# /usr/bin/php -q /home/pquniver/public_html/periodic/cron.php
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
Zend Optimizer requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Optimizer.



Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

=======================================================================================================

Regards,

George Yedinak, RHCSA
Systems Administrator
Acenet, Inc.

Quote · 2 Feb 2013

The cron and Dolphin have nothing to do with IonCube or Zend, your php.ini more than likely links to a file that has the wrong path to the loader. That happens sometimes after upgrading from version 5.2 to 5.3 of php. 

EDIT: /etc/php5/conf.d/aa_ioncube.ini
FIND: zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
REPLACE: zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so

 

Also the Dolphin cron needs to be run once a minute (* * * * *), not once an hour.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 3 Feb 2013

I added that setting to the only php.ini available to us which is in /cgi-bin.

The article specifies another file that needs to be edited that is not visible to us via the file manager. Also, I'm not sure the path of the loader is correct for this environment. Support will need to help us make that determination.

And, yes, the cron job needs to run once a minute. However, that can wait until this problem is resolved.

Quote · 3 Feb 2013

Your hosting provider is shockingly bad. Register globals was on? WTF?  Give me 2 minutes and I could cause utter devastation. At least they have turned that off now by the sound of it. Now they have updated ZEND but missed a dependency.

 

The solution is simple. Get a new host. 

Quote · 3 Feb 2013

This is there last reply Acenet Hosting. Any suggestions before looking for a new host?

Kraig,

Your php.ini file must be placed within your account's public_html directory so that the cron does not throw the error about register_globals and allow_url_include. I moved your php.ini file from your cgi-bin directory to your public_html directory. php.ini files are not recursive, which is why you need to place them within the executing script's directory. I also corrected the zend_extension line with the appropriate location:

============================================================================

zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"

============================================================================

Your cron command is still resulting in the following error though:

============================================================================

Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line

============================================================================

You will need to make sure your script is compatible with PHP 5.3. You can view more details on deprecated errors here:

http://kb.acenet.us/Dealing_with_PHP_5.3_Deprecated_Errors

Regards,

Sean Malen, RHCSA
Systems Administrator
Acenet, Inc.

Quote · 3 Feb 2013

So register globals is now off due to your own php.ini.  Good, but they seem to be saying that your cron job is using or relying on magic quotes and therefore won't run on php 5.3. Unless you have modified periodic.php this shouldn't be the case.

Quote · 3 Feb 2013

 Is there an update forthwith Dolphin cron.php script that is compatible with php 5.3?

Quote · 4 Feb 2013

Not as such. The one downloaded with d7.1 is fine in php 5.3 on my server.

Quote · 4 Feb 2013

1. I downloaded D7.1 again and uploaded the cron.php file to the periodic directory and I still get the Cron email error every minute. I'm not sure why this is occurring?

2. Acenet Hosting tech support lastest response:

Hello Kraig,

That cron.php script should use the local php.ini that was created. Both of those items have been deprecated, and will be removed in php 5.4, so the script probably needs to be updated.


Regards,

George Yedinak, RHCSA
Systems Administrator
Acenet, Inc.

3. Here is the email I receive:

Subject Line: 

Cron <pquniver@smoke> /usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

From root@smoke.securenet-server.netAdd contact
To admin@pquniversity.comAdd contact
Date Today 20:15

 

Email Body:

<font color="red">register_globals is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br /> <font color="red">allow_url_include is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br />
Please go to the <br />
<a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br />
and solve the problem.
 

 

Quote · 5 Feb 2013

Please post step-by-step instructions on how I can access and run the Dolphin Troubleshooter. I want to do some testing and see what is going on.

Quote · 5 Feb 2013

What is your current cron command and where is your local php.ini file.

All you need to do is modify the cron command to pass the local php.ini configuration to it. But i cannot provide the command to use until i know those two things.

Oh and BTW there is no troubleshooter you can run. The link to to a document. http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter


https://www.deanbassett.com
Quote · 5 Feb 2013

Message from Acenet:

 

Hello Kraig,

The full path to the current php.ini file for the domain "pquniversity.com" is:

/home/pquniver/public_html (So the php.ini file is located within the "public_html" directory)

Your Cron Command is:

/usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

Your Cron Command is located at:

/home/pquniver/public_html/periodic/ (So the cron.php file is located within the "periodic" directory)
-------------

As George mentioned, " As I recall, Dolphin will work on a shared server, be we do not have ffmpeg installed. We usually recommend a virtual or dedicated server in order to run Dolphin.".. Be sure to keep that in mind as Dolphin as best ran on a VPS or Dedicated solution.

Let me know if you have any questions, comments or concerns regarding any information I have provided above by updating this ticket via your Help Desk.

Sincerely,

Dave Grewal
Assistant Systems Administrator
Acenet, Inc. 

Quote · 5 Feb 2013

 

Message from Acenet:

 

Hello Kraig,

The full path to the current php.ini file for the domain "pquniversity.com" is:

/home/pquniver/public_html (So the php.ini file is located within the "public_html" directory)

Your Cron Command is:

/usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

Your Cron Command is located at:

/home/pquniver/public_html/periodic/ (So the cron.php file is located within the "periodic" directory)
-------------

As George mentioned, " As I recall, Dolphin will work on a shared server, be we do not have ffmpeg installed. We usually recommend a virtual or dedicated server in order to run Dolphin.".. Be sure to keep that in mind as Dolphin as best ran on a VPS or Dedicated solution.

Let me know if you have any questions, comments or concerns regarding any information I have provided above by updating this ticket via your Help Desk.

Sincerely,

Dave Grewal
Assistant Systems Administrator
Acenet, Inc. 


Then just change the cron command from this.

/usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

To This.

/usr/bin/php -c /home/pquniver/public_html/php.ini -q /home/pquniver/public_html/periodic/cron.php

Thats how you pass a local php.ini file to cron.


https://www.deanbassett.com
Quote · 5 Feb 2013

No more Cron error Thank you Cool

 

Message from Acenet:

 

Hello Kraig,

The full path to the current php.ini file for the domain "pquniversity.com" is:

/home/pquniver/public_html (So the php.ini file is located within the "public_html" directory)

Your Cron Command is:

/usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

Your Cron Command is located at:

/home/pquniver/public_html/periodic/ (So the cron.php file is located within the "periodic" directory)
-------------

As George mentioned, " As I recall, Dolphin will work on a shared server, be we do not have ffmpeg installed. We usually recommend a virtual or dedicated server in order to run Dolphin.".. Be sure to keep that in mind as Dolphin as best ran on a VPS or Dedicated solution.

Let me know if you have any questions, comments or concerns regarding any information I have provided above by updating this ticket via your Help Desk.

Sincerely,

Dave Grewal
Assistant Systems Administrator
Acenet, Inc. 


Then just change the cron command from this.

/usr/bin/php -q /home/pquniver/public_html/periodic/cron.php

To This.

/usr/bin/php -c /home/pquniver/public_html/php.ini -q /home/pquniver/public_html/periodic/cron.php

Thats how you pass a local php.ini file to cron.


 

Quote · 6 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.