1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can anyone explain how hosting works?

Discussion in 'Web Hosting' started by bigbiffs, Jul 22, 2012.

  1. bigbiffs

    bigbiffs Newbie

    Joined:
    Jun 23, 2010
    Messages:
    24
    Likes Received:
    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!
     
  2. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    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.
     
    • Thanks Thanks x 1
  3. mazgalici

    mazgalici Supreme Member

    Joined:
    Jan 2, 2009
    Messages:
    1,489
    Likes Received:
    881
    Home Page:
    why you don't get a dedicated or a vps to have your own resources?
     
  4. Dknzor

    Dknzor Newbie

    Joined:
    Jan 25, 2016
    Messages:
    28
    Likes Received:
    2
    Yes this should be the best option
     
  5. CenTex Hosting

    CenTex Hosting Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 8, 2009
    Messages:
    1,522
    Likes Received:
    577
    Gender:
    Male
    Occupation:
    Admin
    Location:
    Austin, TX
    Home Page:
    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.
     
  6. Alex1098

    Alex1098 Junior Member

    Joined:
    Dec 17, 2015
    Messages:
    109
    Likes Received:
    31
    I would suggest going for a VPS as well
     
  7. ioZoom

    ioZoom Registered Member

    Joined:
    Dec 3, 2015
    Messages:
    58
    Likes Received:
    7
    Location:
    Houston, Texas
    Home Page:
    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.
     
  8. lukapresic

    lukapresic Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 18, 2014
    Messages:
    196
    Likes Received:
    29
    Occupation:
    System admin
    Location:
    Mars
    Home Page:
    Dedicated servers are much better ..
     
  9. bermanHost

    bermanHost Regular Member

    Joined:
    Aug 19, 2014
    Messages:
    478
    Likes Received:
    40
    As per your requirement managed VPS would be best option for you.