Co-Lo server & Webhosting?

Soldato
Joined
14 Apr 2003
Posts
5,716
Location
Leicester
Hi all,

I currently have a Co-Lo server (unmanaged) and I would like to transfer my sites onto it, now to be honest I do not have a clue how to do it. I have a web server set up, PHP, MySQL etc. but I cannot get Proftpd to add a directory where I can login and FTP the data, but it wont shift from /usr/home/ (I think) it so I have to do it manually using WEBMIN which takes ages.

I would like the domain to be pointing to the server too (DNS?) but again I am a little lost with this. I have successfully set-up a game server on it, which was my main concern, but now I would like my websites on it.

Just wondering if anyone could help me out?


This would be only for my websites and not selling hosting!

:)

TIA

-Binks
 
Firstly do you have ssh access to the old server? /usr/home seems a bit of a strange location, but I would just tar up your sites into an archive then move them to a location in which proftpd can access (usually your home directory). If you do have access to the proftpd config you could change the ftp root to include your site directory temporarily.

The second point is do you have your own nameserver? Or do you use a 3rd party name server? If you have your own nameserver its just a case of updating the configs and waiting for the change to propagate upstream. If you do not have your own nameserver you need to get who ever runs it to update their dns records...
 
Last edited:
Firstly do you have ssh access to the old server? /usr/home seems a bit of a strange location, but I would just tar up your sites into an archive then move them to a location in which proftpd can access (usually your home directory). If you do have access to the proftpd config you could change the ftp root to include your site directory temporarily.

The second point is do you have your own nameserver? Or do you use a 3rd party name server? If you have your own nameserver its just a case of updating the configs and waiting for the change to propagate upstream. If you do not have your own nameserver you need to get who ever runs it to update their dns records...

My sites currently using the hosts name server, which I would like to use my own once I figure out how to set it up.

Sorry its pointing to /home/binks

I only have SSH to the new server. Backing up and transferring the sites is no problem, its just the initial set-up with the FTP and DNS issues :(
 
My sites currently using the hosts name server, which I would like to use my own once I figure out how to set it up.

Sorry its pointing to /home/binks

I only have SSH to the new server. Backing up and transferring the sites is no problem, its just the initial set-up with the FTP and DNS issues :(

If you want to run your own dns server I suggest looking into Bind (http://www.isc.org/index.pl?/sw/bind/index.php) or Djbdns (http://cr.yp.to/djbdns.html). There are plenty of howto's/tutorials out there for setting them up but its not a trivial task.

It is easier letting your hosting provider handle your DNS for you though if you don't want to set-up a name server...
They basically need to update their records so that it points as your server.
 
If you want to run your own dns server I suggest looking into Bind (http://www.isc.org/index.pl?/sw/bind/index.php) or Djbdns (http://cr.yp.to/djbdns.html). There are plenty of howto's/tutorials out there for setting them up but its not a trivial task.

It is easier letting your hosting provider handle your DNS for you though if you don't want to set-up a name server...
They basically need to update their records so that it points as your server.

I only have 1 IP address so it looks like self hosted DNS is out of the question :(

I shall have a look at 123-reg control panel :)
 
Control panels are fine if they have the functionality you are looking for. Its worth learning how to use the CLI for admin especially if you have your own server.

It seems to have enough for me along with SSH. I need to find a dedicated web hosting control panel I feel though (Like cpanel?)
 
I am currently trying Virtualmin ...

Setting up Sendmail and I am getting errors, google is proving to be useless at finding it :(

Here's the DEFAULT script it wont let me enable:

Code:
divert(-1)dnl
#-----------------------------------------------------------------------------
# $Sendmail: debproto.mc,v 8.13.8 2006-09-30 07:18:48 cowboy Exp $
#
# Copyright (c) 1998-2005 Richard Nelson.  All Rights Reserved.
#
# cf/debian/sendmail.mc.  Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.13.8
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
#	file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the following:
#	* `sendmailconfig` 
#	* `make`
#	* `m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf`
# The first two options are preferred as they will also update other files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#-----------------------------------------------------------------------------
divert(0)dnl
#
#   Copyright (c) 1998-2005 Richard Nelson.  All Rights Reserved.
#
#  This file is used to configure Sendmail for use with Debian systems.
#
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.8-2 2006-09-30 07:18:48 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
undefine(`confHOST_STATUS_DIRECTORY')dnl        #DAEMON_HOSTSTATS=
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl #	into this directory before writing files.
dnl #	If *all* your user accounts are under /home then use that
dnl #	instead - it will prevent any writes outside of /home !
dnl #   define(`confSAFE_FILE_ENV',             `')dnl
dnl #
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
dnl # Remove `, Addr=' clauses to receive from any interface
dnl # If you want to support IPv6, switch the commented/uncommentd lines
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, Addr=127.0.0.1')dnl
dnl #
dnl # Be somewhat anal in what we allow
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl #
dnl # Features
dnl #
dnl # The access db is the basis for most of sendmail's checking
FEATURE(`access_db', , `skip')dnl
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
define(`confBAD_RCPT_THROTTLE',`3')dnl
dnl #
dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl #
dnl # If you're on a dialup link, you should enable this - so sendmail
dnl # will not bring up the link (it will queue mail for later)
dnl define(`confCON_EXPENSIVE',`True')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
dnl #
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl

The error:

Code:
Failed to build configuration :

NONE:0: m4: ERROR: EOF in string
 
Your quotation marks look weird,

include(`/usr/share/sendmail/cf/m4/cf.m4')dnl

You have ` and ' , normally they would have to match up, is that correct?
 
Your quotation marks look weird,

include(`/usr/share/sendmail/cf/m4/cf.m4')dnl

You have ` and ' , normally they would have to match up, is that correct?

That is the default one that is in the sendmail configs, I haven't changed anything... I was reading up and the most common errors are quotations that are ` ` or ' ' and not ` '
 
Back
Top Bottom