Click here to Skip to main content
14,494,314 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have access to my root folder in my cpanel but it is empty. Is there not some example website I can download and then upload to my cpanel to make it say hello world with some headers and hyperlinks in order to get my file system laid out?

What I have tried:

I have tried uploading random text files and html files to see if they would display when I navigated to my site but it just says ERORR 404
Updated 25-Mar-20 5:10am
Rate this:
Please Sign up or sign in to vote.

Solution 1

You cannot just copy random files and expect them to work. You need to build an actual web application and install it correctly. There are many samples that you can find on the internet using ASP.NET, PHP etc.
Rate this:
Please Sign up or sign in to vote.

Solution 2

Start with one file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="generator" content="PSPad editor,">
   Hello world!
Save it as index.html and copy it to the root of your website.
Now when you access the domain, it'll write "Hello world!".
That's all it'll do, but it'll do that.

But HTML is a minor part of a site - it's effectively the "transport mechanism" that copies what you want to say to the client who wants to see it. To do anything interactive (i.e. not totally dull and boring) at all, you are going to need front and back end code: HTML and Javascript for the browser to display, and something like C# , VB, or PHP code running on your server to generate the HTML and provide interaction.

This is a big subject - and you need to look at what your hosting service will provide before you go any further!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100