PDA

View Full Version : Cronjob


annu
12-09-2006, 11:58 PM
Hello,

i have a problem with my check.php with webmin !!!

i have :
Fatal error: Call to undefined function mysql_connect() in /var/www/virtual/youpinet.com/htdocs/classes/DirDb.php on line 35

i added #!/usr/bin/php in my firs line of check.php

can you help me to resolve this problem

NB : the file check.php is OK, if i excecute in direct mode

Thank
Eric

Sergey Ten
12-10-2006, 03:10 PM
Hi, Eric!

Please read the article
http://www.esyndicat.com/support/desk/knowledgebase/view/3.html

annu
12-10-2006, 04:29 PM
Hi, segey!

i read the article but i don't explain my problem with webmin :(
if a user have find how do with webmin, please help me to resolve my problem

Thanx
Eric

annu
12-11-2006, 01:39 PM
I have try with the full path to php but :(

Sortie de la commande /usr/bin/php /var/www/virtual/youpinet.com/htdocs/cron/check.php ..

Fatal error: Call to undefined function mysql_connect() in /var/www/virtual/youpinet.com/htdocs/classes/DirDb.php on line 35

so, i want always some help ...

Thanx
Eric

John Turner
12-15-2006, 10:49 AM
Hi Eric,

There is not necessary to add code to check.php, you need to setup your cron tabs.
Try this
/usr/bin/php -f /var/www/virtual/youpinet.com/htdocs/cron/check.php
in your Cron Settings via Webmin.

Hope it helps.

annu
12-15-2006, 05:14 PM
Hi John,

i have try what you said but i have always :
Sortie de la commande /usr/bin/php -f /var/www/virtual/youpinet.com/htdocs/cron/check.php ..

Fatal error: Call to undefined function mysql_connect() in /var/www/virtual/youpinet.com/htdocs/classes/DirDb.php on line 35

i come see the config appache, because it's perhaps the cause ?

Thank to your help

i come back you said the result after correct this problem ...

Eric