<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>VirtuaHost</title> <link>http://www.virtuahost.co.uk</link> <description>UK VPS Hosting</description> <lastBuildDate>Tue, 13 Mar 2012 11:42:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Virtuahost" /><feedburner:info uri="virtuahost" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item><title>Why a UK VPS is important for UK businesses</title><link>http://www.virtuahost.co.uk/business/why-a-uk-vps-is-important-for-uk-businesses</link> <comments>http://www.virtuahost.co.uk/business/why-a-uk-vps-is-important-for-uk-businesses#comments</comments> <pubDate>Thu, 16 Jun 2011 03:16:25 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[business]]></category> <category><![CDATA[google]]></category> <category><![CDATA[uk vps]]></category><guid isPermaLink="false">http://www.virtuahost.co.uk/?p=741</guid> <description><![CDATA[When choosing a VPS service most UK businesses are unaware of the implications of offshore alternatives from US and European providers. To business owners the bottom line often comes down to price and the first result in Google dictating the decision to purchase. In a recent case study it was revealed that most online UK [...]<p><a href="http://www.virtuahost.co.uk/business/why-a-uk-vps-is-important-for-uk-businesses">Why a UK VPS is important for UK businesses</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></description> <content:encoded><![CDATA[<p>When choosing a VPS service most UK businesses are unaware of the implications of offshore alternatives from US and European providers. To business owners the bottom line often comes down to price and the first result in Google dictating the decision to purchase.</p><p>In a recent case study it was revealed that most online UK business owners were rarely aware of the physical location of the server hosting their site and whether that made any difference apart from the billing.</p><p>With Google&#8217;s recent announcement regarding the importance of performance and page load time to its ranking algorithm there are some compelling reasons for online UK businesses to switch to a UK VPS offering. All VirtuaHost VPS servers are served from powerful host machines hosted in Maidenhead, just outside of London.</p><p>With a server located in the UK not only will your customers receive the best performance possible within their geographical location but it has also been shown from Google&#8217;s analysis of page load time that this is often a subtle yet very important factor to decisions consumers make when purchasing on the web.</p><p>If you are a online UK business with a UK consumer base then why not ask us about our <a href="http://www.virtuahost.co.uk">UK VPS</a> offering today?</p><p><a href="http://www.virtuahost.co.uk/business/why-a-uk-vps-is-important-for-uk-businesses">Why a UK VPS is important for UK businesses</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></content:encoded> <wfw:commentRss>http://www.virtuahost.co.uk/business/why-a-uk-vps-is-important-for-uk-businesses/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing Ruby on Rails on CentOS</title><link>http://www.virtuahost.co.uk/tutorials/installing-ruby-on-rails-on-centos</link> <comments>http://www.virtuahost.co.uk/tutorials/installing-ruby-on-rails-on-centos#comments</comments> <pubDate>Thu, 26 May 2011 15:34:39 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[centos]]></category> <category><![CDATA[passenger]]></category> <category><![CDATA[ruby on rails]]></category><guid isPermaLink="false">http://www.virtuahost.co.uk/?p=708</guid> <description><![CDATA[In this how-to guide we will go through the steps required to install and run your own Ruby on Rails installation with Apache running on a CentOS 5 VPS server. This guide will introduce the basic steps but does not provide advanced user information or configuration details for Ruby on Rails. Please consult the Ruby [...]<p><a href="http://www.virtuahost.co.uk/tutorials/installing-ruby-on-rails-on-centos">Installing Ruby on Rails on CentOS</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></description> <content:encoded><![CDATA[<p><img src="http://www.virtuahost.co.uk/wp-content/uploads/2011/05/rails.png" alt="Ruby on Rails logo" title="rails" width="50" height="64" class="alignleft size-full wp-image-730" />In this how-to guide we will go through the steps required to install and run your own Ruby on Rails installation with Apache running on a <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">CentOS 5 VPS</a> server. This guide will introduce the basic steps but does not provide advanced user information or configuration details for Ruby on Rails. Please consult the <a href="http://rubyonrails.org" rel="nofollow">Ruby on Rails</a> site for more information.</p><p><span id="more-708"></span></p><hr /><p>Want a <strong>CentOS VPS server</strong> to get your very own Ruby on Rails installation running? Why not sign-up to our CentOS VPS packages today?</p> <a class="btn nc" href="http://www.virtuahost.co.uk/sign-up/centos-vps"><span>Sign Up</span></a><hr class="clear" /><h2>Installing Ruby on Rails on CentOS Video Tutorial</h2><p>Like to see how quick you can install Ruby on Rails on your CentOS installation?<br /> <a href="http://www.youtube.com/watch?v=6hxjKB-2Mic" rel="prettyPhoto" title="Installing Ruby on Rails on CentOS">View video tutorial</a></p><h2>Getting started</h2><p>To get started, you will need to grab a copy of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a> and have a fresh/clean installation of CentOS 5.x. This guide does not provide information on how to use PuTTY, so please consult the documentation available on the PuTTY site for how to configure and connect to your server through SSH.</p><h3>Prerequisites</h3><ol><li>A fresh installation of CentOS 5.x with SSH enabled</li><li>Working installation of yum on your CentOS 5.x machine</li><li>Working installation of PuTTY on your local machine</li></ol><p>Let&#8217;s get our environment ready first.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install httpd-devel openssl-devel zlib-devel gcc gcc-c++ curl-devel expat-devel gettext-devel mysql-server mysql-devel -y</span></pre></div></div><p>You should see YUM go through lots of steps and finally a message indicating the installation was a success.</p><p></p><h2>Installing Ruby 1.8</h2><p>The next step is to install Ruby 1.8 to our server. We will download Ruby 1.8 from the ruby-lang.org FTP server using CURL, extract the archive, configure the make installer and finally install Ruby 1.8.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/local/src</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> src<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> src<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf ruby-1.8.7-p174.tar.gz   </span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> src<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ruby-*</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure --enable-shared --enable-pthread</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ext/zlib/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> zlib<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> zlib<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ../../</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ruby-1.8.7-p174<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ruby -v</span>
ruby 1.8.7 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2009</span>-06-<span style="color: #000000;">12</span> patchlevel <span style="color: #000000;">174</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i686-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><h2>Installing RubyGems</h2><p>The next step is to grab the latest version of RubyGems from <a rel="nofollow" href="http://rubyforge.org/projects/rubygems">http://rubyforge.org/projects/rubygems</a> and install it.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir ~/sources</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ~/sources</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> sources<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wget http://rubyforge.org/frs/download.php/74886/rubygems-1.8.3.tgz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> sources<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar xzvf rubygems-*.tgz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> sources<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd rubygems-*</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ruby setup.rb</span>
RubyGems 1.4.2 installed
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rm -rf ../rubygems-*.tgz</span></pre></div></div><h2>Installing Sqlite</h2><p>Unfortunately the YUM repository for CentOS 5 contains and older version of Sqlite 3 which is not compatible (by default) with the RubyGems gem for Sqlite 3. To overcome this simply download the latest amalgamation file from <a rel="nofollow" href="http://www.sqlite.org">sqlite.org</a> and install by following the steps below:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.sqlite.org<span style="color: #000000; font-weight: bold;">/</span>sqlite-amalgamation-3.7.0.1.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf sqlite-amalgamation-3.7.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> sqlite-3.7.0.1
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sqlite-3.7.0.1
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby <span style="color: #660033;">--</span> <span style="color: #660033;">--with-sqlite3-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sqlite-3.7.0.1</pre></div></div><h2>Updating RubyGems &#038; installing MySQL, Rails and Passenger</h2><p>To complete our Ruby on Rails installation we will need to first check if RubyGems has any updates available to the system (RubyGems itself) and to any Gems that may have already been installed.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem update --system</span>
Updating RubyGems
Nothing to update
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem update</span></pre></div></div><p>Now that we are confident that our RubyGems installation is fully up-to-date we will now proceed with installing the MySQL, Rails, Passenger and Sinatra gems. Passenger makes the deployment of Ruby on Rails applications a breeze with Apache.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install mysql -- --with-mysql-config=/usr/bin/mysql_config </span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install rails passenger sinatra</span></pre></div></div><h2>Configuring Passenger for Apache 2</h2><p>To configure Passenger to work with Apache 2, simply execute the following command and follow the on-screen instructions:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># passenger-install-apache2-module</span></pre></div></div><h2>Configuring Apache for Passenger</h2><p>As mentioned in the final step of the Passenger installation for Apache 2 you need to make some changes to your Apache configuration. To do this simply open the httpd.conf file in your favourite text editor:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano /etc/httpd/conf/httpd.conf</span></pre></div></div><p>Add the following LoadModule, and passenger specific entries to your httpd.conf file:</p><div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> passenger_module /usr/local/lib/ruby/gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-3.0.7
PassengerRuby /usr/local/bin/ruby</pre></div></div><p>Finally, we add an Apache Virtual Host entry with reference to our first Ruby on Rails application to our httpd.conf file:</p><div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">virtualhost</span> *:<span style="color: #ff0000;">80</span>&gt;
    <span style="color: #00007f;">ServerName</span> foo.com
    <span style="color: #00007f;">ServerAlias</span> www.foo.com
    <span style="color: #00007f;">DocumentRoot</span> /apps/foo/public
    &lt;<span style="color: #000000; font-weight:bold;">directory</span> /apps/foo/public&gt;
        <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">all</span>
        <span style="color: #00007f;">Options</span> -MultiViews
    &lt;/<span style="color: #000000; font-weight:bold;">directory</span>&gt;
