/usr/local/bin/curl returned error code 1

PPT

New member
Joined
Apr 28, 2022
Messages
2
Hi,

I install new version of directadmin on New VPS centos 7

But when connect FTP for restore user from FTP backup, it show: /usr/local/bin/curl returned error code 1

I read all guide on Google, i think new version chance backup from ncftp to curl.
Check ftp_upload.php guide but not solutions.

But still cant connect. can you help me how to fix this?

Thank so much
 
See if you have 2 curl binary's
Code:
whereis curl

should look like this
curl: /usr/bin/curl /usr/share/man/man1/curl.1.gz
not
like
curl: /usr/bin/curl /usr/local/bin/curl /usr/share/man/man1/curl.1.gz (or similar)

see this post as well

 
I think this is a permission bug/oversight introduced in a recent version of the setup.sh installation script, we've experienced the same issue with recent DA installs on Debian 11.

Try the following:

Code:
chmod 1777 /home/tmp

and see if it fixes your issue.
 
Thank for all support.

I try
whereis curl

and see:
curl: /usr/bin/curl /usr/local/bin/curl /usr/share/man/man1/curl.1.gz (or similar)

And I try

cd /usr/local/directadmin/custombuild
./build update
./build set curl no
./build remove_items

still error: /usr/bin/curl returned error code 1

I continue try:

chmod 1777 /home/tmp

And It working

Once again thank you very much, I'll record the journey, hope the people who come later will understand
 
Back
Top