Hi
I'm having a problem with a PHP application on my DA box and I hope someone can help.
The script attempts to call curl using the exec function but gets a command not found error.
e.g.
;
Apache error log shows
sh: curl: command not found
Yes the server does have curl installed and I can call curl via SSH without any problems.
The site has open_basdir turned off.
I'm calling curl via the exec function instead of using PHP's built in curl functions so that it runs in a separate process that I can monitor to provide a progress bar to the user.
All of this works fine on my development machine (OS X) but not on my Direct Admin server (Debian)
Anyone have any ideas?
I'm having a problem with a PHP application on my DA box and I hope someone can help.
The script attempts to call curl using the exec function but gets a command not found error.
e.g.
Code:
$cmd = 'curl -s "http://www.someserver.com/script.php';
exec($cmd . " > /dev/null &")
Apache error log shows
sh: curl: command not found
Yes the server does have curl installed and I can call curl via SSH without any problems.
The site has open_basdir turned off.
I'm calling curl via the exec function instead of using PHP's built in curl functions so that it runs in a separate process that I can monitor to provide a progress bar to the user.
All of this works fine on my development machine (OS X) but not on my Direct Admin server (Debian)
Anyone have any ideas?