Forum Moderators: phranque

Message Too Old, No Replies

Cpanel

uploading files and folders

         

henry007

10:42 am on May 20, 2025 (gmt 0)

Top Contributors Of The Month



From my CP I know that I may upload one file at a time, but I need to upload a full new site
How can I do it? aside doing it one file at a time
Thanks.

not2easy

11:06 am on May 20, 2025 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You can put all the files in a compressed zip or tar file to upload or use a FTP client, which is convenient and secure. Because files get updated, it is handy to use SFTP to replace files. There's an older discussion that covers the basics here: [webmasterworld.com...] or you could learn more on wikipedia: (About File Transfer Protocol) [en.wikipedia.org...] and there's also a wikipedia comparison page to help you find the right FTP client for your OS: [en.wikipedia.org...]

henry007

4:59 pm on May 20, 2025 (gmt 0)

Top Contributors Of The Month



not2easy, thanks, I like a lot the zip way, just did it, works fine.
I will look at the older discussion.

not2easy

5:11 pm on May 20, 2025 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



One thing to keep in mind, when you upload files to your server, they may all have default server permissions - or not - depends on how the hosting server is set up. One of the reasons I shared the wikipedia (About File Transfer Protocol) article, is because it helps to know about permissions for various files. You might want more secure server settings for files that should not be publicly available. Most FPT clients can show and allow changes to file permissions when necessary.

tangor

10:27 pm on May 20, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



FTP (SFTP) is very useful, targeted, and easy. Number of applications out there, find the one that suits you.

thecoalman

12:52 am on May 21, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I use the Cpanal file manger occasionally but just for quick edit or single file. As already suggested look into FTP programs, so much easier to use. You can even use them to schedule local backups, the nuts and bolts of that depends on the program. I use WinSCP, you can create custom script and trigger it with Windows task scheduler.

Quick PSA, Filezilla defaults to ASCII mode for files with no extensions. This will corrupt binary files. Every other FTP program I'm aware of defaults to binary when there is no extension which is safe for binary or ASCII. Another issue is if you have more that 10K files/directories in a single directory, this will affect any FTP client, Most servers are configured to only list 10K, even selecting the directory for download and you will only get 10K files. To be clear not 10K total files but a single directory with 10K files. Both of these issue can be avoided by using SFTP.

henry007

8:46 am on May 21, 2025 (gmt 0)

Top Contributors Of The Month



As you can see I try to get back on coding, many years since I did it, presently I just do it for myself no money involved, I rebrushed my PHP and MySQL, le rest needs to come along!
I opened a FTP account and will go with it
Thanks all.

not2easy

1:35 pm on May 21, 2025 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



An FTP account rather than a FTP client shares your passwords with the service rather than on your computer so I'd carefully research any FTP account provider for their security and privacy statements. A FTP client is as secure as your equipment.

thecoalman

2:01 pm on May 21, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The only FTP account you should need is the credentials used for logging into Cpanel. WinSCP can be downloaded free along with other FTP, programs. Setup should be straight forward, check hosts documentation for specifics.