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

هل استفدت من هذا الجواب؟

 أطبع هذا المقال

اقرأ أيضا

File Server Setup With Nginx...how do I choose the config for the server?

Posted by azn_romeo_4u, 04-22-2009, 02:03 PMSo I just want to use a server for file sharing, it...

URL Rewriting not working

Posted by ashras99, 03-11-2010, 01:41 PMOn my apache server. My dynamic page url is like this.....

How to perform an FSCK

Posted by mark1hos, 09-16-2007, 02:52 PMHi guys, we've got our server hooked up to a KVM, as the...

antivirus.exim

Posted by its_joy, 03-29-2008, 07:20 AMhi, i have installed antivirus.exim on server but if...

Scheduling Software

Posted by raulgonzalez, 01-15-2008, 07:30 PMHello, Does anyone know of an opensource software...