Jan 30
We use a medium busy server and do prefer to run prefork.c module with the following settings:
StartServers 20
MinSpareServers 5
MaxSpareServers 20
ServerLimit 200
MaxClients 200
MaxRequestsPerChild 25000
The server is Dual Core Pentium with 2GB RAM and it’s not very busy server but does perfect.
Jan 18
What OS is better FreeBSD or Linux for a hosting server? There is no clear answer to this question so I guess stick with the OS you are more experienced. In long run it will pay off since you can manage it better and there is no need to test out things you don’t know and experience downtime in worst case.
I usually select Linux, Centos, Fedora or RedHat Enterprise – I am more comfortable with this OS and update process is quick and easy. Anyway, if you are a pro in FreeBSD there is no need for you to go Linux – FreeBSD is powerful and high-performance OS you can count on. If you are more experienced with Linux – go with Linux. Both Linux and FreeBSD is a nice OS for a hosting server.
Jan 15
Prepare for real performance boost. Run Nginx in a front of Apache and serve all static content directly from Nginx. All php script requests are transparently forwarded to Apache daemon and output forwarded back to Nginx that servers it to a web visitor.
Web visitor -> Nginx -> static content -> Nginx -> Web visitor
if dynamic content then,
Web visitor -> Nginx -> dynamic content -> Apache -> Nginx -> Web visitor
For static content serving you should add the following nginx config:
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|rtf|js)$ {
root /usr/www;
expires 10d;
break;
}
With the following config you will serve all those files directly via Nginx and it will be very fast. Don’t forget to set-up Nginx listening to public IP and Apache configure to a different port or internal IP.
Jan 04
Alright fellows. Many folks are using Nginx nowadays and I thought we need to open a new category dedicated to Nginx. It’s fast, light-weight and reliable web server that’s becoming very popular.
We will soon have some fresh content and howto’s about Nginx. Stay tunned!
Recent Comments