Editting the default web page using SSH

Posted by MrDGOrman, 03-09-2010, 09:44 AM
This might be in the wrong section - if so, ma bad. Anyhow, I've just got my first VPS and wanted to change the default IP address page, the "Default Web Site Page", if you get my drift. I've been told that this needs to be done via SSH, so I looked into it. I've got nowhere. I've tried adding a index file to public_html and /usr/local/apache/htdocs - all via SSH, and its made no effect on the default page. Would really appriciate some help on this, points in the right direction etc as google is doing no favours for me. Thanks

Posted by MrDGOrman, 03-09-2010, 11:21 AM
Bumped to raise awareness

Posted by apsivam, 03-09-2010, 11:29 AM
What distro your VPS is running? Is Apache installed using Distro's package management or custom build (cpanel, etc.)?

Posted by MrDGOrman, 03-09-2010, 11:43 AM
Sorry but I'm new with all this, so I dont really understand what you mean when you say distro, sorry This is the specs of my VPS if that helps: VPS #1 (Virtual Private Server) - vePortal (03/07/2010 - 04/06/2010) OS Template: CentOS 5 - 32-BIT Control Panel: CPanel/WHM - Unlimited Domains - (CentOS/Fedora) Its the first VPS at BurstNET, with cpanel/whm as a extra. Sorry if this is a stupid answer aha

Posted by apsivam, 03-09-2010, 11:52 AM
OK. Your distro (or properly called Linux Distribution) is CentOS and you are running custom build Apache (with cpanel). In this case, creating a (or editing an existing) file in /usr/local/apache/htdocs with name index.html should work.

Posted by MrDGOrman, 03-09-2010, 12:21 PM
Does it have to be index.html ye? or can it be .php?

Posted by apsivam, 03-09-2010, 12:27 PM
if you want a simple HTML file, name it index.html or you want to use PHP, name it index.php

Posted by MrDGOrman, 03-09-2010, 12:40 PM
Done. Thank you very much! This thread can be closed by a moderate if needs be

Hasznosnak találta ezt a választ?

 Kinyomtatja ezt a cikket

Olvassa el is

constantly blocked on pop3

Posted by Calibaba, 09-14-2007, 05:50 PMI just setup a new pop account in Outlook 2007 and...

PERM_FAILURE: SMTP Error (state 14)

Posted by Fahd, 03-29-2008, 05:42 PMMy mailserver has stopped accepting mail from all non-local...

iFrame keeps opening a new windows onlick

Posted by bambinou, 11-06-2012, 11:29 AMHello, I am totally lost with this one. I have an...

Domain parking with Win2k3 DNS??

Posted by bloodsport, 08-03-2007, 09:47 AMHi, i have about 8 different domains i'd like to point...

Need Shell script to add prefix to multiple files' name.

Posted by viettechorg, 03-25-2007, 02:09 PMHello, Does anyone know any of the shell script(or...