I am using 7.0.3, Whenever i set cron job as
* * * * * cd /srv/www/fourthmolar.com/public_html/periodic/; /usr/bin/php -q cron.php
is starts killing server processes n force me to restart server.
i m using linux vps with ram 512 mb
plz help
edited- m also getting this mail in my inbox
cd: 1: can't cd to /srv/www/fourthmolar.com/public_html/periodic/cron.php /usr/bin/php: 1: cannot open ?php: No such file /usr/bin/php: 2: /bin: Permission denied /usr/bin/php: 3: dl: not found /usr/bin/php: 4: dl: not found /usr/bin/php: 5: dl: not found /usr/bin/php: 6: Syntax error: "(" unexpected
https://www.facebook.com/4thmolar |
Try using this instead:
* * * * * /usr/bin/php -q /srv/www/fourthmolar.com/public_html/periodic/cron.php
You may want to also try setting the cron job to run every x minutes instead of every second.
Edit: Seeing your edited post, this seems to involve something else.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
M getting above mentioned error msg in my inbox every minute...
how it will b cleared that cron is working fine??
https://www.facebook.com/4thmolar |
Have you asked your hosting provider about this issue? This looks like a server side issue with some parts of the PHP Installation not properly configured. :-) |
yes i asked n they replied that they have provided an unmanaged server.. so thay cant do nything in it.
do i need some php mods for this??
edit- how to set mails to be send hourly instead of per minute as my mails has been temp blocked due to smamming by server
https://www.facebook.com/4thmolar |
Your getting the successive errors because of the first one. It can't change to the specified directory. It's a chain reaction. The first error causes the rest to occure.
So try setting cron as magnussoft suggested.
* * * * * /usr/bin/php -q /srv/www/fourthmolar.com/public_html/periodic/cron.php
https://www.deanbassett.com |
done as
* * * * * /usr/bin/php -q /srv/www/fourthmolar.com/public_html/periodic/cron.php
now m getting this mail every minute..
/usr/bin/php: 1: cannot open ?php: No such file /usr/bin/php: 2: /bin: Permission denied /usr/bin/php: 3: dl: not found /usr/bin/php: 4: dl: not found /usr/bin/php: 5: dl: not found /usr/bin/php: 6: Syntax error: "(" unexpected
do i need ny php mod for cron?
how to set hourly mail?
https://www.facebook.com/4thmolar |
it would appear that /ust/bin/php is not the path to the installed php on your server. Normally i would suggest you contact your host for the correct path, but they will just tell you that you have a unmanaged server and will refuse to help.
So. you will have to get it on your own.
You will need to shell to a linux command prompt.
Run the command which php
That should return the proper path to use for the cron line.
https://www.deanbassett.com |
it would appear that /ust/bin/php is not the path to the installed php on your server. Normally i would suggest you contact your host for the correct path, but they will just tell you that you have a unmanaged server and will refuse to help.
So. you will have to get it on your own.
You will need to shell to a linux command prompt.
Run the command which php
That should return the proper path to use for the cron line.
it says - /usr/bin/php
https://www.facebook.com/4thmolar |
Ok. so the path is correct. This is weird.
See if the cron.php file runs manually without errors.
First, try this.
http://www.fourthmolar.com/periodic/cron.php
Then try this. From a shell issue the following commands.
cd /srv/www/fourthmolar.com/public_html/periodic/
php cron.php
report the results of each of them.
https://www.deanbassett.com |
When trying url, it gives this error
Forbidden
You don't have permission to access /periodic/cron.php on this server.
Apache/2.2.14 (Ubuntu) Server at www.fourthmolar.com Port 80
And via ssh, after giving those commange it says-
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
/usr/bin/cron.php: line 1: ?php: No such file or directory
/usr/bin/cron.php: line 2: /bin: is a directory
https://www.facebook.com/4thmolar |
Hello
To try the cron job on your browser you must rename the .htaccess in the periodic folder as "_______.htaccess" or "old.htaccess.old" Without renaming this file you do not access to the cron. After renaiming the cron, run it in your browser abd you will get a white page or a 500 internal sever error
try with different browsers.
Fred
|
still m not able to set cron job..... so sumbdy tell me wat will happen if i dnt set it and leave it undone? https://www.facebook.com/4thmolar |
Are you sure the path is fourthmolar.com and not fourthmolar without with .com?
|
Are you on Shared, Dedicated or VPS hosting? |
sometimes the -q switch must be at the end.... it will work perfectly if you have correct paths...it must know where php is and know exactly what file to run and where it is.
1- *****
2- either usr/bin/php or usr/local/bin/php ask host "where is php located"
3-/srv/www/fourthmolar.com/public_html/periodic/cron.php
4- -q
* * * * * /usr/bin/php /srv/www/fourthmolar.com/public_html/periodic/cron.php -q
I have video tutorials to help you mrpowless.com |
came across an environment the other day on hostmonster where php5 was running on ramdisk, so the path to php was /ramdisk/php5
yeah that was a doozy.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
@chap, yes the path is fourthmolar.com and m using an unmanaged vps
@mrpowerless, k i'll try it agn
@dosdawg, ill go fr php5 too,
thanks to all
https://www.facebook.com/4thmolar |
I have lynux
I set my cron job to this
/home/username/public_html/mysite.com/periodic; /usr/lib/php -q -c /home/username/php.ini cron.php
when I check the emails i get this
/bin/sh: /home/username/public_html/mysite.com/periodic: No such file or directory
/bin/sh: /usr/lib/php: is a directory
can you guy tell me if my cron job is wrong or is set right
Thank's
Post Reply - if you going to help - No for - bla bla bla bla |
https://www.facebook.com/4thmolar |
What version of PHP are you running, Version 4 or 5? There are none so blind as those that will not see. |
Sorry for the blank post..
Now i set my cron as -
which php5 -q /srv/www/fourthmolar.com/public_html/periodic/cron.php
and getting this mail every minute..
/usr/bin/php5 /srv/www/fourthmolar.com/public_html/periodic/cron.php
-no error mail, so does it mean my cron is working good now??
How to set it for hourly and what will b its effects??
https://www.facebook.com/4thmolar |
Hi
I have
PHP Version 5.2.14
What version of PHP are you running, Version 4 or 5?
Post Reply - if you going to help - No for - bla bla bla bla |
@ ufo.. try the same wat i did
instead of givin the pata u just write there which php it will automatically find it
https://www.facebook.com/4thmolar |
can you send me your full cron job to see wat is the diferents
Thank's
@ ufo.. try the same wat i did
instead of givin the pata u just write there which php it will automatically find it
Post Reply - if you going to help - No for - bla bla bla bla |
which php5 -q /PATH/periodic/cron.php
https://www.facebook.com/4thmolar |
I set my to this
php5 -q /srv/www/mysite.com/public_html/periodic/cron.php
and I get this
Could not open input file: /srv/www/latincrib.net/public_html/periodic/cron.php
wat is srv and www for you
Post Reply - if you going to help - No for - bla bla bla bla |
@ ufo.... srv and www are same fr me.. pla try puttin 'which' before php5
it shud look like which php5 -q /srv/www/mysite.com/public_html/periodic/cron.php
also plz tell me how to sec cron to mail hourly and tell me its after effects
https://www.facebook.com/4thmolar |
km31337:/var/www/vhosts/***.de/httpdocs/periodic# php cron.php <font color="red">safe_mode is On, disable it</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
.km31337:/var/www/vhosts/****.de/httpdocs/periodic# php5 cron.php <font color="red">safe_mode is On, disable it</font> <br /> Please go to the <br /> <a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br />
But in php.ini the safe_mode = off in phpinfo() Master Value: safe_mode = off when i call the file with a browser, it runs.
--Germany-- Sorry for my bad english :P |
I am also having this email come through;
/var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 1: ?php: No such file or directory /var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 2: /00_asl_whitelist.conf: Permission denied /var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 3: anon_ftp: command not found /var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 4: anon_ftp: command not found /var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 5: anon_ftp: command not found /var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 6: syntax error near unexpected token `(' /var/www/vhosts/[website address.co.uk]/httpdocs/periodic/cron.php: line 6: `* copyright : (C) 2006 BoonEx Group'
I am not to sure what this does, let alone the permissions should be on the folder
Using a managed shared VPN
|
|
Error
Forbidden
You don't have permission to access /periodic/cron.php on this server.
<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.
Function allow_url_include is in the hosting is OFF
|