<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>WordPress Blog Setup and Installation Services &#124; WPNoise.com &#187; VPS</title>
	<atom:link href="http://wpnoise.com/tag/vps/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpnoise.com</link>
	<description>WordPress Blog Setup Installation Services. Resources, Hacks, Tips, Articles</description>
	<lastBuildDate>Thu, 19 Jan 2012 15:52:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>LiteSpeed WebServer on Slicehost VPS</title>
		<link>http://wpnoise.com/howto-configure-good-vps-hosting/</link>
		<comments>http://wpnoise.com/howto-configure-good-vps-hosting/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 17:42:15 +0000</pubDate>
		<dc:creator>Piotr Słabosz</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[litespeed]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://wpnoise.com/?p=390</guid>
		<description><![CDATA[What is VPS ? A virtual private server (VPS, also referred to as Virtual Dedicated Server or VDS) is a method of splitting a server. Each virtual server can run its own full-fledged operating system, and each server can be independently rebooted. The practice of partitioning a single server so that it appears as multiple [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is VPS ?</strong></p>
<p>A virtual private server (VPS, also referred to as Virtual Dedicated Server or VDS) is a method of splitting a server. Each virtual server can run its own full-fledged operating system, and each server can be independently rebooted.</p>
<p>The practice of partitioning a single server so that it appears as multiple servers has long been common practice in mainframe computers, but has seen a resurgence lately with the development of virtualization software and technologies for other architectures.</p>
<p><strong>What are the benefits of using VPS ?</strong></p>
<p>It is faster that shared hosting, so putting this to simple words your websites will work &#038; load faster with VPS. You will have full control of your system plus many other benefits.</p>
<p><strong>My hosting history</strong></p>
<p>I start with cheap shared hosting but after sometime I moved all my sites to VPS. I was testing many companies for long time but from almost 2 years I am using slicehost and I am pretty happy with them.</p>
<p>In this post I try to show you howto setup good VPS hosting server and use it for your websites. It was written by my friend <a href="http://creativeflux.co.uk/">Dru</a> who helped me setup my VPS and I think it will be a good howto for all of you.</p>
<p><strong>Basic Details:</strong></p>
<ul>
<li>VPS Hosting Company: Slicehost</li>
<li>WebServer: <a href="http://litespeedtech.com/">LiteSpeed</a></li>
</ul>
<p>When I am starting new project, website I need to create couple of things:</p>
<h4>1. <strong>Create user</strong></h4>
<p><strong>a.)</strong> create a user using webmin</p>
<p>- Click on System in the sidebar, then on users and groups<br />
- Click on create new user<br />
- for the username ALWAYS use the domain name for the name of the user. So in this case:   example.org do the same for the group (choose new group and name it the same way &#8211; THIS IS VERY IMPORTANT)<br />
- then click save</p>
<p>When you create the user in webmin there should be a field where you can set the group, that will let you pick the www-data group before you create the user. </p>
<p><strong>b.)</strong> shell method (i prefered this method)</p>
<p>I use this one: adduser username &#8211;ingroup www-data &#8211;force-badname</p>
<p>where username = whatever you want the user to be called, ie</p>
<p>adduser example.org &#8211;ingroup www-data &#8211;force-badname</p>
<h4>2. <strong>Create LiteSpeed folders</strong></h4>
<p>Now you need to FTP in (don&#8217;t use ssh or sftp it has to be ftp). (use the server ip, the username will be whatever you called the user and the password will be whatever you configured)</p>
<p>Once you&#8217;ve done that create the following folders:   <strong>config   public_html  cgi-bin</strong></p>
<h4>3. <strong>New site in LiteSpeed</strong></h4>
<p>Login to litespeed  http://your_IP/index.php (user: **** password: ****)</p>
<p>Go to configuration, then virtualhost templates.<br />
Click on PHP_SuEXEC</p>
<p>Where it says Member Virtual Hosts click the add link to the right of it, then fill in the following:</p>
<p>- virtualhost name &#8211; should be the domain name (example.org)<br />
- domain name &#8211; should be the same as the above<br />
- aliases &#8211; should be the same as the above except with www. at the start (www.example.org)<br />
- virtualhost root &#8211; Leave Blank</p>
<p>Save, and then go to actions and graceful restart to restart the webserver.</p>
<p>FTP your files into the public_html folder and you should be able to access them in your browser.</p>
<h4>4. <strong>Importing Databases</strong></h4>
<p> when you move website between hostings</p>
<p>First create a blank database with phpmyadmin.</p>
<p>Then in the commandline, navigate to the folder where the sql file is. Then do this command:</p>
<p>mysql -u user -p user_dbname < file.sql</p>
<p>where dbname = name of the blank database<br />
where file.sql = the SQL file you're importing.</p>
<p>It will ask you for the root password and then in a few seconds it'll be done.</p>
<h4>5. <strong>BONUS TIPS &#038; TRICKS</strong></h4>
<p><strong>a.) How to move files when migrating to new server ?</strong></p>
<p>On old server <a href="http://lantech.geekvenue.net/chucktips/jason/chuck/994016279/index_html">backup files with tar</a>, you use one command line to backup all files to one tar or tar.gz file.</p>
<p>Put this file in public_html folder on this server. Next  go to new server and:</p>
<p>wget link_to_the_gzip_file_on_the_old_server</p>
<p>Next untar the files to proper place and that is it.</p>
<p><strong>b.) Problem with file permissions</strong></p>
<p>Sometimes when i move files from one server to another i got problems with file permissions on new server. To fix I use this method:</p>
<p>cd /home/example.org</p>
<p>and then do</p>
<p>chown -R example.org:www-data public_html</p>
<p>and then</p>
<p>chmod 770 -R public_html.</p>
<p><strong>c.) MySQL problem with coding, default charset</strong></p>
<p>Sometimes i got problem (<a href="http://www.marteydodoo.com/2005/08/02/wordpress-utf-8-charset-woes/">WordPress UTF-8 Charset Woes</a>) with coding in sql base, there was strange coding problems in text and i need to fix that. I use this solution:</p>
<p>$ mysql &#8211;user=frog -p &#8211;execute=&#8221;DROP DATABASE dbname;<br />
CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;&#8221;</p>
<p>$ mysql &#8211;user=frog &#8211;max_allowed_packet=16M -p &#8211;default-character-set=utf8 dbname < dump_utf8.sql </p>
<p>and it works for me..</p>
<p>To find more about this one look here: Convert latin1 to UTF-8 in MySQL</p>
<p><strong>So good luck</strong> with great hosting <strong>Slicehost</strong> and webserver <strong>LiteSpeed</strong>, for me it works really great for almost 2 years now!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpnoise.com/howto-configure-good-vps-hosting/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

