Faster LEMP Stack Setup On CentOS 7 with VPSSIM
| |Nowadays, using an installer script is being popular than having to install each software one by one. I posted my previous tutorial to guide you on installing complete LNMP or LEMP stack manually either on CentOS 7 or CentOS 6. But however building a working CentOS server to host a website will be done way faster using an auto-installer script. Well, there are few scripts allow you to take a shortcut building a complete Linux, Nginx, PHP and MySQL stack. To name it a few, do you still remember Easy Engine, Ruhira’s script, and Centmin Mod?
Now meet VPSSIM (an acronym of VPS is Simple), another Nginx autoinstaller script to build full LNMP stack that works on either CentOS 6 or CentOS 7. The script is really made simple and it needs only one line of command syntax to be issued. Sounds coll already? Wait until you try it on your own.
With many functions and utilities, your VPS will have good performance, high load bearing and good security.
Key Features:
- Latest stable Nginx
- PHP-fpm with FastCGI
- Multiple PHP switcher: PHP 5.4, PHP 5.5 and PHP 5.6
- MariaDB 5.5 instead of traditional MySQL
- Setup SSL (https) easily
- Enable/disable PHPMyAdmin
- Optional Zend opcache
- Optional Memcached
- Optional Google Pagespeed
- and many more!
Prerequisites
- A server / VPS running either CentOS 6 or 7. Minimal template is recommended
- It works on either x86 or x86_64 machines.
- root access required
- a cup of coffee.
In this tutorial I use Centos 7 x86_64 minimal on 512MB VPS from Bandwagonhost. Need recommendation? Also try Digital Ocean.
How to Setup Nginx
As I said before, the installer script is made for easiness so it only needs one line of command. But first, login to your server as root.
Next, simply use this single line of command and hit Enter on your keyboard:
yum -y install wget && wget https://vpssim.com/install && chmod +x install && ./install
pic:
Now you’ll be asked to choose which PHP version you will use:
Type in your choice and hit Enter. Next, the script will check the specs of your system and asks you few normal questions:
The answer is explainable so type in your answer and hit Enter. Now the system will ask you to double-check the information you have entered. Type y followed by hitting Enter to confirm.
Next, the system will triple-check few settings before starting the install process. Simply press Enter to continue.
And now the installation process is starting. Sit tight and wait (or drink your coffee).
Once done, you’ll be asked to setup MySQL password for MariaDB:
Just press Enter twice, type in your new password for MySQL and retype the password once again. Now the system will finish its last step.
That’s it and your system now reboots.
Now if you check your email, you’ll see something like this:
Hi! Congratulation! You have completed installation process and configured server by VPSSIM/ This is your new server information, please read carefully, store and also keep secrets those information Domain manager: http://sim.servermom.org/ Link PhpMyAdmin: http://sim.servermom.org:2015/ View Zend Opcache: http://sim.servermom.org:2015/ocp.php All website will sotre in /home/ In order to access VPSSIM menu, you connect SSH to VPS/Server and use command line "vpssim" Use 107.182.187.107 for sim.servermom.org if you do not point sim.servermom.org to IP VPS or use cloudflare. Thank you for using VPSSIM by VPSSIM.COM ! Good luck and success. http://VPSSIM.COM
And now if you loging as root on your server via SSH, you;ll see a greeting from VPSSIM:
And when I checked the PHP version installed, I got this:
Wait, what’s Zend OPcache anyway? The Zend OPcache provides faster PHP execution through opcode caching and optimization. Several people say that Zend OpCache appears to be more performant than APC, more fully featured, and more reliable. The secret is that Zend OPcache improves PHP performance by storing precompiled script bytecode in the shared memory. Even rtcamp made a switch to it from APC.
Now back to your sever, in command line (SSH) type in vpssim and hit Enter so you’ll see all available menus of VPSSIM.
You can even see your server status (option #18):
Lets try another menu. What if we try to install IonCube Loader. Choose menu number 16 then number 13.
Next, simply confirm it by typing y then press Enter.
That’s all. I’ll explain about how to add new website on your newly built VPSSIM server next time. Enjoy..
Hi, how do configure nameserver?
This Nginx auto-installer script doesn’t include DNS software like Bind, so you have to use thir-party (free) DNS hosting which you can pick one from this list.
Could you please make a guide/tutorial post on how to use third party DNS services. I am quite confused on how to use third party DNS services for the DNS in case of such low end servers.
Thank you for the excellent guide. Can i setup CWP after doing this?
Can’t wait for the how to add new website guide. How many WordPress sites can i host for a VPS of 2cpu, 2gb mem, 40gb ssd with vultr? will sign-up once your website guide is post.
I believe no. Because CWP also needs a fresh OS.
Hello Sawiyati !
Thank you for very usefull post.
I saw in this pictures http://servermom.wpengine.com/wp-content/uploads/2015/01/vpssim-system-check-full.jpg , the script do not show the IP VPS. Maybe your VPS do not have net-tools installed. You must install net-tools before setup VPSSIM
And at this morning, i setup my new VPS on Digitalocean by using this script, i do not enter my email in setup process,
But everthing seem working fine. The script is great !
thank you once again.
thx. great you notice
hi i don’t recommend MariaDB i have tested MariaDB in CentOS 7 and it have an issue with the GROUP BY and ORDER statement.
it give an different value or FALSE data than the normal MySQL.
Searsh for more information
thanks for your information
bagus mana dibandingkan dengan easyengine ?
Hello.. glad I found this site.. can you please explain how to install wordpress. I get used to install wordpress with tuxlite with command ./wordpress.sh .. also can you please explain how to change default root documents with vpssim. appreciate for any answer, thank you
Hi, bu sawiyati, I’m a newbie in building centos server. But what is the difference installing LNMP with vpssim and other free web hosting panel like zpanel, kloo-mr, webuzo? Thanks
as far as I can recall, VPSSIM has no web-based control panel
Thank you for this great tutorial. Unfortunately I have tried this guide multiple times and each time I Nginx will not start. I keep getting file not found when trying to start it manually.
can you suggest me a script for setting up vBulletin forum. I have legal copy of vBulletin.
VPSSIM is a nice tool to use for centos and I am loving it. one thing I cannot figure out, SSL. i got to create the ssl cert csr and I sent the csr to generate a cert for it using thirdparty cert issuer. I got the cert issued and I concatenated the cert with all the root certs etc. but I dont see any option in VPSSIM how to import the signed cert into my web site that I setup using VPSSIM. any instructions on that? thanks,
I am so sorry Farid, I never installed SSL on a server running VPSSIM so I can give you a bright clue but I’m planning to have it a look in the near future.
hi, what about htaccess? VPSSIM still use it right?
What is your opinion between vpssim and serverpilot? Which one do you recommend?
serverpilot is easier and centralized system while VPSSIM is more advanced but it gives you more freedom to manage your server. So the answer depends on your taste. Nginx doesn’t use .htaccess
can i install webmin after installing vpssim. if i can do that this will be great.
I don’t really quite sure about that
can you please explain how to setup www prefix in vpssim ?
My site have a problem while using www prefix.
Thanks in advance