This is the ultimate guide how to build, setup and config CentOS-based unmanaged web server on VPS or Dedicated servers. Very complete tutorials for newbie. Going back to my vision with this blog: to help newbies with no knowledge at all how to build a working live server to host a production website in an unmanaged server without having to use Control Panel software like WHM/cPanel, Kloxo, and so on. I posted an index page of all my tutorials regarding Ubuntu server building, so I gonna make this page as an index of all basic tutorials to build server running OS.
Before you proceed, these are basic skills you have to master or at least know part of it:
– How to use Putty (Windows) – Mac and Linux use Terminal
– Most popular and common commands use in SSH-ing a server
BUILD CENTOS SERVER
1. Basic CentOS Setup Before Building A Working Server
All essential things you have to do in the first time to build a web server on CentOS 6.
2. Install Apache Web Server and PHP5 on CentOS
How install and setup Apache and PHP on CentOS VPS or Dedicated server. This tutorial covers all SSH commands needed to install Apache web server and PHP5.
3. Install MySQL Database Server on CentOS
Easy and simple way to install MySQL on CentOS VPS or Dedicated server. A guide posted for newbie to learn how to build working server to host a website.
4. Adding New Website In Your CentOS + Apache server
This tutorial will guide you how to add new site and domain to your CentOS server with Apache, PHP5 and MySQL including how to add Apache virtual hosts file.
5. Install and Configure Postfix Mail Server
How to setup Postfix on VPS or Dedicated CentOS server to send email.
6. Setup Cyrus Mail Handler
How to setup and configure Cyrus to handle email on CentOS server.
7. Install WordPress on CentOS + Apache + MySQL (LAMP Server)
Download and Install WordPress on VPS or Dedicated CentOS server running Apache without cPanel.
8. Domain Setup To Connect It To Your Server
Connecting Your Server With Your Domain Using Free DNS Manager.
9. How to Install vsftpd (FTP Server)
How to install Very Secure FTP on your CentOS server. Looking for the way how to upload, download, edit, manage and organize all your website’s files stored remotely in your CentOS server.
10. How to Install Varnish 3 on CentOS LAMP Server
How To Install and Configure Varnish Cache on CentOS with Apache Web Server. – Varnish is a well-known free software licensed under a two-clause BSD licence aimed to boost server performance.
11. How to Install Nginx and PHP5 on CentOS
In this page you’ll see step by step tutorial how to build a CentOS server with Nginx, PHP5 (with fpm) and MySQL or simply called LNMP aka LEMP stack.
12. Adding New Website in Your CentOS + Nginx Server
This tutorial shows you how to add new website on a CentOS server with Nginx and how to setup, configure and edit Nginx server blocks.
13. Install WordPress on CentOS + Nginx + MySQL (LNMP / LEMP Server)
Complete Tutorial how to build CentOS Nginx server to host WordPress blog. Setup instructions from 0 – 10. Step by step guide for newbie.
14. WordPress and W3 Total Cache Plugin in CentOS + Nginx Server
Optional, if you wish to use W3 Total Cache plugin on Nginx server, this article may help you.
15. Install Fail2Ban
Protect your server from brute-force attacks using Fail2ban.
16. Install Complete LAMP Stack (one page guide)
How to install Apache, MariaDB mysql, PHP5 and PhpMyAdmin
17. Install Complete LEMP Stack (one page guide)
How to install Nginx, MariaDB mysql, PHP5 and PhpMyAdmin
CentOS 7 All-in-one Guide
A. Install Apache, MySQL (MariaDB) and PHP 5 (LAMP) on CentOS 7
This is a one-page guide to setup a working LAMP server on CentOS 7. We’ll use MariaDB instead original MySQL server.
B. Install Nginx, MySQL (MariaDB) and PHP-fpm (LNMP) on CentOS 7
Nginx is a really great alternative to Apache. It is considered faster and vps-friendly. This tutorial will guide you how to install and setup a working LNMP / LEMP stack on CentOS 7.
UPDATE
Did installing and setting up all of those one by one such painful? So you may also try these:
A. How to Install zPanel CP on CentOS
zPanel is free control panel to manage your VPS as a web hosting server. Installation already includes Apache, PHP5, MYSQL, PHPMYADMIN, FTP, Mail Server, and so on. Pretty complete and lightweight.
B. How to Install Vesta CP on CentOS
Vesta CP is another free control panel (made by Russian) allows you to have full solid and robust web hosting management panel on your server. Installation includes Apache as web server, Nginx as front-end proxy, mail server, FTP, and everything else you may need.
C. Quick Install Lighttpd on CentOS
Easiest way to install Lighttpd web server on CentOS.
D. Quick Install Complete LEMP Stack
Easiest way to install Nginx, MySQL and PHP5 (with fpm)
E. How to Install Kloxo-MR on CentOS
A complete guide about installing and configuring Kloxo-MR free control panel software. Kloxo-MR is a free web panel software bundled with awesome features not only Apache but also including Nginx, Varnish, multiple PHP version and more.
F. How to Install CentOS Web Panel
CWP is another free and easiest to use hosting control panel that will not only install full LAMP stack on your CentOS VPS but also Varnish Cache Server. This also supports multiple PHP version.
For more tricks and tips about CentOS vps can be explored here.
Enjoy and do not forget to follow ServerMom in Twitter and also catch me on Google+. Don’t forget, if you liked this ultimate guide, donate us a one click the +1 button.
You have some amazing guides thank you so much! I was wondering If you could possibly make a guide for newbies that are trying to create a server with the help of Control Panel & WHM? I’m trying to create a small business and this would definitely help me get things started.
hi i am from iran i wana tell this site is more than perfect thanks alot man
Ha iya! monom male iranom! kojai peydat nist kheili waghteh! khoobi syamak?
Hi there, jame IRooNi ha to guide haye centos jame, hame linux kara:))
.
Cheers Server Mom.
hi! yah. mnauhn ki os la ek la bosh.
Hey Sawiyati!
First, thanks for your great blog for newbie like me to follow about unmanaged VPS/Dedicated Hosting arena.
What do you think about rtCamp, EasyEngine? Here’s the link: http://rtcamp.com/easyengine/
Thanks!
Jame
Finally! I’ve been looking everywhere for a guide to help me get this going. This one did the trick 🙂
Thank you so much for these guides, Sawiyati! I just purchased my first VPS and you have helped me out immensely!
Unfortunately, I messed around with the chown permissions too much and I was no longer able to do anything. Oh well, live and let learn.
Respectfully,
Nolan
sir i have installed zpanel in digital ocean centOS 6.5 x64 and i want to run it with nginx as it is fast and resource full, so is there any way through which I can Replace default apache with nginx.
thanks in advance
No, Nginx is not supported yet in zPanel. But you can simply use Nginx as frontend proxy and zPanel’s Apache as backend. Just like using Varnish 🙂
i know the other parts. its the mail server i dont know. will try this guide later. thank you for the post!
Alhamdulillah ketemu blog ini, terimakasih untuk blog yang keren ini :), kebetulan lagi coba VPS unmanaged di Ceniks (ribet juga ternyata hahaha), $4 pake kupon jadi $2 sebulan, lumayan buat newbie kaya saya
Salam kenal mba Awik
Thank you so much for your great tutorial.
I just want to say: Thank you so much for this!
Hi Author, need your help in setting up Email server with ip rotation in centos. Pl. reply to vikash@kgetechnologies.com
Yes! Finally someone writes about domain.
hi servermom
been following this page recently
very useful guides/tuts
i would like to ask if you have guides for centos + litespeed + wordpress
thanks
Dear Sir,
I need your support for startup for Online Grocery Shopping, We have to build our own Cent OS Server. We have to host the website in our Server.
We have Hardware setups like
Intel Xeon Processor and Board E3 1200 V3 family. Switch, Dlink-DFL-260E, KMV Switch, HDD 500GB x 2, 16 GB RAM, One Dedicated IP and 60 MBPS internet speed.
What are all to be installed for hosting website and also how much give the space in hard disk.
Hello Praveen, You need to follow this tutorial completely. You need to install PHP, MySql, Apahe Http server. Moreoevr you can install other servers like Tomcat, Glassfish, Jboss on your centos. I have followed this tutoral and really it is very helping and written by keeping a beginner in mind. In case you need any help please mail me at tarunkumrs@gmail.com.
Hi sawiyati. Recently I have bought one VPS hosting with Daily Razor. I was looking throughout the web for a hands on tutorial – VPS management, Centos 6.X. Really you have saved some dollar for me. I have added you on Google+. Please keep on writing helping tips.
Thanks Tarun 🙂
thanks alot for your info…
Thanks you, this site rocks!
Kadang membingungkan juga make CentOS,, tapi kalo udah dipelajari, ternyata lebih asiik 😀
Good tutorial but there are some things that you have to give more explanation
How to setup iptables or firewall for allowing ports so anyone can access it from internet
iptables for 22000 instead of 22, for http/https and ftp
Than you should advised people, that should chose between apache or nginx which one to use , not as you mentioned here from 1 to 17
luli can you please help me with ” iptables “. I intend on using centos for hosting.Maybe cite a link for above.
Thank you.
Wow, amazing guide. Helped me alot with settings at my VPS. Also the support of my hosting provider – hostingservant.com, assisted me in the whole process of setup.
can you please add tutorial on centos web panel
centos-webpanel.com
Can you please compare different free panel and their features?
thanks
great tutorial. terima kasih ya berkongsi ilmu.
Can you do a tutorial for xen?
can you pleas write more about theme modification? this is perfect and learn alot.
regards
I have been looking into ajenti for a server CP since CentOS Web Panel does not work on CentOS7, have you ever tried it and if so can you give us a review/install guide on it?
any tips on hosting LightSpeed
Yes, I posted how to install Open LiteSpeed already
Just Awesome articles!
Server Admin in 1 night.
Hi, I have no words other than thank you! Really very very good post. 🙂
Thanks
I had my very first CENTOS VPS last week, I now have a running OpenGTS, all thanks to your getting started guides
From Indonesia!
Thanks you very much for this Awesome Article!
Thank you so much.
What a kind of mom
Its very very usefull for us, specially me as a beginner.
Btw, im from indonesia loh 😀
Fantastic article, I just passed it on to a friend who is new to Centos. I can answer his questions individually but couldn’t think of a place with basic overall guides to get him going.
Cheers
Hi Sawiyati,
my prayers for you, you really have done a wonderful job, I need your help in one more thing if you have any idea that how i can install bitbucket on CentOS
thanks.
What is recommended Centos version for Litespeed? How to install and configure litespeed in Centos? Thanks.
Article indicates you are the newbie