&lt;/<span style="color: #000000; font-weight:bold;">virtualhost</span>&gt;</pre></div></div><h2>Creating our first Ruby on Rails application</h2><p>In this tutorial we will create a Ruby on Rails application called foo. We will now create the directory structure as we created for our Virtual Host entry:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir /apps</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir /apps/foo</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /apps/foo</span></pre></div></div><p>With our directory structure in place we will execute the rails command to create the skeleton of our new Ruby on Rails application:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> foo<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rails new foo</span></pre></div></div><p>One last (but important step) is to ensure that the apache deamon has permission (recursively) to all objects without our &#8216;foo&#8217; Ruby on Rails application:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> foo<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chown -R apache.apache *</span></pre></div></div><p>Finally, we restart Apache:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> rubygems-1.4.2<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span>
Stopping httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>And to check that everything is on order, we visit foo.com in our browser and hey presto, we are presented with the Ruby on Rails &#8216;Welcome aboard&#8217; message:</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/05/RoR.png"><img src="http://www.virtuahost.co.uk/wp-content/uploads/2011/05/RoR-150x150.png" alt="Ruby on Rails Welcome aboard" title="RoR" width="150" height="150" class="alignnone size-thumbnail wp-image-725" /></a></p><hr /><p>Want a <strong>CentOS VPS server</strong> to get your very own Ruby on Rails installation running? Why not sign-up to our CentOS VPS packages today?</p> <a class="btn nc" href="http://www.virtuahost.co.uk/sign-up/centos-vps"><span>Sign Up</span></a><hr class="clear" /><p><a href="http://www.virtuahost.co.uk/tutorials/installing-ruby-on-rails-on-centos">Installing Ruby on Rails on CentOS</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></content:encoded> <wfw:commentRss>http://www.virtuahost.co.uk/tutorials/installing-ruby-on-rails-on-centos/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing subversion on CentOS</title><link>http://www.virtuahost.co.uk/tutorials/installing-subversion-on-centos</link> <comments>http://www.virtuahost.co.uk/tutorials/installing-subversion-on-centos#comments</comments> <pubDate>Sun, 20 Mar 2011 09:43:45 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[centos tutorials]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[subversion]]></category><guid isPermaLink="false">http://www.virtuahost.co.uk/?p=555</guid> <description><![CDATA[In this guide we will go through the steps required to get your very own subversion revision control system installed and running on a CentOS 5 VPS server. This guide introduces the basic concepts and does not provide any advanced user information. Please consult the Subversion site for more information. Want a CentOS VPS server [...]<p><a href="http://www.virtuahost.co.uk/tutorials/installing-subversion-on-centos">Installing subversion on CentOS</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></description> <content:encoded><![CDATA[<p>In this guide we will go through the steps required to get your very own subversion revision control system installed and running on a <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">CentOS 5 VPS</a> server. This guide introduces the basic concepts and does not provide any advanced user information. Please consult the <a href="http://subversion.tigris.org/">Subversion</a> site for more information.</p><hr /><p>Want a <strong>CentOS VPS server</strong> to get your very own Subversion source control setup? Why not sign-up to our CentOS VPS packages today?</p> <a class="btn nc" href="http://www.virtuahost.co.uk/sign-up/centos-vps"><span>Sign Up</span></a><hr class="clear" /><h2>Getting started</h2><p>To get started, you will need to grab a copy of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a> and have a fresh/clean installation of CentOS 5.x. This guide does not provide information on how to use PuTTY, so please consult the documentation available on the PuTTY site for how to configure and connect to your server through SSH.</p><h3>Prerequisites</h3><ol><li>A fresh installation of CentOS 5.x with SSH enabled</li><li>Working installation of yum on your CentOS 5.x machine</li><li>Working installation of PuTTY on your local machine</li></ol><p>First we will need to make sure our yum packages are all up to date:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum update</span></pre></div></div><p><span id="more-555"></span></p><h2>Installing Apache</h2><p>The next step is to install the Apache web server. YUM provides an easy means of installing Apache quickly and without requiring a lot of configuration changes and is a great way to get a basic installation on your <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">CentOS VPS</a> server.</p><p>So let&#8217;s get started and install Apache:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install httpd httpd-devel -y</span></pre></div></div><p>You should see YUM go through lots of steps and finally a message indicating the installation was a success.</p><p>Now that Apache has been successfully installed we need to start up the service:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd start</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>Now we’ll head over to our site to check that Apache is up and running and serving the default CentOS 5.x Apache test page.</p><p>You can do this by visiting http://[ipaddress], replacing [ipaddress] with the main IP address of your server. You should be presented with a default CentOS Apache welcome screen, similar to below:</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/1.png"><img class="size-thumbnail wp-image-578" title="CentOS Apache Page" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/1-150x150.png" alt="CentOS Apache Test Page" width="150" height="150" /></a></p><p>Ok, so it looks as though Apache is up and running on our server so back to our SSH terminal (via PuTTY) to install nano, a text editor that&#8217;s easy to use (compared to VI).</p><h2>Installing Nano</h2><p>Although not necessarily required to get your Subversion server up and running, Nano is a great text editor to have handy on your CentOS server; Nano is actually a derivative of Pico &#8211; and provides an easy to use (slightly more visual) means of editing files.</p><p>So let&#8217;s get started and install via YUM package manager:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install nano -y</span></pre></div></div><p>That&#8217;s it! You should then see a message indicating whether the installation was a success or not.</p><p>We&#8217;ve now successfuly prepared our environment for installation of Subversion onto our CentOS installation. To quickly recap we have performmed the following:</p><ol><li>Installed Apache web server</li><li>Verified Apache web server is working by visited test page</li><li>Installed nano text editor for easy editting</li></ol><h2>Installing Subversion</h2><p>Thanks to the yum package manager installing Subversion is relatively straight forward. Execute the following command to kick off the installation:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install mod_dav_svn subversion -y</span></pre></div></div><p>Now we&#8217;ll open up the Apache configuration file, and we should at least change the ServerName directive. To open the configuration file (httpd.conf) enter the following:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano /etc/httpd/conf/httpd.conf</span></pre></div></div><p>When you&#8217;re happy with the file, simply restart Apache to pick up any configuration changes made:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span></pre></div></div><p>And finally execute the following command to ensure Apache always starts when the machine is rebooted:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chkconfig httpd on</span></pre></div></div><h3>Configuring Apache to work with Subversion</h3><p>Now that we have both Apache configured and Subversion installed, let&#8217;s make the two systems work in harmony. To do this, we&#8217;ll need to create a Subversion specific configuraiton file under our Apache custom configuration folder.</p><p>Firstly we&#8217;ll need to change to the Apache custom configuration folder:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /etc/httpd/conf.d/</span></pre></div></div><p>And now we will create a file called subversion.conf:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> conf.d<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano subversion.conf</span></pre></div></div><p>And paste the following text within this file:</p><div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
&nbsp;
   DAV svn
   SVNListParentPath on
   SVNParentPath /var/www/svn/repos
   AuthType Basic
   AuthName &quot;Subversion&quot;
   AuthUserFile /etc/svn-auth-conf
   Require valid-user</pre></div></div><p>Now we have configured our Subversion specific configuration for Apache, we now need to create our password files to secure our Subversion repositories that are exposed to the web.</p><p>Run the following command, and follow the on-screen instructions; feel free to change svnuser to a user that makes sense to you.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> conf.d<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># htpasswd -cm /etc/svn-auth-conf svnuser</span>
