Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: VPS - 1GB RAM enough for Web Server?

  1. #1
    Join Date
    May 2013
    Beans
    6

    VPS - 1GB RAM enough for Web Server?

    Hi All


    I want to buy/rent a very affordable VPS package at my ISP. Now it comes with the following:

    • 1GB RAM
    • 10GB Traffic
    • 10GB Disk Space
    • 1 vCPU
    • Ubuntu or CentOS




    Now my requirements are:

    • Surfing internet
    • Hosting a small to medium website (less than 1GB traffic a month)
    • DNS server
    • LAMP - Apache, MySQL and PHP
    • All have to run concurrently




    Now my question - Is 1GB of RAM sufficient to do all this? Remember this is a Virtual Environment running on either Ubuntu or CentOS.



    Also, what do you recommend - Ubuntu or CentOS?

  2. #2
    Join Date
    Sep 2009
    Location
    England
    Beans
    31
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: VPS - 1GB RAM enough for Web Server?

    If you're not expecting your server to be hammered then that will more than enough.

  3. #3
    Join Date
    May 2013
    Beans
    6

    Re: VPS - 1GB RAM enough for Web Server?

    OK Cool...but no, it will really just be a small website and me playing on it. What is your def of hammering?

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: VPS - 1GB RAM enough for Web Server?

    I don't think you'd need to run a DNS server on your VPS.

    How much are you going to be paying for that VPS? You can find some really nice deals on hosting or VPSes at https://www.webhostingtalk.com/

    I've been running my website on a 256MB VPS with 15GB of disk space and 1TB of bandwidth for 29.99 a year at http://serverdragon.com
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    May 2013
    Beans
    6

    Re: VPS - 1GB RAM enough for Web Server?

    @CharlesA - I want to run a DNS server to learn how it works - Educational purposes...What is your recommendation - CentOS or Ubuntu for my needs?

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: VPS - 1GB RAM enough for Web Server?

    Quote Originally Posted by DextrousDave View Post
    @CharlesA - I want to run a DNS server to learn how it works - Educational purposes...What is your recommendation - CentOS or Ubuntu for my needs?
    What do you want to learn about it? It would probably be more secure/easier to just mess with bind on a local virtual machine instead of a publicly accessible VPS. That way if you mess up the configuration, you don't cause the provider any extra load.

    As far as which OS, I've used Debian for a few servers, but my advice is to use what you are comfortable with.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: VPS - 1GB RAM enough for Web Server?

    Quote Originally Posted by DextrousDave View Post
    @CharlesA - I want to run a DNS server to learn how it works - Educational purposes...What is your recommendation - CentOS or Ubuntu for my needs?
    Few reccomendations

    1. If your going to experiment with a DNS server, make it so that the public cant access it. Its possible to unset the default settings while experimenting, and create an open relay. I dont think you want to be part of a DNS open relay botnet like the one that hit spamhaus earlier this year. Your provider probably wont be pleased either...
    2. Use SSH keys for authentication instead of a password. Passwords are weak and can be cracked :/
    3. For the OS, it really depends on what you want to use. Ubuntu and Debian-based distros are used, but its not the only thing people use. Fedora, RHEL, and CentOS are also common because they offer SeLinux. Unfortunately,this kind of defeats the purpose if you are using a OpenVZ VPS because OpenVZ doesn't support selinux. Its because it shares the kernel with the host.

      Generally, people go for releases with long term support, where they wont have to upgrade every 6 months, so go for something like Ubuntu 12.04 (LTS), Debian 7, CentOS, or Fedora if you dont want to be reinstalling your OS every once in a while to have the latest version.
    4. http://www.webhostingtalk.com/forumdisplay.php?f=104 has some nice VPS deals and reviews. Check them first unless you want to walk into a minefield that many have walked into and escaped to tell their stories

    Otherwise, 1G ram is enough for that.
    If your thinking of expanding or more traffic, use either Apache Worker MPM + mod_fcgid/mod_fcgi OR Apache Worker/Prefork/Event MPM + Varnish/Squid caching server OR Nginx+php5-fpm. Apache Prefork (the default mpm if your using mod_php for php files) scales horribly, and eats memory like a monster
    Last edited by sandyd; June 12th, 2013 at 08:03 PM.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  8. #8
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: VPS - 1GB RAM enough for Web Server?

    What is your recommendation - CentOS or Ubuntu for my needs?
    I use CentOS on servers and Ubuntu on desktops. I run a couple of applications like MailScanner which are better packaged for RedHat-flavored machines. I also have had issues with the default configurations of some software in Ubuntu like sendmail. Having built servers since RedHat 4.0 was released in the mid-1990s I'm much more accustomed to the layout of RH-flavored machines like CentOS.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  9. #9
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: VPS - 1GB RAM enough for Web Server?

    What is your recommendation - CentOS or Ubuntu for my needs?
    I use CentOS on servers and Ubuntu on desktops. I run a couple of applications like MailScanner which are better packaged for RedHat-flavored machines. I also have had issues with the default configurations of some software in Ubuntu like sendmail. Having built servers since RedHat 4.0 was released in the mid-1990s I'm much more accustomed to the layout of RH-flavored machines like CentOS.

    For simple web service you could run a machine with half that amount of memory and not have problems. I have a Linode with 512K that accepts inbound mail with SMTP and handles a few websites with PHP and PostgreSQL databases. I've still got about 128K of memory free, though it has cached about the same amount of code in swap as well.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  10. #10
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: VPS - 1GB RAM enough for Web Server?

    As well as being an excellent VPS provider Linode also has great documentation for setting up various services. It's worth bookmarking even if your VPS is with someone else.

    https://library.linode.com/
    Cheesemill

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •