Faster LEMP Stack Setup On CentOS 7 with VPSSIM

Thursday, January 22nd 2015. | how to

#howto ,#tutorial #VPS – Faster LEMP Stack Setup On CentOS 7 with VPSSIM – This tutorial explains step by step guide (with pics) about 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:

  1. Latest stable Nginx
  2. PHP-fpm with FastCGI
  3. Multiple PHP switcher: PHP 5.4, PHP 5.5 and PHP 5.6
  4. MariaDB 5.5 instead of traditional MySQL
  5. Setup SSL (https) easily
  6. Enable/disable PHPMyAdmin
  7. Optional Zend opcache
  8. Optional Memcached
  9. Optional Google Pagespeed
  10. and many more!

Prerequisites

  1. A server / VPS running either CentOS 6 or 7. Minimal template is recommended
  2. It works on either x86 or x86_64 machines.
  3. root access required
  4. 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.

vpssim-login

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:

vpssim-command-install

Now you’ll be asked to choose which PHP version you will use:

vpssim-php-choice

Type in your choice and hit Enter. Next, the script will check the specs of your system and asks you few normal questions:

vpssim-system-check-full

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.

vpssim-system-check-confirm

Next, the system will triple-check few settings before starting the install process. Simply press Enter to continue.

vpssim-system-check-confirm-2

And now the installation process is starting. Sit tight and wait (or drink your coffee).

vpssim-install-process

Once done, you’ll be asked to setup MySQL password for MariaDB:

vpssim-set-mysql-pass-2

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.

vpssim-done

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:

vpssim-ssh

And when I checked the PHP version installed, I got this:

php-v-zend-vpssim

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.

vpssim-menu

You can even see your server status (option #18):

vpssim-server-status

Lets try another menu. What if we try to install IonCube Loader. Choose menu number 16 then number 13.

vpssim-ioncube

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..

This post Faster LEMP Stack Setup On CentOS 7 with VPSSIM is part of ServerMom.

Source link