Installer scripts are the future now. Yes! People prefer to use installer scripts rather than install each and every program separately and one by one. In this tutorial I will show you how to build a working CentOS server very quickly. We will get this done by using an automatic installer script. Many scripts are flying around out there. Out of those scripts there are few that we will need. There are those scripts which enable and allow us to build a complete Linux, MySQL, Nginx and PHP stack. These scripts are a great shortcut and come in handy at times. If we were to name some, they’d be Easy Engine, Ruhira’s script and Centmin Mod.
Then there come VPSSIM. VPSSIM is also an Nginx installer. This auto installer script is capable of building full LNP stack that is compatible and works on CentO6 or either on CentOS7. This script has been made very easy for use and initially it requires just a single line of command syntax to get started. Don’t you think that’s cool? Now you’ll have to wait till you try it for yourself.
- 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!
- You’ll need a server/VPS that s either running CentOS6 or CentOS7.
- X86 and x86_64 machines are supported by it.
- You must have access to the root account.
- Something to keep you indulged like a cup of tea or coffee.
For this guide we are using Centos 7 x86_64 which is minimal on 512MB VPS.
Setting Up Nginx:
As it already is mentioned above, installer scripts are made so that it only needs just a single line of command and the process becomes easier than ever. For that to happen, you need to log in as root into the server.
Once you are logged in as root, you will need this single line of code. Once you’ve typed it all, press enter:
yum -y install wget && wget https://vpssim.com/install && chmod +x install && ./install
After this you will have to choose the version of PHP that you want to use:
You need to type in the version of PHP that you want to use. Once that is done, the script will check the specs of your system. Then you’ll be asked a few normal questions:
Your answers that your type in are explainable. So you should type in your answers and then press enter. The system will now ask you to check the answers that you have entered again, so that there might be no mistake left in it. After you have checked the answers, type y and hit enter to confirm the answers that you have typed in the space.
The system will again check your answers. After it has triple checked them it will ask you to press enter to proceed.
Now the installation process will initiate. You have to sit tight and relax. Just wait a bit and finish your beverage.
After you have finished installation, the system will ask you to setup MySQL password. This password will set for MariaDB. Everything is being installed on the way so you need not worry about anything. Just enter the password that you want to set for the MariaDB database.
You will need to press enter twice. You must type your MySQL password and then retype it so that it may get confirmed. The first time is so that it may accept the password. The second time you press enter is to tell the setup to move on to the next step. Now that the system has everything that is needs, we will see the system will now finish.
That is just about it. You system will now reboot.
You’ll have to login to your email account and check your inbox. If you check your email, you should see that there is 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 188.8.131.52 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
Now that you have checked your mail, you will need to login to the root. Once you login to the root on your server via SSH, you should see a sort of greeting from VPSSIM:
Now you will check the PHP version that is installed. When I did so, on my system I got this:
You must be wondering what Zend OPcache is? Yes well, not to worry. Zend OPcache is a very helpful tool that provides rapid PHP execution through optimization and caching the opcode. Many people have many different thoughts on Zend OpCache. Many people believe that Zend OpCache is much better than APC performance wise. They believe that Zend OPcache is more reliable and fully featured. Zend Opcache has the ability to improve PHP performance. It stores the precompiled script bytecode in the shared memory and that is its secret. Rtcamp eventually had to make a switch to Zend OPcache from APC.
So that we have a firm grasp of what Zend OPcache is, we’ll be moving back to our server. In the command line (SSH) we’ll have to type ‘vpssim’ and then we’ll hit enter. Once that is done we’ll see a list of all the available options in a menu screen that would look something like this:
If you want to check the server status all you have to do is type in #18 in the “Type in your choice:” part of the command line:
There are many different options that we can choose from in the menu. Let us try an option. Just for the sake of giving you an example I’ll select #16. I’ll try and install Ioncube loader. So when you’ve seen your server status you’ll press enter which will direct us on the main menu screen. There you will first select #16 and then 13:
Now the installation will proceed on its own. You just have to confirm the installation by typing in y and then pressing enter.
That just about does it. Installing and adding a new website on the newly made VPSSIM server will be explained later on in some other guide. Till then, have fun!!!!!