Answer the question
In order to leave comments, you need to log in
Why are files not uploaded to Ftp via PHP on a VPS server?
Such a situation, the script located on the VPS server does not upload files to FTP using php.
Works on shared hosting, works on localhost too. As I transfer to vps (and it doesn’t matter under Linux vps or under Windows), it completely refuses to upload files to ftp. All ports are open, firewall is disabled. Tried passive boot mode - doesn't work either. (ftp client from this server connects only through passive mode)
I tried to install another hosting provider on vps - the same thing.
I put another script, it does not work either. And the download does not work, the download works fine.
Here is the error. Please help me, I don't know what to do
[Error Msg] => ftp_nb_put() [ function.ftp-nb-put]: Can't open data connection.
[File] => C:\Server\domains\demo.file-load.ru\core\includes\uploader.class.php
[Line Number] => 849
[Error Type] => E_WARNING
Answer the question
In order to leave comments, you need to log in
Do you have write permissions to the folder? Are there any problems when using the desktop ftp client?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question