• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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