New password:
Re-type new password:
Adding password <span style="color: #000000; font-weight: bold;">for</span> user svnuser</pre></div></div><p>The next step is to create our new Subversion repository folder, as per the configuration file we saved earlier (SVNParentPath /var/www/svn/repos). Execute the following commands to create this new folder:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /var/www</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> www<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir svn</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> www<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd svn</span></pre></div></div><p>We&#8217;ll need to use the svnadmin command (part of Subversion) to create our repos base folder (as per our SVNParentPath):</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># svnadmin create repos</span></pre></div></div><p>Now lets give apache permissions (recursively) to all files/folders under the repos folder:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chown -R apache.apache repos</span></pre></div></div><p>Now that we&#8217;re done with configuring Apache, let&#8217;s restart apache to pick up all of our changes:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span>
Stopping httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>Finally if you navigate to http://[ipaddress]/repos (replacing [ipaddress] with the main IP address of your server) you should be presented with a password authentication challenge. Enter the username svnuser along with the password you configured for your user and you should be presented with a list of folders entitled, &#8220;Collection of repositories&#8221;.</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/3.png"><img class="alignnone size-thumbnail wp-image-580" title="Testing Auth" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/3-150x150.png" alt="Basic authentication on subversion" width="150" height="150" /></a><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/4.png"><img class="alignnone size-thumbnail wp-image-581" title="Subversion repos" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/4-150x150.png" alt="Subversion repository list" width="150" height="150" /></a></p><h2>Creating our first project repository</h2><p>We will now create our own project within our repository:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd repos</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> repos<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># svnadmin create myproject</span></pre></div></div><p>The following files/folders are created when we create our new project folder:</p><div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">drwxr-xr-x 7 root root 4096 Jan 16 02:15 .
drwxr-xr-x 4 root root 4096 Jan 16 02:15 ..
drwxr-xr-x 2 root root 4096 Jan 16 02:15 conf
drwxr-xr-x 2 root root 4096 Jan 16 02:15 dav
drwxr-sr-x 5 root root 4096 Jan 16 02:15 db
-r--r--r-- 1 root root    2 Jan 16 02:15 format
drwxr-xr-x 2 root root 4096 Jan 16 02:15 hooks
drwxr-xr-x 2 root root 4096 Jan 16 02:15 locks
-rw-r--r-- 1 root root  229 Jan 16 02:15 README.txt</pre></div></div><p>Edit the new repository’s svnserve.conf file:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> myproject<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano /var/www/svn/repos/myproject/conf/svnserve.conf</span></pre></div></div><p>And paste the following text into this file:</p><div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[general]
auth-access = write
password-db = /etc/svn-auth-conf
realm = My Project</pre></div></div><p>Now we need to tell the Subversion daemon to serve all repositories (recursively) under our repository collection base path:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> myproject<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># svnserve -d -r /var/www/svn/repos</span></pre></div></div><p>And hey presto! We have our very own Subversion project repository. Simply navigate to http://[ipaddress]/repos/myproject (replacing [ipaddress] with the main IP address of your server) and you will be presented with a password auth challenge. Enter the username svnuser along with the password you configured for your user and you should be presented with a list of folders.</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/03/7.png"><img class="alignnone size-thumbnail wp-image-662" title="Auth challenge" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/03/7-150x150.png" alt="Basic authentication challenge on new project" width="150" height="150" /></a><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/6.png"><img class="alignnone size-thumbnail wp-image-583" title="Subversion project" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/6-150x150.png" alt="Subversion project" width="150" height="150" /></a></p><hr /><p>Want a <strong>CentOS VPS server</strong> to get your very own Subversion source control setup? Why not sign-up to our CentOS VPS packages today?</p> <a class="btn nc" href="http://www.virtuahost.co.uk/sign-up/centos-vps"><span>Sign Up</span></a><hr class="clear" /><p><a href="http://www.virtuahost.co.uk/tutorials/installing-subversion-on-centos">Installing subversion on CentOS</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></content:encoded> <wfw:commentRss>http://www.virtuahost.co.uk/tutorials/installing-subversion-on-centos/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing LAMP on a VPS server</title><link>http://www.virtuahost.co.uk/tutorials/installing-lamp-on-a-vps-server</link> <comments>http://www.virtuahost.co.uk/tutorials/installing-lamp-on-a-vps-server#comments</comments> <pubDate>Tue, 18 Jan 2011 20:49:54 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[centos tutorials]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[lamp]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[php]]></category><guid isPermaLink="false">http://www.virtuahost.co.uk/?p=594</guid> <description><![CDATA[In this guide we will go through the process of installing a Linux Apache Mysql PHP installation on a Centos 5 VPS server. Want a CentOS VPS server to get your very own LAMP setup? Why not sign-up to our CentOS VPS packages today? To get started, you will need to grab a copy of PuTTY and have [...]<p><a href="http://www.virtuahost.co.uk/tutorials/installing-lamp-on-a-vps-server">Installing LAMP on a VPS server</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></description> <content:encoded><![CDATA[<p>In this guide we will go through the process of installing a <strong>L</strong><small>inux</small> <strong>A</strong><small>pache</small> <strong>M</strong><small>ysql</small> <strong>P</strong><small>HP</small> installation on a <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">Centos 5 VPS</a> server.</p><hr />Want a <strong>CentOS VPS server</strong> to get your very own LAMP setup? Why not sign-up to our CentOS VPS packages today?</p> <a class="btn nc" href="http://www.virtuahost.co.uk/sign-up/centos-vps"><span>Sign Up</span></a><hr class="clear" />To get started, you will need to grab a copy of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a> and have a fresh/clean installation of CentOS 5.x. This guide does not provide information on how to use PuTTY, so please consult the documentation available on the PuTTY site for how to configure and connect to your server through SSH.</p><p><span id="more-594"></span></p><h2>Getting started</h2><p>We first need to do some prep work for our YUM package manager to enable the RPMforge repository (which is needed for PHPMyAdmin).</p><p>Find out which architecture we are using:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># uname -i</span>
i386</pre></div></div><p>i386 means you are running a 32-bit installation of CentOS, x86_64 means you are running a 64-bit installation of CentOS.</p><p>Now let&#8217;s download the latest RPMforge package. You can find the latest RPMforge rpm download from the <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge">CentOS Wiki</a>.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir ~/downloads</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ~/downloads</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.[ARCH].rpm</span></pre></div></div><p>Replacing [ARCH] with either i386 or x86_64 &#8211; depending on your installation.</p><p>Now we need to install RPMforge using rpm:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -ivh rpmforge-release-0.5.2-2.el5.rf.*.rpm</span></pre></div></div><p>And now clean-up the RPM file:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rm -rf rpmforge-release-0.5.2-2.el5.rf.*.rpm</span></pre></div></div><h2>Installing Apache</h2><p>The next step is to install the Apache web server. YUM provides an easy means of installing Apache quickly and without requiring a lot of configuration changes and is a great way to get a basic installation on your <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">CentOS VPS</a> server.</p><p>So let&#8217;s get started and install Apache:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install httpd httpd-devel -y</span></pre></div></div><p>You should see YUM go through lots of steps and finally a message indicating the installation was a success.</p><p>Now that apache has been successfully installed we need to start up the service:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd start</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>Now we’ll head over to our site to check that apache is up and running and serving the default CentOS 5.x apache test page.</p><p>You can do this by visiting http://[ipaddress], replacing [ipaddress] with the main IP address of your server. You should be presented with a default CentOS Apache welcome screen, similar to below:</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/1.png"><img class="size-thumbnail wp-image-578" title="CentOS Apache Page" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/1-150x150.png" alt="CentOS Apache Test Page" width="150" height="150" /></a></p><p>Ok, so it looks as though apache is up and running on our server so back to our SSH terminal (via PuTTY) to install nano, a text editor that&#8217;s easy to use (compared to VI).</p><h2>Installing Nano</h2><p>Although not necessarily required to get your LAMP server up and running, Nano is a great text editor to have handy on your CentOS server; Nano is actually a derivative of Pico &#8211; and provides an easy to use (slightly more visual) means of editing files.</p><p>So let&#8217;s get started and install via YUM package manager:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install nano -y</span></pre></div></div><p>That&#8217;s it! You should then see a message indicating whether the installation was a success or not.</p><h2>Installing MySQL Database Server</h2><p>MySQL is the world&#8217;s most popular open source database that is supported by a community of open source developers and enthusiasts. With close integration with PHP and Ruby on Rails development stacks, it is a must for web server.</p><p>We&#8217;ll be installing MySQL server via the YUM package manager and it couldn&#8217;t be easier than just one line:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install mysql mysql-server mysql-devel -y</span></pre></div></div><p>We&#8217;ll then get MySQL started up:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service mysqld start</span>
Starting MySQL:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>Ok, all is looking good so now we will connect to our MySQL server and set our root (admin) password:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mysql</span>
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is <span style="color: #000000;">3</span>
Server version: 5.0.77 Source distribution
&nbsp;
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the buffer.
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; use mysql
Reading table information <span style="color: #000000; font-weight: bold;">for</span> completion of table and column names
You can turn off this feature to get a quicker startup with <span style="color: #660033;">-A</span>
&nbsp;
Database changed
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; UPDATE user SET <span style="color: #007800;">Password</span>=PASSWORD<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'newpassword'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> WHERE <span style="color: #007800;">user</span>=<span style="color: #ff0000;">'root'</span>;
Query OK, <span style="color: #000000;">3</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Rows matched: <span style="color: #000000;">3</span>  Changed: <span style="color: #000000;">3</span>  Warnings: <span style="color: #000000;">0</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; FLUSH PRIVILEGES;
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; quit
Bye</pre></div></div><p>Replace &#8216;newpassword&#8217; with the actual password you wish to use. Be sure to use a strong password (combination of alpha-numeric and UPPER and lower case) to make your installation more secure.</p><p>Now let&#8217;s re-connect to our MySQL server using our new root password:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mysql -u root -p</span>
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is <span style="color: #000000;">4</span>
Server version: 5.0.77 Source distribution
&nbsp;
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the buffer.
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; quit
Bye</pre></div></div><p>Congratulations, you now have a working installation of MySQL server and have configured your root account with a secure password.</p><h2>Installing PHP</h2><p>We will install PHP via the YUM package manager but we will also include the MySQL module, along with some common PHP modules which most installations use:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml -y</span></pre></div></div><p>Now that PHP and all of the modules have installed, we will restart the Apache web server so that it picks up the PHP installation:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span>
Stopping httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>We will now create a PHP information (PHP Info) page to test our installation of PHP:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano /var/www/html/phpinfo.php</span></pre></div></div><p>And enter the text, below:</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
        <span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p>To save, press the CTRL + X key and then press the Y key to save the file. We will now verify our PHP installation by visiting http://[ipaddress]/phpinfo.php. Replacing [ipaddress] with the main IP address of your server.</p><p>If your installation was successful, you you created your phpinfo.php file correctly, you should see a screen similar to below:</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/phpinfo.png"><img class="alignnone size-thumbnail wp-image-623" title="PHPInfo Page" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/phpinfo-150x150.png" alt="PHPInfo Page" width="150" height="150" /></a></p><p>Now we&#8217;re happy with our installation of PHP, we&#8217;ll proceed with removing our phpinfo.php file (security through obscurity):</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rm -rf /var/www/html/phpinfo.php</span></pre></div></div><h2>Installing PHPMyAdmin</h2><p>phpMyAdmin is a free open source project that handles administration of MySQL servers and databases over the web. It supports operations such as managing database, tables, fields, relations, indexes, users, permissions and much more. You can still execute SQL statements if you wish, with the convenience of a web interface.</p><p>Thanks to our RPMForge repository, we can install PHPMyAdmin directly through the YUM package manager:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install phpmyadmin</span></pre></div></div><p>Now that PHPMyAdmin is installed, let&#8217;s configure the Apache configuration file so that it is visible from the web:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano /etc/httpd/conf.d/phpmyadmin.conf</span></pre></div></div><p>Comment out Deny from all line (the # symbol denotes a comment), see below:</p><div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">#
