I'm trying to execute a php file using cron job(cPanel) with a parameter
/usr/bin/php -f /home/user/public_html/en/videos/includes/converter.php abc123
when I run "converter.php" through http/exec the mysql connection is working fine
but when I run with cron job, I'm getting this:
Can't connect to local MySQL server through socket
my question is: why when using php exec I'm being able to connect to the DB but when using the cron jobs I can't?