Q. Can the user use FTP as an off server back up?
A: The Company does not recommend it, as it can be considered a “file dump” which is against the company TOS.
Q. What is file dumping?
A: A large number of files transferred from one place to another, without any particular organization, as in copying media or backup files from the computer to company server.
Q. What are Common FTP Socket Errors?
A: A socket defined as one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data destined to send. Normally an FTP server runs on a specific machine and has a socket that is set to a specific port number. The server mainly waits and listens to the socket for a client to make a connection request. The client makes a connection request by trying to meet with the server on the server’s machine and port. If everything goes well, the server accepts the connection. Upon acceptance, the server gets a new socket bound to the same port. It needs a new socket so that it can continue to listen to the original socket for connection requests from other clients while tending to the needs of the currently connected client. On the client side, if the connection is accepted, a socket successfully created and the client can use the socket to communicate with the server. The client and server can now communicate by writing to or reading from their sockets.
A socket error can occur if one or more of the above conditions, not met or something is blocking communication between the client and server (e.g. firewall, anti-virus). Additionally, a client connection can already establish with a server when a socket error occurs such as in cases when the network connection goes down or the host that the client connects to suddenly crashes or reboots.
Common FTP Socket Error Codes
* 11001 – Host not found.
* Check that the hostname or IP address has entered correctly.
* 11004 – Valid name; no data record is available of requested type.
* This error generally indicates that the specified FTP server name is incorrect or not specified. Try entering the hostname or IP address, not a URL (e.g. if ftp://server.domain.com/ is entered, then change it to the shared ip address). Another possibility is that connection is blocked by a firewall. Try temporarily turning off the Windows firewall or any other software firewall the user are running.
* 10061 – Connection refused.
* The hostname is correct, but the FTP server is not listening on the port, there is no FTP server running, or a firewall is blocking the connection.
* 10093 – Connection failed.
* This can happen when the network connection goes down, e.g. the FTP server no longer connected to the network.
* 10039 – Destination address required.
* There may be a problem getting the IP address for the hostname. If the user has entered an IP Address, try entering a server and domain name instead (e.g. server.domain.com). Another possibility is that connection blocked by a firewall. Try temporarily turning off any firewall the user are running.
* 10052 – Network dropped connection on reset.
* The host the users connected to crashed and rebooted. Try reconnecting later.
* 10054 – Connection reset by peer
* An existing connection forcibly closed by the remote host. This normally results if the peer application on the remote host suddenly stopped, the host is rebooted or the remote network was somehow disabled.
* 10022 – Invalid argument
* In some instances, it also refers to the current state of the socket (e.g. socket is not listening). In addition, a firewall running on the host or client machine can be blocking transmission.
Along with the errors listed above, several other socket errors can possibly occur.
Window Sockets Error Codes
Additionally, if the user is encountering any FTP related issues, we strongly suggest that the user test the transmission with other FTP clients. This is a good method in determining the root of the problem. Keep in mind that when the user are having similar problematic behavior in multiple clients against the same server, it is more than likely a server problem, and needs a support ticket.
Q. What does Composer publishing mean ?
A: Here are the basic settings that work for the company customers.
* On the settings tab:
o Site name = whatever the user want
o Publish address = ftp://ftp.domain.com/
o HTTP address of the client homepage = http://domain.com/
o Login Information = the client cPanel or FTP username and password
* On The publishing tab:
o Page Title = Shows up in the top of the browser
o Filename = index.html (or whatever name the user desire)
o Site subdirectory for this page = /public_html/
o Leave all other settings as they are.
Q. How does the user control FTP sessions?
A: There is an icon in cPanel called “FTP Session Control”, but this feature only works with ProFTPd. All of the HostGator servers run ProFTPd. The only way the user can terminate FTP connections is to have jailshell enabled, then use ‘ps’ to list the processes and ‘kill’ to kill the ftpd processes.
ps afux |grep ftpd
…
kill ####
Be sure to replace #### with the actual PID the user get.
Q. How does the user create an FTP account?
A: An FTP account is used to upload and manage files on the user web site. By default, an ftp account is created automatically when the user sign up for hosting, create an addon domain or create an account for a user. The user can give different people access to modify certain files and not others by giving permissions to only edit or access a particular directory. The user must create an FTP account for the user to do so.
To create an FTP account, please do the following:
1. Login to cPanel and go to the Files section.
2. Optional step: If the user are using the X theme, click FTP Manager
3. Click FTP Accounts
4. Click Add FTP Account
5. To the right of “Login:” Type the name of the ftp user. Please note, the full ftp user name will be “user@primarydomain.tld”. Remember, when the user creates an FTP account for an Addon domain or Sub domain, it will have a username with @userdomain.com at the end. The user cannot create an FTP account without having the client domain name in it, regardless of the publish destination.
6. To the right of “Password:” Please provide a password that will use to access this ftp account.
7. To the right of “Quota“, please provide the amount of space the user would like the user to have. Please note, if the user leave at unlimited, the user will have ability to only use up to the total amount of space for its account.
8. To the right of “Director/home/user/public_html“, please provide a directory for which the user would like the user to access to. If the user leaves it blank, the user will have access to full “Public_HTML” directory.
9. Click Create, the user have now just set up an FTP account. Please note that the user may not create an FTP account that will have access to its home directory. This means that the most access the user can give to an FTP account that the user creates is access to the public_html. Only the cPanel user name, when used for FTP purposes, will have access to anything inside the home folder. (The home folder contains the public_html folder.)
Q. How does the user set up an anonymous FTP message?
A: An anonymous FTP message displayed when an anonymous FTP user connects to an FTP account. This is usually good to inform users regarding new, updates, and copyright. To set up an anonymous FTP message, please do the following:
1. Click on the Ftp Manager
2. Click on the Anonymous FTP Message
3. Enter the message that the user wants visitors to see in the text area. This created as a welcome.msg text file.
4. Click on the Save Message button.
The user has now just created an anonymous FTP message.