<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6133211033622551862</id><updated>2024-10-07T08:07:28.061+02:00</updated><title type='text'>VPS tips</title><subtitle type='html'>How to manage and setup your VPS, what is important when choosing a VPS and how to spot a good VPS deal.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-5798041213454551824</id><published>2012-12-05T15:15:00.001+01:00</published><updated>2012-12-05T15:20:17.231+01:00</updated><title type='text'>Debugging PHP</title><content type='html'>Debugging PHP without an IDE (Integrated Development Environment) can be difficult at first. But it&#39;s actually pretty easy using the Apache error log. Of course, a full blown IDE will probably offer many more debugging functionalities but for a quick debug the logs can be a great help. This short tutorial assumes you already have a VPS running with Apache and PHP. If you need help to setup a LAMP server, see the previous articles about creating a fully functional VPS webserver:&lt;br /&gt;
&lt;a href=&quot;http://vpstips.blogspot.nl/2010/09/setting-up-lamp-vps-part-1.html&quot;&gt;http://vpstips.blogspot.nl/2010/09/setting-up-lamp-vps-part-1.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://vpstips.blogspot.nl/2010/10/setting-up-lamp-vps-part-2.html&quot;&gt;http://vpstips.blogspot.nl/2010/10/setting-up-lamp-vps-part-2.html &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To start debugging create a simple PHP script with an error:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;echo &quot;&amp;lt;? echo phpinf(); ?&amp;gt;&quot; &amp;gt; /var/www/vps.error.php&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
This simple script mistakes phpinfo for phpinf (without the letter &quot;o&quot; at the end). This results in a fatal PHP error. The phpinfo functions dipslays some general information about your server and PHP environment. Details: &lt;a href=&quot;http://php.net/manual/en/function.phpinfo.php&quot;&gt;http://php.net/manual/en/function.phpinfo.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To debug this script look at the Apache error log.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;tail -f /var/log/apache2/error.log&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
Depending on your distribution the log location may vary and you might need root permissions to open the file. The error log will show you an error similar to this one:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;PHP Fatal error: Unknown function: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;phpinf&lt;/span&gt;&lt;/span&gt;() in...&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
The error log is a quick way to debug PHP errors. Default PHP installations will supress error messages so if you get a blank page or a half loaded page in your browser it might be worth checking your Apache error logs! </content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/5798041213454551824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2012/12/debugging-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/5798041213454551824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/5798041213454551824'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2012/12/debugging-php.html' title='Debugging PHP'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-9138779972814832212</id><published>2012-12-05T15:02:00.002+01:00</published><updated>2012-12-05T15:21:32.699+01:00</updated><title type='text'>VPS upgrades</title><content type='html'>Most VPS providers offer various packages allowing you to upgrade your server as you see fit. Because a VPS can be relocated to a new server and the provider often takes care of backups or snapshots, a VPS is easy to maintain when sustainig sudden growth. However, there comes a time when outgrowing a VPS can become reality. As a general rule of thumb 50-100 USD/EUR a month can hire a budget dedicated server providing at least 4GB ram with 250GB disk. When your VPS provider starts asking double this amount (remember they take probably care of backups) it&#39;s time to ask for a custom quote, relocate the VPS or go for a dedicated server.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/9138779972814832212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2012/12/vps-upgrades.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/9138779972814832212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/9138779972814832212'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2012/12/vps-upgrades.html' title='VPS upgrades'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-7425439768653970787</id><published>2012-12-05T14:50:00.001+01:00</published><updated>2012-12-05T14:54:42.339+01:00</updated><title type='text'>SSD VPS</title><content type='html'>I&#39;ve got some questions about VPS performance and mainly about disk performance. It&#39;s not uncommon for some budget VPS providers to offer an environment stored on a RAID array. RAID is great for data redundancy and increased disk speed but on a busy server your VPS performance can degrade to suboptimal levels. Detecting an oversold or overused VPS with disk problems is generally easy:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Saving a simple text file takes over 2 seconds&lt;/li&gt;
&lt;li&gt;Starting disk intensive applications is extremely slow, at least two times slower than on a dedicated machine&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Many VPS providers now offer SSD variants to overcome these problems. I&#39;m currently testing a VPS from DirectVPS (https://www.directvps.nl/vps_ssd.plp) where disk activity was often the bottleneck on their regular line. So far, the results have been good but concrete benchmarks are missing. However, problems with extremely long disk writes are gone!</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/7425439768653970787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2012/12/ssd-vps.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/7425439768653970787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/7425439768653970787'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2012/12/ssd-vps.html' title='SSD VPS'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-7638593840689832855</id><published>2011-01-19T15:47:00.000+01:00</published><updated>2011-01-19T15:47:33.140+01:00</updated><title type='text'>SSH without passwords</title><content type='html'>If you need quick access from your home to the VPS there is an easy solution that won&#39;t require a password to login. First, create a private and public ssh key pair on your desktop:&lt;br /&gt;
&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ssh-keygen -t rsa&lt;/div&gt;&lt;/blockquote&gt;Copy the public key to the vps (replace vps by the hostname or IP address):&lt;br /&gt;
&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ssh-copy-id -i .ssh/id_rsa.pub vps&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Login to the VPS from the desktop:&lt;br /&gt;
&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ssh vps&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
And you should be able to login without a password. Enjoy!</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/7638593840689832855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2011/01/ssh-without-passwords.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/7638593840689832855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/7638593840689832855'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2011/01/ssh-without-passwords.html' title='SSH without passwords'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-8455445202696588958</id><published>2010-10-15T16:20:00.000+02:00</published><updated>2010-10-15T16:20:09.824+02:00</updated><title type='text'>Setting up a LAMP VPS - Part 2</title><content type='html'>In &lt;a href=&quot;http://vpstips.blogspot.com/2010/09/setting-up-lamp-vps-part-1.html&quot;&gt;Part 1&lt;/a&gt; the foundation of the LAMP server was created. Now part 2 of this tutorial will help you setup the M and P and at the end you will have a fully function LAMP server.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;M - Mysql&lt;/span&gt;&lt;br /&gt;
MySQL is the database backend that provides an easy to use database compatible with PHP. There are several databases you can use, such as Postgresql or Firebird. If you plan on using MySQL, install it as follows:&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install mysql-server-5.0&lt;/span&gt;&lt;/blockquote&gt;On a Debian system you may be asked to provide a password for access to the SQL server.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;P - PHP&lt;/span&gt;&lt;br /&gt;
PHP is a scripting language that is used to create dynamic webpages. Install PHP:&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install php5&lt;/blockquote&gt;Although it says: &quot;Reloading web server config&quot; I had to restart apache for the changes to take effect:&lt;br /&gt;
&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/etc/init.d/apache2 restart&lt;/div&gt;&lt;/blockquote&gt;Now create a PHP test page to see if everything is working fine.&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;echo &quot;&amp;lt;? echo phpinfo(); ?&amp;gt;&quot; &amp;gt; /var/www/test.php &lt;/span&gt;&lt;/blockquote&gt;Navigate to your host/test.php and you should see some tables with PHP information! Congratulations the LAMP server is now fully functional!</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/8455445202696588958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/10/setting-up-lamp-vps-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/8455445202696588958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/8455445202696588958'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/10/setting-up-lamp-vps-part-2.html' title='Setting up a LAMP VPS - Part 2'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-8984518109991601110</id><published>2010-09-26T14:31:00.000+02:00</published><updated>2010-09-26T14:31:03.690+02:00</updated><title type='text'>Easy access to your VPS</title><content type='html'>An easy but useful tip is to add the hostname of your VPS to your system hosts files. Often, a VPS is referred by its IP address or by its hostname given by the vps company, e.g. vps211.vpscompany.com.&lt;br /&gt;
&lt;br /&gt;
An easy way to access your VPS is to give the VPS a friendly name in your hosts file. Edit the hosts file which is located at:&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Windows: C:\Windows\System32\drivers\etc\hosts&lt;br /&gt;
Linux&amp;nbsp; : /etc/hosts&lt;/blockquote&gt;The structure of the file is mostly the same on both operatings systems. Add a line to host file, replace 123.123.123.123 with the IP address of your VPS and replace vps1 with the name you want to access the VPS.&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;123.123.123.123 vps1&lt;/blockquote&gt;&lt;br /&gt;
Fire up your browser, remote desktop or SSH and simply connect to vps1. The system will connect to the IP address specified in the hosts file!</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/8984518109991601110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/09/easy-access-to-your-vps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/8984518109991601110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/8984518109991601110'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/09/easy-access-to-your-vps.html' title='Easy access to your VPS'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-3663785852107848680</id><published>2010-09-23T14:32:00.001+02:00</published><updated>2010-09-23T14:33:51.996+02:00</updated><title type='text'>Prevent SSH bots</title><content type='html'>Before completing the &lt;a href=&quot;http://vpstips.blogspot.com/2010/09/setting-up-lamp-vps-part-1.html&quot;&gt;LAMP tutorial&lt;/a&gt; I will show some important considerations if you start working on a new VPS.&lt;br /&gt;
&lt;br /&gt;
If you have been running a Linux server for a while you have probably noticed SSH bots trying to access your server. These bots try to break your server passwords and compromise your system. If you have strong passwords this is not a real big threat but it&#39;s annoying to see /var/log/auth.log grow with lines like this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Sep 21 17:24:19 localhost sshd[2638]: Failed password for invalid user root from 113.6.252.48 port 42782 ssh2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Sep 21 17:24:24 localhost sshd[2640]: User root from 113.6.252.48 not allowed because not listed in AllowUsers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Sep 21 17:24:24 localhost sshd[2640]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=113.6.252.48&amp;nbsp; user=root&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problems is most of these boxes are already hacked boxes. So it&#39;s not easy to find the originating IP. Luckily these attacks are easy to stop, there are two easy solutions:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Option 1: change the SSH port&lt;/span&gt;&lt;br /&gt;
This option simply changes the port you connect to. It&#39;s a simple solution but it works really well. Attacks went down from a lot to zero on one of my VPSes. To change the port edit /etc/ssh/sshd_config and change Port 22 to Port 1234 for example. Restart the ssh server and you are done. Remember to test the connection to your VPS on the new port first before exiting your current SSH session.&lt;br /&gt;
&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vim /etc/ssh/sshd_config&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/etc/init.d/ssh restart&lt;/div&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Option 2: block attackers&lt;/span&gt;&lt;br /&gt;
The other option to stop these attackers is to block SSH attacks after a few failed attempts. There is a tool especially designed to stop all kinds of unwanted service access. It is called denyhosts. Installation is very simple on an Ubuntu or Debian system: &lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install denyhosts&lt;/span&gt;&lt;/blockquote&gt;And you&#39;re done! Well almost, you probably want to add your home/work IP to /etc/hosts.allow. This prevents denyhosts from blocking your home IP. This can happen when you had too many failed login attempts, even in the past (denyhosts thoroughly checks your login history).&lt;br /&gt;
&lt;br /&gt;
You can tweak some values if you like in /etc/denyhosts.conf . I always change the setting DENY_THRESHOLD_VALID to 5. This determines the amount of failed attempts you can make on an existing and allowed user, before you are blocked. You don&#39;t have to change this value but it is a bit risky because the threshold for invalid accounts is 10. Using this knowledge an attacker can determine what system accounts exist. If you have edited the config file restart denyhosts for the changes to take effect.&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/etc/init.d/denyhosts restart&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/3663785852107848680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/09/prevent-ssh-bots.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/3663785852107848680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/3663785852107848680'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/09/prevent-ssh-bots.html' title='Prevent SSH bots'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-7590200690100165140</id><published>2010-09-21T22:06:00.000+02:00</published><updated>2010-09-21T22:06:34.604+02:00</updated><title type='text'>Setting up a LAMP VPS - Part 1</title><content type='html'>A popular activity is installing LAMP software on an (unmanaged) VPS. LAMP stands for Linux, Apache, MySql and PHP. With a LAMP server you have a professional working environment used by thousands of businesses around the world. With a VPS LAMP you have an extremely powerful system for only a few dollars a month.&lt;br /&gt;
&lt;br /&gt;
In part 1 we will setup the L and the A and end with a fully functional webserver allowing static content. For this tutorial, I assume your VPS allows you to install/restore a Linux distro and provides you with a SSH login after installing. Most VPSes have this functionality and most offer it for free.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;L - Linux&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Skip this step if you already have a VPS with Linux on it!&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
You need to install or restore an image from your control panel. After installation of the image you will receive a (root) password and you are ready to login. When installing a new operating system be advised to make a good backup because everything will be wiped clean of your server!&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will be installing Debian Lenny as the operating system. This OS has the advantage that is stable, secure and I have never encountered an update that breaks the system. The disadvantage is that it is always one step behind the most current stable software packages.&lt;br /&gt;
This is not necessarily a bad thing, a good example is the PHP package. PHP is currently at version 5.3, but Debian ships with 5.2. The PHP developers released 5.3.3 which can break earlier 5.3.x code using namespaces. With Debian you are still using PHP 5.2 so you are in no way impacted by this problem.&lt;br /&gt;
For this tutorial, Debian is the easiest choice. You can also choose another distro but then you have to change the commands for installing the software.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installation steps&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Access your VPS control panel and restore an OS image to your VPS&lt;/li&gt;
&lt;li&gt;You will be given a (root) password to login to your freshly installed server.&lt;/li&gt;
&lt;li&gt;If you are connecting from Windows, download Putty and connect to your VPS via SSH. &lt;a href=&quot;http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html&quot;&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;A - Apache&lt;/span&gt;&lt;br /&gt;
Apache serves the webpages to your visitors and it is the mostly used webserver in the world. To install Apache we login to the VPS and enter a single command as root, it&#39;s as simple as that.&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install apache2&lt;/blockquote&gt;Test the installation by navigating to the domainname or IP address of your VPS. The apache webserver is automatically started after installation and also after a reboot (on Debian Lenny at least). If you don&#39;t see a test page check if your server is running a firewall that blocks access. Run this command on your VPS (install links first using apt-get install links):&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;links http://localhost&lt;/blockquote&gt;If this command works on the VPS but your website does not work remotely you probably have a firewall blocking access from outside. Search with Google for iptables on tips how to change this. It is not advised to disable your firewall completely if there is one running.&lt;br /&gt;
&lt;br /&gt;
Installation is as simple as that. Once complete, you are greeted with a welcome screen, which is simply: &lt;b&gt;It works!&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Configuration is not necessary but it is good practice to have the web directory owned by the www-data group and make all web files writable by the www-data group. This means the webserver (and PHP) can also change the files on your VPS, this can be both and advantage and disadvantage!&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;chgrp www-data /var/www/ -R&lt;br /&gt;
chmod g+w /var/www/ -R&lt;/blockquote&gt;If you want to give a user named wilco access to change the webfiles enter this command as root:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;gpasswd -a wilco www-data&lt;/span&gt;&lt;/blockquote&gt;The system will respond with something like: Adding user wilco to group www-data. Now login as wilco and edit /var/www/index.html!</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/7590200690100165140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/09/setting-up-lamp-vps-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/7590200690100165140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/7590200690100165140'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/09/setting-up-lamp-vps-part-1.html' title='Setting up a LAMP VPS - Part 1'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-1653959132215774364</id><published>2010-09-21T13:48:00.000+02:00</published><updated>2010-09-21T13:48:20.818+02:00</updated><title type='text'>Spotting a good VPS deal</title><content type='html'>A friend of mine asked me if he had found a good VPS offer. This made me think if there are any indicators on which you can quickly decide to take or discard a VPS offer. Choosing a VPS is not as difficult as choosing a real (dedicated or colocated) server because a VPS is often cheaper per month and has a cheaper setup cost. This means that a bad VPS is not very expensive to replace. When I checked my own VPS servers and reviewed the offer of my friend I managed to compile the following VPS checklist. These VPS tips can help you decide on an offer:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Amount of resources available. Of course, there is a correlation between the price of a VPS and the performance. The following guideline should be sufficient in deciding if a VPS offer is a good deal:&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;15 dollar/euro VPS: at least 256 MB ram and 15GB disk space.&lt;/li&gt;
&lt;li&gt;30 dollar/euro VPS: at least 1GB RAM, 50GB harddisk and 500GB bandwidth.&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;Price of a VPS. Most virtual private servers are available ranging from 5-150 dollars/euro. When you consider renting a 100+ dollar VPS it is often cheaper to hire a dedicated server. On a dedicated server you have no other people claiming your resources so you can get a better performance.&lt;/li&gt;
&lt;li&gt;Setup fees. A high setup fee can prevent you from switching to another VPS. A good VPS offer means the setup fee is between zero and 15 dollars.&lt;/li&gt;
&lt;li&gt;Available extras. Are there automatic and free backups? Is there a limit of VPS machines on a physical server (too many impact your own performance)? Can you easily reinstall or reset the VPS without extra costs?&lt;/li&gt;
&lt;li&gt;Company reputation or lifetime. I find this is not very important because I have found some startup companies with little reputation providing excellent service. Other providers manage to improve their performance quickly by adding another physical server or by switching to another datacenter.&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/1653959132215774364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/09/spotting-good-vps-deal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/1653959132215774364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/1653959132215774364'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/09/spotting-good-vps-deal.html' title='Spotting a good VPS deal'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-6299426234546966979</id><published>2010-09-21T12:32:00.007+02:00</published><updated>2010-09-22T09:23:46.204+02:00</updated><title type='text'>Check your VPS performance</title><content type='html'>So you have your brand new shining VPS delivered? Or is your VPS not as fast as it should be? How do you know you get what you&#39;re paying for?&lt;br /&gt;
Well, there are a few simple tips you can use. Most VPS companies compete on memory, processors, diskspace and bandwidth.&lt;br /&gt;
&lt;br /&gt;
If you have a Linux VPS you  can easily check your VPS using the following commands.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Memory&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The command &quot;free -m&quot; shows you how much memory you have available and used. The two most important fields for now are total and used, the yellow fields in the picture. Total gives you the memory available on your server. In this case, 1024 MB. The used memory -/+ cache is the memory your server is currently using: 99 MB. The field above has 358 MB, this is including all the temporary cached data and is not relevant for now.&lt;br /&gt;
VPS servers often have a certain amount of guaranteed memory and cache or burst memory. Guaranteed memory is 1024, this memory is for this VPS only. This server has no burst memory available, although some VPS companies regard swap space as burst memory, so this server can be sold as a server with 1GB guaranteed RAM and 1GB burst RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5kVDeFcQmFuZQ8T0NHelifgPWXRkLgw5ZlXShajXWs9aBbgncedjYNtSynN8SVs-cGYi9yXsH1Mdv0nxiWMw0GcFmDbZOhz0JqFZWdHSYwb-E4fY5WY4H49uaryr7sudAeBHpCXIE76o5/s1600/vps-freem.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5kVDeFcQmFuZQ8T0NHelifgPWXRkLgw5ZlXShajXWs9aBbgncedjYNtSynN8SVs-cGYi9yXsH1Mdv0nxiWMw0GcFmDbZOhz0JqFZWdHSYwb-E4fY5WY4H49uaryr7sudAeBHpCXIE76o5/s400/vps-freem.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Free -m shows the memory on your VPS&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Processor&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
Some VPS servers give you access to one or more CPUs. To check how many you have available use a virtual file in the /proc filesystem called cpuinfo:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;wilco@~/$ cat /proc/cpuinfo&lt;br /&gt;
processor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;br /&gt;
vendor_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : GenuineIntel&lt;br /&gt;
cpu family&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 6&lt;br /&gt;
model&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 44&lt;br /&gt;
model name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Intel(R) Xeon(R) CPU&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L5630&amp;nbsp; @ 2.13GHz&lt;br /&gt;
stepping&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2&lt;br /&gt;
cpu MHz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2133.472&lt;br /&gt;
cache size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 12288 KB&lt;br /&gt;
fdiv_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
hlt_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
f00f_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
coma_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
fpu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : yes&lt;br /&gt;
fpu_exception&amp;nbsp;&amp;nbsp; : yes&lt;br /&gt;
cpuid level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 11&lt;br /&gt;
wp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : yes&lt;br /&gt;
flags&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc pni ssse3 sse4_1 sse4_2 popcnt ida&lt;br /&gt;
bogomips&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 4270.89&lt;br /&gt;
clflush size&amp;nbsp;&amp;nbsp;&amp;nbsp; : 64&lt;br /&gt;
power management:&lt;br /&gt;
&lt;br /&gt;
processor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1&lt;br /&gt;
vendor_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : GenuineIntel&lt;br /&gt;
cpu family&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 6&lt;br /&gt;
model&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 44&lt;br /&gt;
model name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Intel(R) Xeon(R) CPU&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L5630&amp;nbsp; @ 2.13GHz&lt;br /&gt;
stepping&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2&lt;br /&gt;
cpu MHz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2133.472&lt;br /&gt;
cache size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 12288 KB&lt;br /&gt;
fdiv_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
hlt_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
f00f_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
coma_bug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;br /&gt;
fpu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : yes&lt;br /&gt;
fpu_exception&amp;nbsp;&amp;nbsp; : yes&lt;br /&gt;
cpuid level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 11&lt;br /&gt;
wp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : yes&lt;br /&gt;
flags&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc pni ssse3 sse4_1 sse4_2 popcnt ida&lt;br /&gt;
bogomips&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 4270.89&lt;br /&gt;
clflush size&amp;nbsp;&amp;nbsp;&amp;nbsp; : 64&lt;br /&gt;
power management:&lt;/blockquote&gt;Output shows this VPS has two CPUs available, processor 0 and processor 1.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Disk space&lt;/span&gt;&lt;br /&gt;
Use the command df -h to find the available disk space. The disk space that is allocated to you is in the picture below, output of this command is different on each server. The largest partition is often the disk space allocated to your VPS. On this VPS it is 99 GB, which is sold as 100 GB.&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhex8wZlw0aH7sv4k19BWASRlcJs_8v76-n6ylRw95bt2RrJaU9zca453YrdeEWqg5ZCg5XWolujHLik9boub8jEkP0XG1v-_RCWZDJAJ1p-TC6PbTSYOzxrNlPBv237lJCGRl9oGZSuiPJ/s1600/vps-dfh.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;93&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhex8wZlw0aH7sv4k19BWASRlcJs_8v76-n6ylRw95bt2RrJaU9zca453YrdeEWqg5ZCg5XWolujHLik9boub8jEkP0XG1v-_RCWZDJAJ1p-TC6PbTSYOzxrNlPBv237lJCGRl9oGZSuiPJ/s400/vps-dfh.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Available disk space is 99G on this VPS&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Bandwidth&lt;/span&gt;&lt;br /&gt;
Data traffic is not free. Most VPS companies sell you a set amount of bandwidth for a fixed price. This is often something like 100GB or a 1000GB. The best and most reliable way to check your bandwidth is to use the control panel of your VPS. If this is unavailable you can get a good indication by using the command /sbin/ifconfig&lt;br /&gt;
&lt;br /&gt;
There is a lot of output and at the end is something like:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;RX bytes:1878459788 (1.7 GiB)&amp;nbsp; TX bytes:64280680 (61.3 MiB)&lt;/blockquote&gt;&lt;br /&gt;
This means we have sent 1.7 GB and received 61 MB. This figure is not very reliable as you can reset your network interface and also reset the data sent and received.</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/6299426234546966979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/09/check-your-vps-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/6299426234546966979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/6299426234546966979'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/09/check-your-vps-performance.html' title='Check your VPS performance'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5kVDeFcQmFuZQ8T0NHelifgPWXRkLgw5ZlXShajXWs9aBbgncedjYNtSynN8SVs-cGYi9yXsH1Mdv0nxiWMw0GcFmDbZOhz0JqFZWdHSYwb-E4fY5WY4H49uaryr7sudAeBHpCXIE76o5/s72-c/vps-freem.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6133211033622551862.post-4771188042866341690</id><published>2010-09-21T11:49:00.000+02:00</published><updated>2010-09-21T11:49:56.241+02:00</updated><title type='text'>Choosing a suitable VPS</title><content type='html'>&lt;b&gt;VPS&lt;/b&gt; stands for Virtual Private Server. This means you rent a virtual server, which is a server running inside another server. A VPS is often a lot cheaper compared to a real server, VPS servers start at 5 dollars/euro each month.&lt;br /&gt;
&lt;br /&gt;
Virtual servers have some advantages over real servers:&lt;br /&gt;
- Cheap servers compared to real servers.&lt;br /&gt;
- No costs for replacing hardware&lt;br /&gt;
- Backups are often automated&lt;br /&gt;
- Setup is often very quick and easy&lt;br /&gt;
&lt;br /&gt;
Just like with a real server you have an option to hire a managed or unmanaged dedicated server. Unmanaged servers are meant to be used by people that have some experience in setting up a server, you have to install and setup everything yourself.&lt;br /&gt;
A managed server means you get help from the company you are hiring the server from. Often, you can get a control panel or have the company install software for you. Another important consideration is the use of a premium VPS. A &lt;i&gt;premium&lt;/i&gt; VPS service should give better performance compared to a&lt;i&gt; standard&lt;/i&gt; VPS. A premium VPS is more expensive but it has more resources available and thus gives you a faster server.&lt;br /&gt;
&lt;br /&gt;
To help you make a decision use the following steps:&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;Requirements&lt;/th&gt;&lt;th&gt;Best option&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Easy setup, beginner&lt;/td&gt;&lt;td&gt;Managed VPS&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Easy setup, advanced&lt;/td&gt;&lt;td&gt;Unmanaged VPS&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;High performance&lt;/td&gt;&lt;td&gt;Premium VPS&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Maximum performance&lt;/td&gt;&lt;td&gt;Premium VPS or dedicated&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Specialized server&lt;/td&gt;&lt;td&gt;Dedicated&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://vpstips.blogspot.com/feeds/4771188042866341690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vpstips.blogspot.com/2010/09/choosing-suitable-vps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/4771188042866341690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6133211033622551862/posts/default/4771188042866341690'/><link rel='alternate' type='text/html' href='http://vpstips.blogspot.com/2010/09/choosing-suitable-vps.html' title='Choosing a suitable VPS'/><author><name>Wilco</name><uri>http://www.blogger.com/profile/02736100599854625035</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>