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.
- 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!
- 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
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:
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 220.127.116.11 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.
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..