• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

sh: /mysqldump: No such file or directory

E

Estores

Guest
We have a php backup script which runs the following command (password removed):

exec('/usr/bin/mysqldump -hlocalhost -u db_user -p********** db_galleyfm | gzip >
/var/www/vhosts/somedomain.com/httpdocs/control/backups/backup_tue.sql.gz');

This script runs without error when run via a url, and the command works ok in Putty via SSH, but gives the following error in an automated email when run via a cron:
sh: /mysqldump: No such file or directory

This is on a dedicated server with Parellels Plesk 9.0.1.

Any advice please? The provider is not willing to assist.
 
Please, make sure that task is configured to be ran under root and path to mysqldump is really valid.
 
Back
Top