Can anyone explain how hosting works?

bigbiffs

Newbie
Joined
Jun 23, 2010
Messages
24
Reaction score
11
I'm currently on a shared plan with HostGator and have recently been disconnected due to high cpu usage ( I have a few ebay store script sites that build a large cache file) and a few wordpress sites. I don't have a lot of traffic (yet) but I am learning. I don't really know what I should get and I was confused by the VPS hosting and how much disk space is needed, etc...

Is there a chart that easily explains exactly what a person needs with the number of sites/traffic?

Any recommendations for an inexpensive hosting (other than hostgator)

Thanks!
 
There is no graph you should follow unless its a resource usage/statistical graph generated by your server. Everyone will have different needs. For example, plain HTML websites will require almost no CPU and MySQL usage but on the flip side it may take alot of inodes (actual files.) Then you got some basic php websites that switch out dates and does includes for easy management. Very little CPU, no MySQL and low inode count. Start adding in MySQL, encryption, large loops etc it will quickly increase load.

Code:
<?php
$i = 0;
$password = 'SomeStupidlyLongText';
while ($i < 1000)
    $password = hash('sha512', $password);
?>
That will get you kicked for high CPU usage. The loop isn't bad, but rather the contents. The encryption will cause it to slow alot. If you do encryption like that and calculate on every page load... bad.

Code:
<?php

mysql_connect(..)
mysql_select_table(..)
mysql_query("INSERT INTO stats (`ip`, `refer`, `agent`) VALUES '$_SERVER['REMOTE_ADDR']', '$_SERVER['referer']', '$_SERVER['agent']');
?>
Have that one every page and a decent amount of traffic and you could get kicked for high MySQL usage. MySQL usage also skyrockets when you have alot of joins and even more so when there is a lot of data.



Just keep an eye on your graphs, watch debugging info and see where the problem is then get it patched.
 
why you don't get a dedicated or a vps to have your own resources?
 
I would recommend getting a managed VPS account. This way you have dedicated resources for your site. Also with managed you get cpanel with most host so it will be easy to manage your sites.
 
As what a few already mentioned you should look into a fully managed VPS with cpanel (since thats the control panel you're already using). Make sure you get at least 3-4GB of ram on the VPS. As far as managing it goes, the provider will manage the VPS for you and make sure it's updated and secure. The only difference is the cost as it's much more costly than a regular shared hosting account but will give you more resources.
 
As per your requirement managed VPS would be best option for you.
 
Back
Top