#  Web application to manage MySQL
#
&nbsp;
  Order Deny,Allow
#  Deny from all
  Allow from 127.0.0.1
&nbsp;
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin</pre></div></div><p>To save the changes made, press CTRL + X on your keyboard, followed by the Y key to confirm changes.</p><p>Finally, we need to make some configuration updates for cookie based authentication to work:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># nano /usr/share/phpmyadmin/config.inc.php</span></pre></div></div><p>Find the line $cfg['blowfish_secret'] and replace the value:</p><div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR
COOKIE AUTH! */</pre></div></div><p>Now that we&#8217;re done configuring PHPMyAdmin, we need to restart Apache to pick up the changes:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span>
Stopping httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div><p>Navigate to http://[ipaddress]/phpmyadmin, replacing [ipaddress] with the main IP address of your server. You should be produced with the PHPMyAdmin login screen (see below):</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/phpmyadmin.png"><img class="alignnone size-thumbnail wp-image-627" title="PHPMyAdmin" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/phpmyadmin-150x150.png" alt="PHPMyAdmin login screen" width="150" height="150" /></a></p><p>To test your installation works, simply enter the username &#8216;root&#8217; (without quotes) and your root password (as set on your MySQL installation). You should then see the PHPMyAdmin home screen (see below):</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/phpmyadminhome.png"><img class="alignnone size-thumbnail wp-image-628" title="PHPMyAdmin Home" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/phpmyadminhome-150x150.png" alt="PHPMyAdmin Home" width="150" height="150" /></a></p><p>Congratulations &#8211; you now have a complete LAMP set-up on your <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">CentOS VPS</a> server. In the next step we will go through the process of installing Webmin, which is a great web user interface for administering your server. This step is optional, but recommended for those who wish to control most aspects of their server over the web.</p><h2>Installing Webmin</h2><p>Webmin provides a web-based user interface for system administration for Linux/Unix machines. Using your web browser you can control the setup of new user accounts, configuration of Apache and DNS servers, file sharing and much more. Webmin is great for those who don&#8217;t know how to manually configure certain services of configuration files, and lets you manage a system from the console or remotely with ease.</p><p>So to get started, we will need to download the latest RPM of Webmin. You can find the latest download by visiting <a href="http://www.webmin.com/index.html">http://www.webmin.com/index.html</a>.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /root/downloads</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wget http://sourceforge.net/projects/webadmin/files/webmin/1.530/webmin-1.530-1.noarch.rpm/download</span></pre></div></div><p>Now that we have downloaded the RPM file, we need to run the installation:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -ivh webmin-*.rpm</span>
warning: webmin-<span style="color: #000000;">1.530</span>-<span style="color: #000000;">1</span>.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 11f63c51
Preparing...                <span style="color: #666666; font-style: italic;">########################################### [100%]</span>
Operating system is CentOS Linux
   <span style="color: #000000;">1</span>:webmin                 <span style="color: #666666; font-style: italic;">########################################### [100%]</span>
