PHP error | Dolibarr backup

Hello ,

I have a Doliibar installed in a ubuntu server under a subdomain. When I’m trying to create a backup i get the following error :

Error : Failed to run external command. Check it is available and runnable by your PHP server. If PHP Safe Mode is enabled, check that command is inside a directory defined by parameter safe_mode_exec_dir .

I think the problem is with the Full path to mysqldump command. I don’t know what to insert there.
Also i tried to turn off the safe mode of PHP with no luck.

Thank you in advance.

Hi,

You should install it : mysqldump is part of the package mysql-client and can be installed with:

sudo apt-get install mysql-client

Usually the path is /usr/bin/mysqldump

Or use PHP dump image

2 Likes

Hi and thank you for the quick response! :slightly_smiling_face:
I run the command and also i added the path
/usr/bin/mysqldump
into the Full path to mysqldump command and it worked like a charm!

Many thanks again!

2 Likes

Hello All.
I’ve had the sampe problem using Windows setup:
Errore : Impossibile eseguire il comando esterno. Controlla che sia disponibile ed eseguibile dal server PHP. Se la modalità safe_mode</ b> è abilitata in PHP, verificare che il comando sia all’interno di una directory ammessa dal parametro safe_mode_exec_dir</ b>
May you help me?
Thanks in advance