The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Optimisations for hosting only one website.

Discussion in 'Workarounds and Optimization' started by Renegader, Oct 12, 2011.

  1. Renegader

    Renegader Registered

    Joined:
    Oct 12, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have a 1GB Cloud VPS account with Storm On Demand (which is a Liquidweb company). So far they're great and their servers are exceptional as well as their service.

    The CPU it has is an i5 760 2.8ghz CPU. I'm using around 300 MB of RAM on average so it's all good. My website is here - it has a forum software, MyBB installed as well as Wordpress. Everything on-site is pretty much optimised, so now I'm just working on server-side optimisations. :)

    I have the new cPanel which supports 5.5 as well at mod_fcgi and xCache enabled on both Wordpress and the MyBB forum. Can both memcache and xcache be used? Not sure.

    I'm not sure if the my.cnf is correct, here's what's in it:
    Code:
    [mysqld]tmpdir=/tmp
    open_files_limit=33628
    
    
    #skip-innodb
    #innodb_file_per_table=1
    #innodb_file_format=barracuda
    #innodb_strict_mode=0
    #innodb_fast_shutdown=0
    #ignore-builtin-innodb
    #plugin-load=innodb=ha_innodb_plugin.so
    
    
    #ssl-cert=/var/cpanel/ssl/exim/exim.crt
    #ssl-key=/var/cpanel/ssl/exim/exim.key
    
    
    old_passwords=1
    datadir=/var/lib/mysql
    #skip-locking
    #safe-show-database
    tmp_table_size = 128M
    max_heap_table_size = 128M
    query_cache_limit=4M
    query_cache_size=32M ## 32MB for every 1GB of RAM
    query_cache_type=1
    max_user_connections=72
    max_connections=72
    collation_server=utf8_unicode_ci
    character_set_server=utf8
    
    
    
    
    delayed_insert_timeout=40
    
    
    interactive_timeout=10
    wait_timeout=3600
    connect_timeout=20
    thread_cache_size=128
    key_buffer=32M ## 32MB for every 1GB of RAM
    join_buffer=1M
    max_connect_errors=20
    max_allowed_packet=16M
    table_cache=8196
    #record_buffer=1M
    sort_buffer_size=1M ## 1MB for every 1GB of RAM
    read_buffer_size=1M ## 1MB for every 1GB of RAM
    read_rnd_buffer_size=1M  ## 1MB for every 1GB of RAM
    thread_concurrency=2 ## Number of CPUs x 2
    myisam_sort_buffer_size=32M
    server-id=1
    
    
    default-storage-engine=InnoDB
    innodb_file_per_table=1
    [mysql.server]
    user=mysql
    
    
    
    
    [safe_mysqld]
    open_files_limit=33628
    err-log=/var/log/mysqld.log
    pid-file=/var/lib/mysql/mysql.pid
    
    
    [mysqldump]
    quick
    max_allowed_packet=16M
    
    
    [mysql]
    no-auto-rehash
    
    Also have PHP 5.3.8. Any tips, or links to threads, guys? :)
     
    #1 Renegader, Oct 12, 2011
    Last edited: Oct 12, 2011
  2. gnutoolbox

    gnutoolbox Member

    Joined:
    Sep 25, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  3. Renegader

    Renegader Registered

    Joined:
    Oct 12, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    How will it utilise both xCache and memcached, though? i.e In my forum config I can either put xCache or Memcached, but not both?

    Varnish is completely separate from xCache?
     
  4. gnutoolbox

    gnutoolbox Member

    Joined:
    Sep 25, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    There are two types of cache (code & data cache). Xcache is used for the code cache and memcached is for the data cache (ie..mysql queries etc). For data cache, memcached is the best and the most scalable. varnish is completely separate from the X & memcached. Its a httpd accelerator which listen on port 80.
     
Loading...

Share This Page