Webmin <span style="color: #c20cb9; font-weight: bold;">install</span> complete. You can now <span style="color: #c20cb9; font-weight: bold;">login</span> to http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">test</span>:<span style="color: #000000;">10000</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">as</span> root with your root password.</pre></div></div><p>As the installation output reveals, you need to visit http://test:10000/ through your web browser to access Webmin. Remember to replace test with your machines IP address. You should then see a Webmin login screen (see below):</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/webminlogin.png"><img class="alignnone size-thumbnail wp-image-630" title="Webmin login" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/webminlogin-150x150.png" alt="Webmin login" width="150" height="150" /></a></p><p>To login to Webmin, enter the user name &#8217;root&#8217; (without quotes) along with your root password (for console, not MySQL root password). You should then be redirected to the Webmin administration homepage (see below):</p><p><a href="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/webmin.png"><img class="alignnone size-thumbnail wp-image-632" title="Webmin Administration" src="http://www.virtuahost.co.uk/wp-content/uploads/2011/01/webmin-150x150.png" alt="Webmin Administration" width="150" height="150" /></a></p><p>Now to quickly switch back to our SSH terminal, and do some clean-up:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rm -rf webmin-*.rpm</span></pre></div></div><p>We&#8217;re all done! We now have a working installation of Webmin so we can easily administer our <a href="http://www.virtuahost.co.uk/sign-up/centos-vps">CentOS VPS</a> server from the web.</p><h2>Final steps</h2><p>Finally, to finish off this tutorial we need to ensure that Apache and MySQL server automatically start each time our server reboots or is booted back up. To do this, simply execute the two commands below:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chkconfig httpd on</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span> downloads<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chkconfig mysqld on</span></pre></div></div><hr />Want a <strong>CentOS VPS server</strong> to get your very own LAMP setup? Why not sign-up to our CentOS VPS packages today?</p> <a class="btn nc" href="http://www.virtuahost.co.uk/sign-up/centos-vps"><span>Sign Up</span></a><hr class="clear" /><p><a href="http://www.virtuahost.co.uk/tutorials/installing-lamp-on-a-vps-server">Installing LAMP on a VPS server</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></content:encoded> <wfw:commentRss>http://www.virtuahost.co.uk/tutorials/installing-lamp-on-a-vps-server/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VirtuaHost UK VPS Service Launches</title><link>http://www.virtuahost.co.uk/announce/virtuahost-uk-vps-service-launches</link> <comments>http://www.virtuahost.co.uk/announce/virtuahost-uk-vps-service-launches#comments</comments> <pubDate>Fri, 14 Jan 2011 08:00:41 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[announce]]></category><guid isPermaLink="false">http://www.virtuahost.co.uk/?p=513</guid> <description><![CDATA[It brings us great pleasure to announce the launch of our much anticipated UK virtual private server hosting offering; building upon the success of Freewind Hosting, VirtuaHost provides the very latest in Virtual Private server offerings to the UK sector. Tired of shared or reseller hosting? Paying more than you need to for a fully [...]<p><a href="http://www.virtuahost.co.uk/announce/virtuahost-uk-vps-service-launches">VirtuaHost UK VPS Service Launches</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></description> <content:encoded><![CDATA[<p>It brings us great pleasure to announce the launch of our much anticipated UK virtual private server hosting offering; building upon the success of <a href="http://www.freewhosting.com" target="_blank">Freewind Hosting</a>, VirtuaHost provides the very latest in Virtual Private server offerings to the UK sector.</p><p>Tired of shared or reseller hosting? Paying more than you need to for a fully dedicated server? Then our <a href="http://www.virtuahost.co.uk/sign-up">UK VPS packages</a> are the solution for you! Our UK VPS servers offer you better security, stability, performance and control over your hosting.</p><p><a href="http://www.virtuahost.co.uk/announce/virtuahost-uk-vps-service-launches">VirtuaHost UK VPS Service Launches</a> is a post from: <a href="http://www.virtuahost.co.uk">VirtuaHost</a></p> ]]></content:encoded> <wfw:commentRss>http://www.virtuahost.co.uk/announce/virtuahost-uk-vps-service-launches/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 646/746 objects using disk: basic

Served from: www.virtuahost.co.uk @ 2012-03-15 18:31:50 -->

