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

Cette réponse était-elle pertinente?

 Imprimer cet article

Consultez aussi

picture editing for members

Posted by rumrunner439, 09-22-2008, 02:10 PMok i was wanting to add a photo editor like inkscape...

Lots of dedicated server problems.

Posted by erix920, 05-07-2007, 08:26 PMOur current problem is that when we try to start sshd...

order and login issues

Posted by zomby, 03-21-2007, 11:40 PMHi everyone, I have installed plesk as control panel for...

Joomla HELP!

Posted by Snitz, 09-15-2008, 12:33 PMI'm having a weird problem here. I'm using MusicBox 2.0...

Connection Partially Encrypted

Posted by letnes, 09-16-2008, 11:03 PMI get the Connection Partially Encrypted message when I...