i have multisite environment with domain mapping.
i tried to use this two examples to make linux cron work instead wp-cron.
then i set the cron in the cpanel and all looks great.
but i started get error email from cron:
PHP Warning: include_once(/my-cont/sunrise.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/user/public_html/wp-includes/ms-settings.php on line 18 PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/my-cont/sunrise.php' for inclusion (include_path='.:/usr/local/php53/pear') in /home/user/public_html/wp-includes/ms-settings.php on line 18 PHP Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-includes/ms-settings.php on line 30
to remove HTTP_HOST Notice i have add to php
file $_SERVER['HTTP_HOST'] = 'mydomain.com';
"my-cont" is CONTENT DIR new name that i have change in wp-config.php
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/my-cont' ); define( 'WP_CONTENT_URL', 'http://'.$_SERVER['HTTP_HOST'].'/my-cont');