Skip to main content

FTP not connection at script level

Comments

3 comments

  • durangod
    OK so i ran a script to test the connection at site level in the same folder.. and it came back as this [QUOTE] PHP Warning: ftp_login(): Please reconnect using TLS security mechanisms. in /home/username/public_html/subsite/testcon.php on line 48
    never seen that before... so then i did the connection using this format adding ftpes:// host : ftpes://domain.com
    and i get this [QUOTE] PHP Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known
    this is that line $con = ftp_connect($host, $port, $timeout);
    0
  • durangod
    GOT IT !!! in WHM under ftp server config i changed the TLS encryption support to optional. And using the main cpanel user i can use the ftp at site level. However, if i create a new ftp account, even when i assign them to the public_html, it comes back and tells me they dont have permission to change files. So how do i fix that part? for example if i created a ftp account for ftptest@example.com how do i give ftptest permission to update files? I checked who owned the files and its the domain username and not root... i always thought if the owner was the domain username that any ftp created under their umbrella also had write privileges. Is that not true?
    0
  • cPanelMichael
    However, if i create a new ftp account, even when i assign them to the public_html, it comes back and tells me they dont have permission to change files. So how do i fix that part? for example if i created a ftp account for ftptest@example.com how do i give ftptest permission to update files? I checked who owned the files and its the domain username and not root... i always thought if the owner was the domain username that any ftp created under their umbrella also had write privileges. Is that not true?

    Hello, Are you sure you are accessing the directory that's assigned to the FTP account, or a subdirectory beneath it? Are you attempting to download/upload files when you receive that error message, or change the permissions of the files? Thank you.
    0

Please sign in to leave a comment.