I run xenforo on a VPS, 2GB ram, 50GB disk. My forum has ~15K users, 200K posts, ~200-300 posts per day and ~20 members online. Can you help me please to get the most of my server for this size of forum?
Uhh...upgrade Ubuntu (considering it was released in 2009 - even though it is an LTS version probably, it's still coming up on the 5 year EOL), upgrade PHP to at least the 5.4 series (your version released 12/12) and upgrade mySQL (to Percona or MariaDB) as first steps?Yes, I use Ubuntu 10.4 Apache (cgi-fcgi), PHP 5.3.2, MySQL 5.1.72.
Yes, it's an TLS version. The problem is that the hosting provider does not allow OS changes. They say:Uhh...upgrade Ubuntu (considering it was released in 2009 - even though it is an LTS version probably
So, if I go through this change I can choose between Ubuntu 12.04 and Centos 6. Which one is better?you should not upgrade your system manually. If you try to the upgrade will fail and your system will be unavailable. If you want to use a newer Ubuntu you are able the get use of parallel setup. This means a new server will be installed with your desired operating system.
Debian.Yes, it's an TLS version. The problem is that the hosting provider does not allow OS changes. They say:
So, if I go through this change I can choose between Ubuntu 12.04 and Centos 6. Which one is better?
Never heard of this to be honest... Is this a dedicated server or VPS? You should be able to change the OS without difficulty any time you like.you should not upgrade your system manually. If you try to the upgrade will fail and your system will be unavailable. If you want to use a newer Ubuntu you are able the get use of parallel setup. This means a new server will be installed with your desired operating system.
They probably are used to centOS in which you might as well do that since you can't easily upgrade it (between major versions). <said as I start my high speed run for cover from all the inbound friendly fire! >Never heard of this to be honest... Is this a dedicated server or VPS? You should be able to change the OS without difficulty any time you like.
This is where I disagree. If you OS is getting where it is no longer supported officially then it is time to think about upgrading to an officially supported version. Same basic thing with PHP. They have newer versions for a reason - security fixes and bug fixes. Keeping up to date is a good security practice. If you are running your own VPS/dedicated server then you should be keeping it's software up to date. Lucid Lynx (Ubuntu 10.04 LTS) support is scheduled to end on 04/15. So, he does have a little time left but if he's thinking about a change then it's foolish not to go to the newest LTS version now. The nice thing about the Debian based (all that I know of) is that they have an easy upgrade path between distributions. I'd be more concerned about the fact that his host is telling him that he has to re-provision the VPS just to perform a distribution upgrade.Worrying about the OS or Apache is overkill, IMHO....at this level......
I guess I've been lucky with Debian. Never had an upgrade cause a problem as long as I was using the shipping software. When I first started and did compile programs for specific reasons I did have problems - but that's why I just started using the shipping versions.To each his own. I generally stay way behind the curve in every possible way I can. I've done this since 1995 on the internet and was never sorry about it. On the other hand, upgrades have occasionally made me unhappy.
Upgrading to the latest PHP is ALWAYS a good idea (not just for security but for performance improvements also). Guess that's why HostGator is (or was last time I checked) still in the 5.2.x path - with 5.3.x available with some special configuration - it works so why fix it (but soon will not work as more and more scripts depend on the newer versions of PHP to work).The OP was asking a question about optimizing. My point is not to make some incredible amount of work for oneself if it's not needed. If his host supports the distro and XF and all his other sw does too, it probably has nothing to do with his speed (again, overkill because of the small community size). In other words, with a server load of <.2 average, which is where he may be sitting, optimizing may not be worthwhile.
Agreed - and each individual server is specific. What works great on mine won't work well on his. Performance reasons is why I dumped Apache and moved over to nginx - and am now playing with OpenLiteSpeed on a test install.Important thing, IMHO, is to check and know the server load at the busiest times and make sure that apache and mysql are both configured correctly.
For desktops (especially a Mac) it's not that big of a deal. For a server i beg to disagree (especially on a Linux based distro that the upgrade path is as simple as apt-get update && apt-get dist-upgrade), especially since there is no "cost of app upgrades" involved. centOS is an entirely different beast for distribution (major) upgrades.Of course, I'm the guy running an old Mac OS on my early-2009 Mac Pro because if I upgrade, I'll have to spend many hundred dollars on app upgrades.
I respectfully disagree. What happens if his forum posts something that will attract 1 million visitors and that thread goes spiral? My site is not busy at all yet I run a fully optimized server, just to be prepared. I remember when I released OpenSSL 1.0.1e for CentOS 5 and 6... nobody had it. I had over 10,000 views in a week.With 20 members online at once you shouldn't even have to think of optimizing other than having the proper mysql settings, etc.
Worrying about the OS or Apache is overkill, IMHO....at this level......
I never successfully use memcache for data storage. The result was the opposite. It makes the whole site slow. But maybe I was doing something wrong.1. I would recommend Zend OpCache for opcode caching instead of XCache. In benchmarks I did, under stress, Zend OpCache caused 200 - 250% less load than xCache.
Note: I used CentOS 6.4/PHP 5.3.3-27 for tests, so you may have different results with Ubuntu/PHP 5.4.23. Test it yourself with some benchmark tool.
Note 2: Zend Opcache doesn't have data storage, so if you need it you can use Memcache for it.
2. Move from Apache to Nginx.
Upgrade to nginx 1.5.8