• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Question php command line vs cron job

mikeca

New Pleskian
Hi there,

i set up a cron job in plesk(centos): php mysqli.php, it shows error" PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect()", but i run it at command line, it is working without any error message. Do you know what's wrong with it?

Thank you so much!.

Mike
 
Back
Top