Question

How to upload the file to your root directory? (From Exoclick)

Posted September 6, 2020 196 views
WordPressDigitalOceanUbuntu 20.04

Hello everyone! I am trying to verify my site on Exoclick.com,

I have an HTML that I need to upload to the root directory.

The directions were this:

“1. Download this file: (unique code with .html at the end)

  1. Upload the file to your root directory: https://example.com Confirm the upload was successful by visiting this link:
  2. https://sample.com/uniquecodewith.html Click Verify Now.”

I am trying to crack this. I have been trying all day, I want to know what I do on the console to upload the file to the host.

Please help! I am using Apache and Ubuntu 20.04

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi,

1. Copy a link location from this line of ExoClick’s guide: Download this file: (unique code with .html at the end).

2. Sign in to your DO control panel, and launch console to access your droplet. Log into the system with the user that you usually use for modifying your website content.

3. Change directory to your website root directory. Here is an example with default Apache’s website root directory

cd /var/www/html

4. Download the file

curl copied_link_location_in_step_1 > uniquecodewith.html  

Let us know how it went, please.

Submit an Answer