Issues with cron and server (IO) Error - 7.1 #2

I have added cron path correctly but I keep getting this error:-

php -q /var/www/vhosts/MYSITE/httpdocs/periodic/cron.php
-: php: command not found

Also when uploading videos I get this error:- Server (IO) Error

I don't know why ... all settings are set correctly !   is anyone able to help with this please?

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

If you are not running an accelerator, then it maybe the "-q" option in you cron job. It also may be that you are not pointing to the path correctly. This is what my cron job setup looks like:

cd /home/yourusername/public_html/periodic/; php /home/yourusername/public_html/periodic/cron.php


Michael
Quote · 12 Dec 2012

-q is suppose to be there. It's the option that tells php to be quiet.

The line does not look right. such as full path to php. What is the full cron command your using. It should be something like this.

cd /home/mydir/public_html/periodic; /usr/local/bin/php -q cron.php

Specify full path to php . /usr/local/bin/php using just php does not normally work on most servers. And the path must be accurate.

https://www.deanbassett.com
Quote · 12 Dec 2012

 

-q is suppose to be there. It's the option that tells php to be quiet.

I am running find Deano, but I read in one of the posts the the "-q" was if you are using an accelerator. If I put the "-q" option in my cron job fails. And again, I got the path from a post I read. I will try to modify my cron job with your suggestions and see if that works, but I am running fine right now. 

Michael
Quote · 12 Dec 2012

There is suppose to be a space before and after the -q

A lot of people take one or both of them out for some reason.

Anyhow. The line i posted is what i use on all of my dolphin sites. and is also the same thing dolphin provides you with during the install process. Well, almost. The home dir path is of course different.

https://www.deanbassett.com
Quote · 12 Dec 2012

Thanks Deano, I set it up the way you said it should be and it is running fine. I am not sure where I got that info from, but it was when I was using the Boonex Test your cron job doc. Thanks again for getting me on the right track.

Detective, sorry I gave you bad info. 

Michael
Quote · 12 Dec 2012

I have this command to run cron:- php -q /var/www/vhosts/MYWEBSITE/httpdocs/periodic/cron.php

I also have this command for 2 other sites on the same server that are working great!

I only have this issue with the version running on 7.1 beta 2

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

 

The line does not look right. such as full path to php. What is the full cron command your using. It should be something like this.

cd /home/mydir/public_html/periodic; /usr/local/bin/php -q cron.php

Specify full path to php . /usr/local/bin/php using just php does not normally work on most servers. And the path must be accurate.

Try setting it up just like Deano said. I did it and it worked with no problems. This is what i have now.

cd /home/xxxxxx/public_html/periodic; /usr/local/bin/php -q cron.php

Michael
Quote · 12 Dec 2012

 I have Plesk panel and the paths are like the one shown in my command to run cron ...

php -q /var/www/vhosts/MYWEBSITE/httpdocs/periodic/cron.php


cd /home/xxxxxx/public_html/periodic; /usr/local/bin/php -q cron.php

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

php command not found.

I don't think it matters what plesk says. It has to be wrong. php by itself obviously does not work because the error says so.

https://www.deanbassett.com
Quote · 12 Dec 2012

 Deano ... I have this same command working on 2 other sites without issue ...!

php command not found.

I don't think it matters what plesk says. It has to be wrong. php by itself obviously does not work because the error says so.

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

I also see this:-

Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; User unknown in virtual alias table


any idea if this is related to the cron issue and Server (IO) Error ??

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

 

I also see this:-

Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; User unknown in virtual alias table


any idea if this is related to the cron issue and Server (IO) Error ??

Should not be. Posfix is a email server and the virtual alias table is a table of email aliases. There is a alias in the table pointing to a user account that does not exist on the server.

That should only affect email delivery if anything.

https://www.deanbassett.com
Quote · 12 Dec 2012

 

 Deano ... I have this same command working on 2 other sites without issue ...!

php command not found.

I don't think it matters what plesk says. It has to be wrong. php by itself obviously does not work because the error says so.

 

 
Sorry. But i cannot help with that one. I can only go by what the error says.


https://www.deanbassett.com
Quote · 12 Dec 2012

 it just don't make sense ... the command works for 2 other sites on the same server as the 3rd site I am trying to get working but its not happening :(

I still keep getting the cron error as detailed and 'Server (IO) Error' when trying to upload videos etc ...

 

 Deano ... I have this same command working on 2 other sites without issue ...!

php command not found.

I don't think it matters what plesk says. It has to be wrong. php by itself obviously does not work because the error says so.

 

 
Sorry. But i cannot help with that one. I can only go by what the error says.


 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

the mass mailer not sending mail either ...

if I subscribe to my site I get confirmation mails etc >> but not mass mail or subscriber mail

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

does anyone else have any idea about this ?

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 12 Dec 2012

I found that the php command that is being used on my host's system is a LINK!  'cron' may not be able to use links.  Look in the directory to determine where 'php' really resides and try that path instead.  The 'php' pointed to in the LINK is actually "php*"!  Still doesn't work - even with the link, it runs at command line in ssh, but it does not see it when run from 'cron'...

Quote · 6 Apr 2013

LOL - my hosting provider suggested the same path as Deano did and it appears to have worked. Embarassed

Quote · 6 Apr 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.