LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-12-2012, 02:55 AM   #1
hemanthm17
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Rep: Reputation: 0
where to upload index.html file


Hi all,
I am newbie to web programming and architecture ,recently i got a domain name and the hodting server is linux .All i need is when i enter my webaddress i need to display my index.html pages but when i get default index.html page provided by hosting server saying "website is under construction" .So inorder to display my custom index.html page when i enter my webaddress where should i upload my custom index.html page(i just want to upload single page ,i dont want to install any app)
 
Old 06-12-2012, 03:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well the default documentroot on most apache servers is /var/www/html but you've not provided any information about how the system is configured, and whatever form of hosting you've purchased could do things in all manner of different ways. Safest bet is to ask them / read the docs they must have already written for people in your situation.
 
Old 06-12-2012, 10:06 AM   #3
Mubinali
LQ Newbie
 
Registered: Mar 2012
Posts: 9

Rep: Reputation: Disabled
Hey,

As Chris rightly mentioned, the path is /var/www/html. Most providers have public_html, document root and www as options when you click on File Manager in Cpanel Interface (I am assuming this as Cpanel is defacto for linux hosting. Now, all you need to do is remove the default page that came in your hosting panel and upload your custom index.html page.
 
Old 06-12-2012, 10:43 AM   #4
rockstar05
Member
 
Registered: Dec 2011
Posts: 42

Rep: Reputation: Disabled
Hi,

Please check that your website is well configured as and save in proper location of document root i.e. /var/www/html/ and also see the IP address metioned in configuration file.
 
Old 06-13-2012, 01:16 AM   #5
me_spearhead
Member
 
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 55

Rep: Reputation: 15
Hi,

Just to add, be careful with case in file names. Linux is case sensitive. index.html and Index.html are both different files. This is common mistake for :

Quote:
error 404 page not found
Check Directory Index option for the same in config file.
 
Old 06-13-2012, 09:41 AM   #6
hemanthm17
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hemanthm17 View Post
Hi all,
I am newbie to web programming and architecture ,recently i got a domain name and the hodting server is linux .All i need is when i enter my webaddress i need to display my index.html pages but when i get default index.html page provided by hosting server saying "website is under construction" .So inorder to display my custom index.html page when i enter my webaddress where should i upload my custom index.html page(i just want to upload single page ,i dont want to install any app)
FYI i got AN ERROR "550 Security server forbids that action on this file"
 
Old 06-13-2012, 11:55 AM   #7
Mubinali
LQ Newbie
 
Registered: Mar 2012
Posts: 9

Rep: Reputation: Disabled
@hemanthm17

we need to know the action that you were trying to perform post which you got this error. By just knowing the error, its difficult to help you.
 
Old 06-13-2012, 10:48 PM   #8
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,235

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
This really does sound like a question for your hosting provider.

You don't need to know what the typical Linux server configuration may happen to be. You need to know how your hosting provider has configured its Linux server. You should get better answers by contacting them or by checking their knowledge base.
 
  


Reply

Tags
dir, ftp, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to create index.html file seashell11 Programming 4 09-25-2010 11:25 AM
Apache 1.3.34 Server on Kubuntu - index.html file permissions? lefty.crupps Linux - Networking 0 09-07-2006 10:59 AM
Apache problem - cannot get index.html file to show nebloof Linux - Software 3 01-15-2005 11:32 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM
Apache 2.0 search for index.html file pawlub Linux - Software 2 10-28-2003 11:03 AM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration