E
Effektor
Guest
Hey ppl,
I'm not able to solve following problem.
If I add a cronjob as root for example:
*/15 * * * * /usr/bin/php /home/www/vhosts/DOMAIN/httpdocs/script.php
anything is ok.
If I add a cronjob as a normal user which was added by using Plesk for example the user of DOMAIN:
*/15 * * * * /usr/bin/php /home/www/vhosts/DOMAIN/httpdocs/script.php
I get back an error like:
Fatal error: Call to undefined function: mysql_connect() in /home/www/vhosts/DOMAIN/httpdocs/inc/mysql.inc.php on line 22
I already test it directly at the shell anything is ok.
I added #! /usr/bin/php in each script, doesn't solve the problem.
I added -f at the cronjob, doesn't solve the problem.
Anyone can tell me whats wrong?
I'm not able to solve following problem.
If I add a cronjob as root for example:
*/15 * * * * /usr/bin/php /home/www/vhosts/DOMAIN/httpdocs/script.php
anything is ok.
If I add a cronjob as a normal user which was added by using Plesk for example the user of DOMAIN:
*/15 * * * * /usr/bin/php /home/www/vhosts/DOMAIN/httpdocs/script.php
I get back an error like:
Fatal error: Call to undefined function: mysql_connect() in /home/www/vhosts/DOMAIN/httpdocs/inc/mysql.inc.php on line 22
I already test it directly at the shell anything is ok.
I added #! /usr/bin/php in each script, doesn't solve the problem.
I added -f at the cronjob, doesn't solve the problem.
Anyone can tell me whats wrong?