ok, I noticed that setting up cron jobs are needed for your video uploading to work properly so I did, but now I'm getting this email that says...."Could not open input file: /home/sitedir/www/periodic/cron.php."
I'm guessing I didn't do something right. If anyone knows what this means could you be so kind and enlighten me?
Did I put the wrong path in or what?
|
What did you put as the command? If you're using the standard Cpanel setup it should look like this:
/usr/bin/php -q /home/youraccount/public_html/periodic/cron.php
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thank you. Yes, I am using Cpanel. I changed the command to what you said and now I get emails saying:
"No input file specified"
|
It has to match your path, so maybe more like /usr/bin/php -q /home/youraccount/www/periodic/cron.php
Anyhow. to more accurately help you we need two things.
1) The path to your dolphin site 2) The path to the php interpreter.
Both must be accurate for it to work.
The path to your dolphin site can be found in inc/header.inc.php on the line that starts with $dir['root']
The path to php can be found in inc/header.inc.php on the line that starts with $PHPBIN
So you end up with this.
PathToPHP -q PathToDolphin/periodic/cron.php
https://www.deanbassett.com |
An easy way to find out your exact cron path:
you can always find the path needed by editing the header.inc.php file and look for the following:
$PHPBIN
$dir['root']
So in turn, $PHPBIN + $dir['root'] = your cron statement
An example:
/usr/bin/php -q /home/pitodosa/public_html/path2pros/periodic/cron.php
Nothing to see here |
Hey, what do ya know. It worked. Thx a bunch!. |
I have this cron job set up but this is the only one:
/usr/bin/php -q /home2/XXXXXXXX/public_html/go/periodic/cron.php
Do I need to have additional crons set up for things to function correctly? I am trying to Prun my database and delete any members older than 60 days.
|
No additional one needed.
Do any of those members older than 60 days have any blogs?
If so there is a bug in the blog module that stops the cron job when trying to purge members that have blogs because blogs cannot be deleted unless the member is logged in.
I am not saying that is the problem. If your cron is not running then it won't work regardless. But if your sure it's running then that may be the issue. https://www.deanbassett.com |
Deano thanks, I am not sure they may have spam blogs.. If that is the case do you have any advice? Is there a way to delete all of the blogs on the website? We are OK with just deleting all of the blogs on the site..
What steps would you suggest I take.
|
To delete all of the blogs is easy. Just uninstall the blogs module. The uninstall will remove all the blogs. Leave it uninstalled for 24 hours or until after the next cron run and see what happens. https://www.deanbassett.com |
I just noticed that we have had the the blog module as "not installed" for the past few weeks.. So I guess all of the blogs are deleted.. In that case the members should have been deleted but they have not..Or do we have to actually delete the blog module?
|
No. If it's uninstalled then there are no blogs. You never delete the modules. It is not necessary and in fact it will prevent upgrades from installing correctly. so no, you must have a different issue.
Maybe your cron job is not running.
Are you getting nightly periodic reports from dolphin? You should get one every night. If not then you cron job is not running. https://www.deanbassett.com |
Yes I just set up the cron job and I get one every minute.. So it seems to be working. This is the message I get in the cron email: <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.
|
No. you should not be getting one every minute. Your getting a error, so it is not running properly. A properly running cron will not send you anything unless a error occurs.
What is happening is your cron jobs are not using the same version of php as the web server, so you need to pass a custom php.ini file to it.
Does your site have a custom php.ini file you created for it?
If so then you need to modify the cron job from this.
/usr/bin/php -q /home2/XXXXXXXX/public_html/go/periodic/cron.php
To this
/usr/bin/php -c /home2/XXXXXXXX/public_html/go/php.ini -q /home2/XXXXXXXX/public_html/go/periodic/cron.php
This assumes your custom php.ini file is located in /home2/XXXXXXXX/public_html/go/
This also assumes you know what XXXXXXXX is. You posted it. I assume because you your under the false assumption it is dangerous to post your directory name in the forums. Which is not really a problem. If a hacker wants into your site, they will get in anyway. Hiding it is not going to help protect you despite what you read. https://www.deanbassett.com |