Centmin Mod


What is Centmin Mod ?

Centmin Mod is for installation on CentOS only and written by George Liu (eva2000) with the addition of a shell menu based installer (shown on the right). Centmin Mod shell based menu allows you to do basic Nginx & PHP related management including upgrading or downgrading Nginx & PHP or setting up Nginx vhosts. It is a modified version of Centmin original script which auto installs Nginx server along with the following software:

--------------------------------------------------------
Centmin 1.2.2-eva2000.22 - http://centminmod.com
--------------------------------------------------------
                   Centmin Menu                   
--------------------------------------------------------
1).  Centmin Install
2).  Add Nginx vhost domain
3).  NSD setup domain name DNS
4).  Nginx Upgrade
5).  PHP Upgrade
6).  XCache Re-install
7).  APC Cache Re-install
8).  XCache Install
9).  APC Cache Install
10). Memcached Server Re-install
11). MariaDB 5.2 Upgrade
12). Install ioping.sh vbtechsupport.com/1239/
13). SELinux disable
14). Setup Logrotate for Nginx
15). Setup Logrotate for PHP-FPM
16). Change SSHD Port Number
17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip
18). Suhosin PHP Extension install
19). Install FFMPEG and FFMPEG PHP Extension
20). NSD Re-install
21). Exit
--------------------------------------------------------
Enter option [ 1 - 21 ] 
--------------------------------------------------------

First read the FAQ and following info pages for Nginx, MariaDB MySQL, PHP (php-fpm) and CSF Firewall (highly recommended to install when prompted). These will give a better understanding of the Centmin Mod setup.

Preferably, use CentOS 6.0 - 6.3 operating system where possible. Centmin Mod has only just started testing with CentOS 6.4 so needs more time testing. If you want to test CentOS 6.4 yourself on a test server first, you will need to edit centmin.sh and change the tested version line before installing and/or running centmin.sh.

From

TESTEDCENTOSVER='6.3'

To

TESTEDCENTOSVER='6.4'

You can provide feedback and suggestions on Centmin Mod Google+ Community

If possible, setup a test server or virtualised server via Virtualbox or VMWare to test out Centmin Mod before doing install on live server. For quick tests, you can easily setup a 512MB memory, 16GB hard disk storage Secured Cloud VM server instance using SecuredServers.com Cloud with costs starting from US$0.025 per hour. Benchmarks on Secured Cloud VM instance here.

Secured Cloud VM setup tip: To make your Centmin Mod install web accessible on Secured Cloud VMs, they have their own firewall enabled in Secured Cloud VM customer admin area that only allows port 22 and 3389 by default. For Centmin Mod installs, you can disable Secured Cloud VM's firewall and let Centmin Mod CSF firewall take over.

Or even cheaper option is to setup a DigitalOcean.com 512MB memory VPS at $0.007/hr. Or a DigitalOcean.com 1GB memory VPS at $0.015/hr.

You'll need a VPS or dedicated server with full root user + SSH2 telnet access to install Centmin Mod. Logged in as root user via SSH2 telnet type these commands:

1. Download latest version of Centmin Mod from (you can find latest version info here) and download at http://vbtechsupport.com/920/. Download link will later move to centminmod.com domain.

Note: In example below, zip is downloaded to /usr/local/src. DO NOT download to /tmp and run centmin.sh from /tmp as Centmin Mod removes the ability to execute scripts from /tmp as a security precaution. Also the downloaded contents must NOT be deleted or removed as subsequent runs of centmin.sh to use menu options require certain files and scripts in place.

cd /usr/local/src
wget http://vbtechsupport.com/centminmenu/centmin-v1.2.2-eva2000.22.zip

2. Extract files and change to centmin-v1.2.2mod directory and chmod +x centmin.sh bash script.

unzip centmin-v1.2.2-eva2000.22.zip
cd centmin-v1.2.2mod
chmod +x centmin.sh

3. Run centmin.sh menu based installer and if this is first time installing, select option #1 for Centmin Install. If you are upgrading a server which already previously had Centmin Mod installed, you DO NOT need to run option #1, instead run option #4 and then #5 for upgrading Nginx web server and upgrading PHP.

./centmin.sh

Notes:

  • For Xen 32bit OS users on 64bit host nodes, please read FAQ note regarding ARCH_OVERRIDE value you need to enable for Centmin Mod or Original Centmin script to work.
  • If your SSH2 Telnet client options allow for it you can increase the size of your scroll back buffer size to allow larger amounts of outputted text to be shown via scrolling back and forth.

Nginx

Nginx web server is installed via source compile through a shell scripted menu option #1. This allows for more flexibility for 3rd party Nginx module installs and keeping Nginx versions updated more frequently. You can upgrade Nginx web server via shell scripted menu option #4.

Read more »

PHP (php-fpm)

Like Nginx, PHP is source compiled as PHP-FPM handler. Besides mysql and mysqli extension support, there are other compiled PHP extensions in the default Centmin Mod PHP-FPM configuration. To see the detailed list of configuration options used, read more.

Read more »

MariaDB 5.2 MySQL

MariaDB 5.2 MySQL performance fork is used by default as an alternative to official Oracle MySQL 5.1/5.5/5.6 Servers. MariaDB MySQL server is installed via official MariaDB RPMs. For full explanation of why MariaDB MySQL is the default install for Centmin Mod, read more.

Read more »

Nginx vhost setup

Setting up Nginx vhost entries is very easy via the shell scripted menu option #2. Nginx vhost wizard will ask you a few questions and then automatically generate the Nginx vhost config file and appropriate vhost directory structure.

Read more »

Memcached Server

When you first install Centmin Mod via menu option #1, you will be prompted to make a choice to install Memcached server(s). You can choose to install a single Memcached server or two Memcached servers on a different port.

Read more »

CSF Firewall

When you first install Centmin Mod via menu option #1, you will be prompted if you want to install CSF Firewall software. Highly recommend installing CSF Firewall, as you can always disable it later on if you don't need it.

Read more »