Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 25-Mar-20 5:10am

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.
 
Share this answer
 
Start with one file:
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>
   Hello world!
  </body>
</html>
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!
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900