|
|
|
|
|
|
Home PageContact MeMAC OS XLinuxLinux Servers Fedora Core 4Linux Servers - CentOSLinux Servers Fedora Core 5Linux Servers Fedora Core 7Linux Servers Fedora 8OpenWRTNSLU2LinuxClusterHardware Hacking ProjectsSpeaker Building ProjectsElectronics ProjectsOther Sites |
History / Status
IntroductionAll of our servers will start with this install. This base server is based on Fedora Core 5. This version of the HOWTO guides you through setting up an OpenVZ virtual server. Creating the Virtual Private ServerThis is the easy part. The example commands below will use an ID of 101 and an ip address of 192.168.150.221. You will need to chose an appropreate ID and ip address for your situation. Type the follwoing. We should increase the VPS's disk quota to 5GB. Now start the VPS. Once the VPS is started we need to set the root password. So type the follwoing. Updating the VPSType in the following to update the system. When its done reboot the VPS. Type:
> vzctl stop 101 Installing Additional PackagesWe need to add a couple of repos. One is the Fedora Core 5 Extras. The other one is my own. Add the following to /vz/template/fedora-core/5/i386/config/yum.conf [fc5-extras] name=Fedora Extras $releasever - $basearch #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/ mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras gpgcheck=1 [campworld] name=Campworld repo baseurl=http://www.campworld.net/repos/FC5/ enabled=1 gpgcheck=0 Now we'll load some php modules that will cause items such as mysql to load with it. Lets install postfix and get rid of sendmail. Some misc packages We need SSL support in perl. Setup is easier if you get this installed before webmin. Now lets install webmin. Next log in to the VPS. We need to add the compworld repo to yum inside the VPS. Create /etc/yum.repos.d/campworld.repo with the following info. [campworld] name=Campworld repo baseurl=http://www.campworld.net/repos/FC5/ enabled=1 gpgcheck=0 Now we need to do a little house keeping so yum runs correctly. type the following Webmin Configuration
Installing phpMyAdminI perfer to phpMyAdmin to manage my MySQL databases. There is no rpm for this package. This package is easy to install.
Getting root's and other's mailYou need to get some local system user's mail. We'll use postfix's virtual file to get the emails to the right place. 1. Add the following to /etc/postfix/virtual root admin@yourdomain.com postmaster admin@yourdomain.com abuse admin@yourdomain.com 2. Now add the configuration option to main.cf 3. Just a couple commands to wrap everything up. Creating a Cache File for easy VPS DeploymentWe don't want to do this work every time we create a new VPS. So its time to create a cache. Type the following. When you are ready to deploy a new base VPS server (aka this howto) then you use the created cache file. Below is an example fo how to create a VPS with an ID of 102. ConclusionThat's it for the basic server setup. This is an example of a standard linux server setup. See the other pages for info on configuring servers for virtual webhosting or virtual email hosting. If this is your first VPS I recommend that you don't configure it any further. You should save it for cloning to other VPSes to save time. CommentsComments closed. |