I have a problem with curl when I upload images using a script via ftp and curl.

The error I get is this:

Failed starting the upload. For FTP, the server typically denied the STOR command. The error buffer usually contains the server's explanation for this. (This error code was formerly known as CURLE_FTP_COULDNT_STOR_FILE.)

In the kernel logs the error I see is:

[ERROR] Can not open that file: Permission denied
[ERROR] Rename / move failure: No such file or directory

Curl is compiled into PHP, the binary has 755 permissions in /usr/bin/curl and via php info I see that the library is loaded.

I don't know if I need to compile something more with easyapache in order to enable support for "curl-ftp" or is another problem.

Do you have any idea?

Thanks in advance!