Uploading File on DigitalOcean Server - server

I have created a SUbdomain in DegitalOcean Server. Now I need to upload a file on my Server and merge this file with a Subdomain. What should I do?
I need every single detail.

Related

Whm create cpanel user and access web without domain

i am new in web developmen. usually i use cpanel n hosting but now i try to use dedicated webserver with WHM.
I just create new cpanel user from WHM. And the new user using dummy domain so i can login to cpanel and create database, upload files etc. the problem is i dont have domain yet, is possible to run my web application without domain?
Thx
This is possible. What you would need to do is add the following to the bottom of your hosts file and then load the site from either a new browser or chrome incognito tab so that you are not displayed cached results from a site you have previously visited.
Hosts File Location: C:\Windows\System32\drivers\etc
x.x.x.x mydomain.com
Please note, you will need to replace the X's with the public IP that your domain is set to load from. Once you have done this you should now be able to load your site with the content you have placed in it's directory on your webserver.

SFTP file transfer in GWT

I want to do SFTP file transfer in GWT.
I have file upload page on click SUBMIT button, the uploaded file has to be transfered. how to perform this in GWT?
You cannot perform a FTP file transfer through a web browser.
With GWT, you can send a file to your server with a FileUpload widget (http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FileUpload.html).
Edit:
You have to do this in two steps :
Send your file to your server through a form (FileUpload).
Send this file from your HTTP server to your FTP server (how to transfer a file through SFTP in java?).

Transfer files from Google Drive to Cluster account

The google API is confusing me. I have no idea how to approach this problem.
I have 62GB of data on a google drive account. I want it transferred to my server cluster account. How can I do this without downloading the data to my local device and uploading it to a server; cut out the middle man?
I know perl but the perl module for google drive api is ambiguous at best.
Google Drive server cannot actively upload file to your server. Your server should have authorized Drive API to download from Google Drive. To rephrase, you can't "upload" from Drive to remote server. You should "download" from Drive to remote server.
To do this, you need to authenticate your web application. Then, you can select file and retrieve fileId of the file you want to download to remote server. Then, you send this fileId to your remote server with, for example, simple HTTP request. Your server will then trigger download of the file from Drive.

Serving large file with zend framework thats connected to another sftp server

I'm using the phpseclib for secure ssh and ftp access. My site is on a webserver, that connects to a different backup server and displays the files and folders, imagine a frontend for a backup on several different servers.
Now I would like them to be able to download a file, but I can't think of a better method than temporarily store the file on the front webserver.
I looked at the phpseclib docs and didn't see a great way to transfer a file from one of the backup servers to the frontend server to a client in a fast efficient way without having to fully copy the file from backup server to frontend server before passing it to the client.
Using cURL you can use one of its callback functions to serve a download to the client simultaneously while the file is being downloaded from the backup server by cURL. cURL will support ssh and sftp. This way, you don't have to have the frontend fully download the file from the backup before being able to send it to the client.
I have shown a similar example of this using the FTP protocol in this answer: Streaming a file fromFTP and letting user to download it at the same time
Feel free to ask for more help if you have any questions implementing this solution with SSH and your system.

redirect root domain name to amazon s3

My domain is rather long. I need to use it without www.
All the info I find on the net is about cnames.
How do I redirect the whole domain to an amazon s3 bucket, not only a subdomain?
Amazon recently announced support for root domain hosting via S3. The instructions for setting this up can be found here. Note that you will have to setup two buckets to accomplish this, and that you will have to use Route 53 for your DNS hosting.
Try wwwizer
What you need to do is to create a cname www pointing to your s3 bucket url (bucket name will need to match) and then create an A record to the ip given by wwwizer.
Another way is to use a url redirecting service or use a free web host (like godaddy's ad supported hosting) and on the index file issue a redirect to www.yourdomain.com.
There might be other solutions that rely on finding out the ips of the amazon s3 front end servers but they are error prone.