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

Var dette svaret til hjelp?

 Print

Les også disse

Free host sites.

Posted by abbas, 09-17-2001, 06:01 AMHi. I want to start a free host site similar to...

MySQL SELECT using WHERE and OR

Posted by HostRefugee-Vince, 03-23-2007, 08:47 PMHi, The following SELECT statement is giving...

Call Script that Deletes Logs after Stats Run Manually?

Posted by thewird, 01-15-2008, 02:04 AMI'm trying to create a script to archive logs for 7 days...

Exchange Replication?

Posted by regmac01, 09-16-2007, 12:19 AMWhat would be the best way to replicate two exchange...

Changing File ext. to File

Posted by haleyhosting_com, 03-24-2007, 01:31 PMi have a site upithere.com . its a pretty popular...