Hi,
I've just signed up for a dedicated Linux server with eukhost and thought it might be fun to post about my experience of setting it up in the hope that it may help others in the future and those more experienced might cast their wisdom over it.
A bit about me; I'm a software developer of 20 years experience, almost all Windows based C++ - tho I do a small amount of cross-platform development (Redhat/Montavista/Windows) these days. First and only experience of installing/configuring Linux was back in 1998/9 with an Intel 486 and Kernels 2.0/2.2.. just basic installation on a home PC (no email, webserver) but did have to recompile the kernel (can't remember the reason - it was a long-time ago!)
This morning I received the welcome email... lots of information to digest.. and a few thoughts of what have I let myself in for
After reading the email the first step is to try and log in.
Don't try and telnet the Primary IP Address it doesn't work.. (on windows) you need to use something like WinSCP. After entering your username/password and Primary IP Address you can connect and browse the directories on your server.. and if your keen open a terminal (command prompt) too.
Now back to the email...
Quote:
1) Hostname:
Hostname is the name of your Dedicated Server and should point to your server's Main IP. It should be FQDN (Fully Qualified Domain Name) like server. or ns., which should be hosted on your Dedicated Server.
Please also change the hostname of the server once you are logged in.
|
So how to do this? Well googling threw up a very easy to follow set of instructions;
Quote:
If you want to change your server hostname you have to make changes in following file.
1) /etc/hosts
your server IP address serverfullname (like server.domainname ) shortname (server)
for example
91.186.30.32 server.eukhost.com servr
2) /etc/sysconfig/network
HOSTNAME=server.domainname
3) run following command on ssh shell to set hostname
hostname server.domainname
|
Back to the email to see what's next...
Quote:
) Nameservers:
You have to set the default nameservers for your Dedicated Server. These nameservers will be assigned by default to all the accounts or domains which would be created on your Dedicated Server. You may use any of the spare IP's you have for your DNS.
If you want the DNS to be the same as your domain name i.e. for instance if your domain name is myself.com & you wish to have your DNS as ns1.myself.com & ns2.myself.com, then you would have to register the DNS from the same registrar where you have registered the domain name myself.com.
If you have registered your domain name with eukhost.com, then please contact our billing department to have your DNS registered free of cost!
|
Must admit I haven't done this yet.. since the web site hosting is currently running on a shared server, and I can access the new server via it's IP address for the time being (got to leave something to do tomorrow!)
Next how do I install apache, MySQL Server and php? Again googling throws up a gold nugget... in the form of'
Quote:
Installing Apache, MySQL and PHP on a Linux Server in under 10 minutes
Apache, MySql and PHP; these three products are open source programs available for use on most well known operating systems. In this article I will explain how you can install Apache, MySql and PHP on a Linux box using yum in under 10 minutes.
1 - Checking and Removing Any Existing Installations of the 3 of Them
Run the following command to make sure that any existing installations of Apache, MySql or PHP are removed:
yum -y remove httpd mysqld mysql-server php
2 - Installing Apache
Run the following to install the Apache web server:
yum -y install httpd
3 - Installing MySql Server
Run the following command to install MySql Server:
yum -y install mysqld mysql-server
4 - Install PHP
Run the following command to install PHP:
yum -y install php php-mysql
5 - Installing PHP Libraries
PHP has many different libraries and add-ons which you want or need to utilize; in your case we want to install the PHP GD image library and the PHP IMAP library, to do this we’ll be using the following command:
yum -y install php-gd php-imap
Thats it - you have now AMP’d a server! All you need to do now is start the individual services, to do this run the following commands (individually):
service httpd start
service mysqld start
PHP will be seen by Apache as a library and so does not need to be started.
|
Within 10 minutes the installation is complete.. and time to try it out.
First I created a test.html under /var/www/html containing;
Quote:
<html>
<head>
<title>Testing</title>
</head>
<body>
<p>This is a test page )</p>
</body>
</html>
|
Now browse to http://<your primary ip address>/test.html
Next to test php, I created a test.php also under /var/www/html containing;
Quote:
<html>
<head>
<title>Testing</title>
</head>
<body>
<?php
for($i=0; $i<10; ++$i) {
echo "<p>This is a test $i</p>\n";
}
?>
</body>
</html>
|
And to see the result, browse http://<your primary ip address>/test.php
That's enough excitement for today, tomorrow I'm going to try and tackle setting up; nameservers, ftp and uploading a copy of the existing site.
Cheers
Mark