Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Sharing a Website Upload the Website

Jiten Mehta
Jiten Mehta
3,752 Points

Server issue, please help!!

Hello People!!

I have followed Nicks video on how to upload a website through Cyberduck, the first time i tried this to do i had no issue at all.

I then changed some things around, and I added a few images. Cyberduck successfully re-uploaded the new html and css files onto the server but my website has now become non-existent.

This is the message i get when i try to go on my website: Not Found

The requested URL / was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.24 (Unix) mod_hive/3.6 mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.6 Server at jitenmehta.com Port 80.

Im not sure what i've done, but i think i may have deleted some folders that where there the first time i uploaded my website.

Help would be appreciated. Thanks.

3 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Hi,

You only really need the folder containing your website on the server, so as long as you have that and your index.html and all your other files and folders are in that you should be fine.

You have to point the server to your website folder, I'm not sure how that is done with your host, but look for an part called Domain management or something similar.
In there you should see your domain name (if you bought the hosting package and domain name in the same deal).
Once you see your domain name you should see some sort of option to select a path to your website folder, once you have set the path to that folder your host will know where your website is stored and will be able to display it when someone types your domain name.

Hope this helps.

Hi Jiten, are you sure you have the files in either public_html, www, html, etc., folders? Are you using shared hosting or cloud / VPS? If you could provide who's the host, that would be helpful as well.

Jiten Mehta
Jiten Mehta
3,752 Points

Hi Dustin thanks for the quick response.

Im using webhostingforstudents which is shared hosting i think.

I cannot see the public_html or www folders in Cyberduck. I probably did delete them by accident. Is it possible to re-create the folders? will that work? I created a separate folder called www and put my html and css files inside of that but it did not work, as i expected.

Are these folders necessary?

Thanks.

Wayne Priestley
Wayne Priestley
19,579 Points

You can recreate these folders by simply selecting new folder from the menubar and renaming them, as you do on your computer.

Jiten, you shouldn't have permissions to delete those folders. Try refreshing the directory or logging in again.

Jiten Mehta
Jiten Mehta
3,752 Points

Hey guys i figured out the issue. You have to create a new www or public_html folder but you have to make them symbolic links. You can tell whether or not they are symbolic by a little arrow on the left hand side of the folder. You just have to right - click on a new created folder and go to make symbolic link, and then put all your files inside of there.

Thanks to Dustin and Wayne, both were helpful and responded very quickly.

Cheers :).