Hello, I could not find someone with the same problem. So I decided to open this post.
I have the following scenario:
- The client inserts a domain into the system;
- The account is created in cPanel;
- The system copies some files from another account on the server, and via FTP pastes the files into the /public_html/ folder of the created account.
== I have the error log below, even when the script works 100%. ==
== This is the line that makes the connection: ==
Can anyone help?
I have the following scenario:
- The client inserts a domain into the system;
- The account is created in cPanel;
- The system copies some files from another account on the server, and via FTP pastes the files into the /public_html/ folder of the created account.
== I have the error log below, even when the script works 100%. ==
Warning: ftp_login(): Login authentication failed in /home/xxxxxxxx/public_html/central/0000000/controllers/clientes-controller.php on line 10127
There was a problem while creating public_html/integracoes
Warning: ftp_put(): You aren't logged in in <b>/home/xxxxxxxx/public_html/central/0000000/controllers/clientes-controller.php on line 10135
There was a problem while uploading /home/xxxxxxxx/public_html/central/0000000/front/index.php
Warning: ftp_put(): You aren't logged in in <b>/home/xxxxxxxx/public_html/central/0000000/controllers/clientes-controller.php on line 10140
There was a problem while uploading /home/xxxxxxxx/public_html/central/0000000/front/.htaccess
Warning: ftp_put(): You aren't logged in in <b>/home/xxxxxxxx/public_html/central/0000000/controllers/clientes-controller.php on line 10145
There was a problem while uploading /home/xxxxxxxx/public_html/central/0000000/front/integracoes/.htaccess
== This is the line that makes the connection: ==
I have already done several procedures on the server, based on similar problems and could not resolve.$login_result = ftp_login($conn_id, $user, $senha);
Can anyone help?