Nginx install script, PHP 5.3.10 (php-fpm), MariaDB 5.2.10, Xcache v1.3.2, Memcached server, CSF firewall, Siege Benchmark, Python 2.72
Centmin v1.2.0 – Nginx install script for CentOS servers by BTCentral has been updated and released incorporating alot of my modifications which were made to Centmin v1.1.0 base here. I’ve updated my modifications to use Centmin v1.2.0 and higher as a base. Centmin v1.2.0 has fixed my modifications to work with both CentOS 32bit and 64bit servers.
Update: October 8th, 2011
Centmin Mod project gets own domain name: centminmod.com (runs on 3x load balanced Centmin Mod Nginx based web servers
). Will eventually transition the download link to centminmod.com.
Update: October 5th, 2011
Centmin Mod get’s it’s own logo. I used Denmark font for the text ![]()
Update: September 24th, 2011
Menu based custom Centmin installer script has been officially released. Starting with Centmin 1.2.1-eva2000.14, you will be able to use a menu based Centmin installer. Just to clarify with the new menu version you DO NOT need to do a full reinstall again, you just download new centmin menu version and extract and run centmin.sh and DO NOT touch option #1, just run option #4 for nginx upgrade and #5 for php upgrade if need be.
As stated in comment replies below, I held off adding addition features to my custom Centmin version until I implemented a menu system. I finally got around to implementing a menu system and have started adding additional menu features to beta versions and then to final public release.
You can now recompile Xcache, APC and Memcached servers as well as upgrade Nginx, PHP, and MariaDB 5.2 MySQL. I’ve also added a menu option to add domain names to Nginx virtual host configuration and adding domain names to NSD name server – automatically creating the nsd.conf zone entry and NSD dns zone file. New installations also automatically setup log rotation for Nginx and PHP-FPM log files. If you are using older Centmin 1.2.1-eva2000.xx release there’s also menu options #14 and #15 which setup logrotate for you.
Centmin menu below:
-------------------------------------------------------- Centmin 1.2.2-eva2000.16 - 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 etc 18). Suhosin PHP Extension install 19). Install FFMPEG and FFMPEG PHP Extension 20). NSD Re-install 21). Exit -------------------------------------------------------- Enter option [ 1 - 21 ] --------------------------------------------------------
SSH2 Telnet client tip
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. This is the option in VanDyke SecureCRT SSH2 telnet client I use. I set my scrollback buffer to maximum size of 128,000 lines.
Here’s my modified Centmin v1.2.1 below which automatically installs the following via bash shell script framework written by BTCentral folks. Updates to my modified version will be updated in this blog post, so bookmark it and check back regularly. Also if you like this post/Centmin mod, feel free to share/vote on social media site links at top of post i.e. facebook, reddit, twitter, google+ etc ![]()
- Nginx v1.2.0
- PHP
5.3.65.3.75.3.11 php-fpm install - MariaDB 5.2.12 default MySQL server – you’ll want min 512MB of installed memory
- Memcached 1.4.13
- Memcache v3.0.5 (do not use v3.0.6 doesn’t seem to work properly)
- Xcache v1.3.2
- APC 3.1.10
- Python v2.72
- CSF firewall
- Siege benchmark and Sproxy.
Change log:
(compared to official Centmin v1.2.1/v1.2.2)
v1.2.2-eva2000.16 -29/04/2012
- Updated PHP from v5.3.10 to v5.3.11 http://php.net/ChangeLog-5.php
- Updated Nginx from v1.1.19 to v1.2.0 stable release http://nginx.org/en/CHANGES
- Updated Xcache from v1.3.2 to v2.0.0 for PHP 5.4 support http://xcache.lighttpd.net/wiki/Release-2.0.0
- Updated APC Cache from v3.1.9 to v3.1.10 beta for PHP 5.4 support http://pecl.php.net/package-changelog.php?package=APC (note: v3.1.10 beta retains v3.1.9 version name in PHPINFO so I modified the APC files to correct version number to v3.1.10 etc)
- Updated APC configuration template files with additional settings you will need to manually add these to your /usr/local/lib/php.ini. You can compare using download zip’s copy at config/apc/apc-min.ini or apc.ini
- Updated staticfiles.conf nginx includes file. You can find updated file in zip dowload config/nginx/staticfiles.conf which you can replace and overwrite the one on server at /usr/local/nginx/conf/staticfiles.conf
- Updated nginx.conf and vhost template to add a 32K buffer to access_log logging. Changes aren’t updated automatically, you will need to update the /usr/local/nginx/conf/nginx.conf manually to remove line log_format bytes_log “$msec $bytes_sent .”; and add the line access_log logs/access.log combined buffer=32k;. You can compare using download zip’s copy at config/nginx/nginx.conf to compare against your live servers copy
- Added optional Nginx modules from Agentzh’s Openresty bundle, memc-nginx-module and srcache-nginx-module. These modules are disabled by default but can be enabled by setting ‘y’ for new variable named NGINX_OPENRESTY=n. For more details read https://github.com/agentzh/memc-nginx-module and https://github.com/agentzh/srcache-nginx-module. No support is provided by me, optional modules are provided as is
v1.2.2-eva2000.15 -14/04/2012
- Updated Nginx from v1.1.18 to v1.1.19 http://nginx.org/en/CHANGES
- Updated MariaDB 5.2.11-115 MySQL to MariaDB 5.2.12-115 MySQL http://kb.askmonty.org/en/mariadb-5212-release-notes
- Updated APC Cache install and re-install routine including setting up password protected file using htpasswd.py tool
- Updated YUM Install routine to be smarter in checking each package whether it’s already installed and needs updating or whether it’s not installed and needs installing
- Updated php-fpm.conf files and vhost virtual.conf with pm.status and ping settings. PHP-FPM status/ping is disabled by default, uncomment setting #include /usr/local/nginx/conf/phpstatus.conf; in vhost virtual.conf and restart nginx and php-fpm services to enable. For folks upgrading Centmin Mod, ensure /usr/local/nginx/conf/phpstatus.conf exists, you can find a copy of it in v1.2.2-eva2000.15 zip file’s config/nginx/phpstatus.conf location.
- Fixed CentOS 6.x EPEL Repo link
- Fixed NSD v3.2.10 install/reinstall issue by moving NSD install routine further down the order for installation, seems v3.2.10 complains it can’t find the SSL libraries for some reason and fails to compile, so no /etc/nsd directory is created.
- Add logging support to menu options. Log directory defined by variable CENTMINLOGDIR=’/root/centminlogs’ in inc/centminlogs.inc. When run menu option, the entire process will be logged to a time stamped text log file named ${CENTMINLOGDIR}/centminmod_${SCRIPT_VERSION}_${DT}_*.log so you can review the logs for error messages etc.
v1.2.2-eva2000.14 – 3/04/2012
- Updated memcached init.d stop/start files with $SERVERIP variable
- Updated Nginx from v1.1.17 to v1.1.18 http://nginx.org/en/CHANGES
- Updated libevent from v2.0.17 stable to v2.0.18 stable
- Updated MariaDB 5.2.10-107 MySQL to MariaDB 5.2.11-115 MySQL http://kb.askmonty.org/en/mariadb-5211-release-notes
- Updated php-fpm upgrade routine to prompt for php-fpm.conf overwrite with latest version and backup existing php-fpm.conf
- Updated php-fpm.conf templates with additional settings and changing from dynamic to ondemand PHP process manager with pm.process_idle_timeout defaulting to 10 seconds
- Updated YUM install/checks for CentOS 5.8 detection
- Updated MariaDB 5.2.x upgrade routine
v1.2.2-eva2000.13 – 16/03/2012
- Updated Nginx from v1.1.16 to v1.1.17 http://nginx.org/en/CHANGES
- Updated Nginx upgrade routine, it automatically backs up CONF/ directory before running upgrade and is controlled via 3 variables in centmin.sh NGINXBACKUP=’y', NGINXCONFDIR=’/usr/local/nginx/conf’, NGINXBACKUPDIR=’/usr/local/nginxbackup’
v1.2.2-eva2000.12 – 12/03/2012
- Updated Nginx from v1.1.14 to v1.1.16 http://nginx.org/en/CHANGES
- Updated libevent from v2.0.16 to v2.0.17 https://raw.github.com/libevent/libevent/release-2.0.17-stable/ChangeLog
- Updated NSD from v3.2.8 to v3.2.10
- Fixed PHP 5.4.0 upgrade error however PHP 5.4.0 seems to be currently incompatible with APC, Suhosin and FFMPEG extensions right now, so please stick with PHP 5.3.10
- Fixed Memcache PHP extension reinstall routine
- Added NSD re-install routine
- Revised csftweaks.inc settings
v1.2.2-eva2000.11 – 06/02/2012
- Updated PHP from v5.3.9 to v5.3.10 http://www.php.net/archive/2012.php#id2012-02-02-1
- Updated Nginx from v1.1.11 to v1.1.14 http://nginx.org/en/CHANGES
- Updated Memcached server from v1.4.10 to v1.4.13
- Updated MariaDB my.cnf templates adding skip-pbxt_statistics & skip-archive
- Updated Pigz v2.2.2 to v2.2.3
- Updated Nginx upgrade routine with NGINXUPGRADESLEEP=’20′ variable to customise how long between Nginx stop command and when source upgrade’s make command is run. On some systems Nginx service shutdown doesn’t immediately or cleanly shutdown Nginx processes, causing Nginx upgrade to fail. The upgrade routine for Nginx will now have a NGINXUPGRADESLEEP =20 second initial delay after Nginx service is shutdown before make is run. The upgrade routine then will check if Nginx processes are still running and if so, trigger a 2nd NGINXUPGRADESLEEP = 20 second delay before running make. You can adjust the delay via NGINXUPGRADESLEEP=’20′.
- Fixed plzip download url
- Fixed lzip download url
- Fixed autoconf/autoconf-2.1.3 PHP-FPM compile on CentOS 5.7
- Increased nginx.conf gzip level from default 1 to 7
- Added ImageMagicK via YUM install
- Added Suhosin PHP Extension Menu Install option for php-fpm
- Added FFMPEG via YUM install + FFMPEG PHP extension for php-fpm
v1.2.2-eva2000.10 – 15/01/2012
- Added check for wget which maybe missing on CentOS 6.x minimal install ISO CD images (read)
- Added more checks for yum install prerequisites prior to Nginx and PHP upgrades to make sure updated changes to Nginx and PHP upgrade routines have the required dependencies etc
- Fixed command shortcuts to detect if memcached and CSF are actually installed before installing their respective command shortcuts
v1.2.2-eva2000.09 – 12/01/2012
- Updated PHP from 5.3.8 to 5.3.9 for security and bug fixes, including DoS hash fix http://www.php.net/archive/2012.php#id2012-01-11-1
- Tuned CSF firewall settings
- Fixed Sproxy install – missing perl-ExtUtils-MakeMaker
- Added via yum install iotop, iftop and mytop
- Added diskalert.sh script to cron.daily cronjob to alert when system partitions reach >90% full. Default email alerts sent to root unless you edit EMAIL=” variable in /etc/cron.daily/diskalert
- Added alternative download option for CentOS versions greater than >6.x to use Axel download accelerator instead of wget to download apps. Axel download accelerator uses multiple connections to speed up downloads
v1.2.2-eva2000.08 – 20/12/2011
- Checks for latest working & tested CentOS version
v1.2.2-eva2000.07 – 13/12/2011
- Updated Nginx from v1.1.8 to v1.1.11 http://nginx.org/en/CHANGES
- Updated MariaDB MySQL from 5.2.9-102 to 5.2.10-107
- Fix ngx_cache_purge-1.4.tar.gz download
- Fix PHP upgrade configure error for older pre-menu Centmin Mod releases: ‘configure: error: utf8_mime2text() has new signature’
v1.2.2-eva2000.06 – 27/11/2011
- Updated Nginx from v1.1.7 to v1.1.8
- Updated Memcached server from v1.4.9 to v1.4.10
- Updated libevent from v2.0.15 stable to v2.0.16 stable
- Updated nginx.conf for Nginx v1.1.8 changes from limit_zone to limit_conn_zone syntax
- Added new menu option to install multi-threaded compression tools, pigz, pbzip2, lbzip2, p7zip etc. Choose between better compression ratios (smaller file sizes) vs faster compression speed.
- Added control panel checks for incompatible control panels ie. WHM/Cpanel, Plesk and DirectAdmin
- Added Nginx upgrade check for older Centmin mod releases to ensure nginx.conf client_body_in_file_only option is disabled
- Fixed libevent download
v1.2.2-eva2000.05 – 05/11/2011
- Updated Nginx from v1.1.6 to v1.1.7
- Updated Memcached server from v1.4.8 to v1.4.9
- Updated Nginx virtual.conf settings
- Updated nginx.conf turn off client_body_in_file_only
- Updated php-fpm.conf, php-fpm-2pools.conf, php-fpm-min-2pools.conf and php-fpm-min.conf settings
- Fixed nsdsetup.inc for missing zone: entry when adding domain zone to /etc/nsd/nsd.conf
- Added inc/sendmail.inc to configure sendmail when detected/installed
v1.2.2-eva2000.04 – 18/10/2011
- Updated Nginx from v1.1.5 to v1.1.6
- Updated libevent from v2.0.14 stable to v2.0.15 stable
- Updated Nginx vhost and template with SSI option you can enable via uncommenting
- Updated checks for CentOS 5.7 for php configuration and mcrypt support
- Fixed possible openssl update conflict with previous version of openssl
v1.2.2-eva2000.03 – 09/10/2011
- Switched default MariaDB MySQL install back to RPM manual install method due to MariaDB YUM REPO issues. Complaints of MariaDB-server-5.2.9-102.el5 public key issues causing MariaDB server install failure.
v1.2.2-eva2000.02 – 08/10/2011
- Centmin Mod project gets own domain name: centminmod.com (runs on 3x load balanced Centmin Mod Nginx based web servers
) - Included Centmin Mod logo (I used the same Denmark font type
) - Updated Nginx from v1.1.4 to v1.1.5
- Updated Memcached server from v1.4.7 to v1.4.8
- Updated ngx_cache_purge nginx module from v1.3 to v1.4. Change log http://labs.frickle.com/nginx_ngx_cache_purge/CHANGES
- Updated drop.conf setting favicon.ico expires header
- Added optional custom 404/50x html pages via #include /usr/local/nginx/conf/errorpage.conf; uncomment in vhost file & restart nginx to enable.
v1.2.2-eva2000.01 – 03/10/2011
- Updated Nginx from v1.0.6 to v1.1.4 for default installs
- Updated libevent from v2.0.13 stable to v2.0.14 stable
- Updated libevent download url from http://www.monkey.org/~provos/libevent-${LIBEVENT_VERSION}-stable.tar.gz to https://github.com/downloads/libevent/libevent/libevent-${LIBEVENT_VERSION}-stable.tar.gz
- Add to nginx.conf & vhost template commented out option for rate limiting connections per IP
- Added Change SSHD Port number menu option to change from default SSHD Port 22
- Added openvz_stack.inc for correct service init.d start up scripts stack size on OpenVZ systems
- Streamlined php-fpm.conf and php-fpm-min.conf settings.
- Split Nginx add vhost and MariaDB upgrade functions from centmin.sh to own includes files “inc/nginx_addvhost.inc” & “inc/mariadb_upgrade.inc”
- Fixed nsdsetup.inc missing escape on $TTL for domain zone template
v1.2.1-eva2000.14 – 24/09/2011
- centminfullmenu2.sh renamed to centmin.sh for public release
- Tune centminfullmenu2.sh – reduce memcached server default memory allocation rom 16MB to 8MB per instance
- Add to centminfullmenu2.sh a nginx & php-fpm logrotate functions
- Updated OpenSSL to v1.0.0e
- Updated MariaDB 5.2.9 if you manual RPM install (set MDB_INSTALL=y and MDB_YUMREPOINSTALL=n). If you use default YUM REPO install (set MDB_INSTALL=n and MDB_YUMREPOINSTALL=y), then you’re at mercy of frequency of REPO’s updates, but currently YUM REPO is still on MariaDB 5.2.7.
v1.2.1-eva2000.13 PRIVATE BETA – 14/09/2011
- Tune centminfullmenu2.sh Nginx networking settings
- Tuned centminfullmenu2.sh init.d for memcached, nginx, php-fpm to reduce stack size when OpenVZ systems detected
- Added centminfullmenu2.sh MariaDB mysql my-mdb-min.cnf and my-mdb-4gb.conf for
- Added centminfullmenu2.sh php-fpm-min.conf for
- Added centminfullmenu2.sh apc-min.ini for
- Added centminfullmenu2.sh xcache-min.ini for
v1.2.1-eva2000.12 PRIVATE BETA – 08/09/2011
- Hide script cleanup/deletion routine when centminfullmenu2.sh is in Menu Mode (ENABLE_MENU=y)
- Add to centminfullmenu2.sh NSD domain/ip/nameserver setup menu
- Add to centminfullmenu2.sh sendmail YUM install routine a check for Postfix existence. If Postfix exists, sendmail YUM install aborts
- Add to centminfullmenu2.sh Nginx and PHP upgrade menus, error check logging at configure, make and make install stages. Will abort if errors occur at each of the 3 stages.
- Revised centminfullmenu2.sh Memcached server install to prompt for 1 or 2 memcached server instances to be installed. Previous releases had defaulted to 2x 16MB memcached server instances.
- Revised centminfullmenu2.sh install routines with added check if custom conf, or file or install already exist or have already been run before. Prevents duplicate config settings from existing if folks accidentally re-run the main install routine again.
v1.2.1-eva2000.11 PRIVATE BETA – 06/09/2011
- Extended script menu centminfullmenu2.sh with Nginx add vhost & ioping.sh support
- Updated to Google Perf Tools v1.8.3
v1.2.1-eva2000.10 PRIVATE BETA – 04/09/2011
- Added script menu support via experimental centminfullmenu2.sh script
v1.2.1-eva2000.09 – 01/09/2011
- Updated Extras/nginx-vhost domain setup tool
- Updated Nginx from v1.0.5 to v1.0.6 http://nginx.org/en/CHANGES-1.0
- Updated Libevent from v2.0.12 to v2.0.13
- Optimised default MariaDB 5.2 MySQL my.cnf for lower memory usage for low memory based VPS (note: you’ll need more memory for better performance)
v1.2.1-eva2000.08 – 26/08/2011
- Updated to Google Perf Tools v1.8.2
- Updated PHP compile options added –with-xpm-dir=${LIBDIR} and IMAP support –with-imap –with-imap-ssl –with-kerberos
- Added yum install mlocate to CentOS 6.0 detection rountine as slocate doesn’t work
v1.2.1-eva2000.07 – 24/08/2011
- Updated PHP from PHP 5.3.7 to PHP 5.3.8
- Updated to Memcached server from v1.4.5 to v1.4.7
v1.2.1-eva2000.06 – 22/08/2011
- Updated to MariaDB 5.2.8 http://kb.askmonty.org/en/mariadb-528-release-notes (default YUM repo might not be updated frequently so maybe MariaDB 5.2.7)
v1.2.1-eva2000.05 – 19/08/2011
- Updated to PHP 5.3.7
- Updated PHP compile options with libjpeg/libpng/freetype & PDO support
- Added option for MariaDB 5.2.x CentOS YUM REPO installation via MDB_YUMREPOINSTALL=y option enabled by default, with MDB_INSTALL=n & MYSQL_INSTALL=n by default. So you will use yum update MariaDB-*to update MariaDB 5.2.x mysql server.
[root@localhost ~]# yum list MariaDB-* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.averse.net * extras: mirror.averse.net * updates: mirror.averse.net Excluding Packages in global exclude list Finished Installed Packages MariaDB-client.x86_64 5.2.7-101.el5 installed MariaDB-devel.x86_64 5.2.7-101.el5 installed MariaDB-server.x86_64 5.2.7-101.el5 installed MariaDB-shared.x86_64 5.2.7-101.el5 installed MariaDB-test.x86_64 5.2.7-101.el5 installed Available Packages MariaDB-debuginfo.x86_64 5.2.7-101.el5 ourdelta-mariadb52
v1.2.1-eva2000.04 – 10/08/2011
- Update for CentOS 6.0 if detected will install EPEL 6 repo for missing libmycrypt related rpms
- Updated Python from v2.7.1 to v2.7.2 but still leaving default CentOS 5/6 python versions intact
- Fix MariaDB 5.2.x server unable to start
v1.2.1-eva2000.03 – 2/08/2011
- Updated Nginx compile config and nginx-update.sh script
- Added –with-mcrypt if CentOS 5.6/6.0 is detected. Error with CentOS 5.5 hasn’t been resolved so mcrypt not compiled with CentOS 5.5 version.
- Temporarily removed Nginx v1.0.5 compile option –with-ld-opt=’-ltcmalloc_minimal’ as seem to get an error if compiled via centmin.sh script but manually compiling is fine. Haven’t figured it out yet but only started occuring with Nginx v1.0.5.If compiled via script get error
checking for --with-ld-opt="-ltcmalloc_minimal" ... not found ./configure: error: the invalid value in --with-ld-opt="-ltcmalloc_minimal"
If compiled manually it detects fine
checking for --with-ld-opt="-ltcmalloc_minimal" ... found
v1.2.1-eva2000.02 – 31/07/2011
- Updated Nginx to default to v1.0.5
- Fixed MariaDB 5.2 install for CentOS 5.6 http://vbtechsupport.com/920/#comment-113
- Revised my.cnf backup of old my.cnf before installing updated MySQL/MariaDB versions
v1.2.1-eva2000.01 – 18/06/2011
- Synced changes with official Centmin v1.2.1 i.e. add –tries=3 to wget downloads
- Added Centmin v1.2.1 official release nginx-vhost.sh setup script
- Fixed broken Seige benchmark and SPROXY download links
Change log:
(compared to official Centmin v1.2.0)
v1.2.0-eva2000.05 – 16/06/2011
- Updated MariaDB MySQL from 5.2.6-101 to 5.2.7-101. MariaDB 5.2.7 Release Notes.
- Fixed MariaDB download links by adding ${MDB_VERONLY} and ${MDB_BUILD} variables and changing MDB_VERSION variable to “${MDB_VERONLY}-${MDB_BUILD}”
- Updated Libevent from v2.0.10 to v2.0.12
- Added config/htpasswdgen/htpasswd.py python based htpasswd encoding generator to create passwords for systems without Apache. Original author of htpasswd.py, Eli Carter. To encode a password for htpasswd protection run command: python /usr/local/nginx/conf/htpasswd.py -b /usr/local/nginx/conf/htpasswd yourusername yourpassword. Or if you have htpasswd from apache, set password up with command: htpasswd -s /usr/local/nginx/conf/htpasswd yourusername
v1.2.0-eva2000.04 – 13/06/2011
- Additional php-fpm optimisations
- Fixed command shortcuts for mysqlstop, mysqlstart, mysqlrestart to take into account MySQL community versions chosen during install instead of MariaDB MySQL
- Updated MySQL Community default server & MariaDB MySQL my.cnf settings
v1.2.0-eva2000.03 – 11/06/2011
- Added yum.conf check routine after MariaDB and PHP installs to add mysql* and php* exclusion for default mysql and php during yum updates
- Updated apc.ini
- Fixed APC autoconf errors
- Add centmin-experimental.sh version which adds additional routines to be able to: centmin install, php upgrade, xcache upgrade, apc upgrade, nginx upgrade, standalone xcache or apc installations. Not fully tested yet. So do not use on live production servers.
v1.2.0-eva2000.02 – 10/06/2011
- Improved various Nginx and php-fpm config settings i.e. for correctly working $_SERVER['PATH_INFO'], $_PATH['PATH_TRANSLATED'] and $_SERVER['PHP_SELF'] php environment variables
v1.2.0-eva2000.01 – 09/06/2011
- Set MariaDB 5.2.x as default MySQL server installation
- Updated mysqltuner.pl download link
- Added Memcached server, libevent
- Added Memcache PHP extension – please leave at v3.0.5, v3.0.6 doesn’t seem to work
- Added Python 2.7.1 installed /opt/python2.7.1 leaving CentOS Python 2.4.3-43 intact
- Updated Nginx FancyIndex module download link to Gitorious archive tarball
- Changed APC Cache from YUM based install to compiled from source
- Added APC cache myapc.php admin page at /usr/local/nginx/html/myapc.phpAdded config/apc/apc.ini APC cache settings file
- Added xcache admin directory to /usr/local/nginx/html/myxcacheadmin/ you need to read config/xcache/xcache_admin_setup_instructions.txt for xcache admin user/pass changes procedure
- Added xcache admin password setup routine
- Added memcache.php admin login setup routine
- Fixed PHP configure error: Cannot find OpenSSL’s libraries
- Fixed Xcache compile error: Cannot find autoconf
- Fixed Extras/nginx-update.sh nginx version read variable ${ngver}
Please test the script on a test server before using on a live production server. There’s no support for the modified Centmin script. Script is provided as is.
Download:
- Centmin v1.2.0-eva2000.01
- Centmin v1.2.0-eva2000.03
- Centmin v1.2.0-eva2000.04
- Centmin v1.2.0-eva2000.05
- Centmin v1.2.1-eva2000.01
- Centmin v1.2.1-eva2000.02
- Centmin v1.2.1-eva2000.03
- Centmin v1.2.1-eva2000.04
- Centmin v1.2.1-eva2000.05
- Centmin v1.2.1-eva2000.06
- Centmin v1.2.1-eva2000.07
- Centmin v1.2.1-eva2000.08
- Centmin v1.2.1-eva2000.09
- Centmin v1.2.1-eva2000.10 (private beta version)
- Centmin v1.2.1-eva2000.11 (private beta version)
- Centmin v1.2.1-eva2000.12 (private beta version)
- Centmin v1.2.1-eva2000.13 (private beta version)
- Centmin v1.2.1-eva2000.14 (* new menu version * public release )
- Centmin v1.2.2-eva2000.01 (* new menu version * public release )
- Centmin v1.2.2-eva2000.02 (* new menu version * public release )
- Centmin v1.2.2-eva2000.03 (* new menu version * public release )
- Centmin v1.2.2-eva2000.04 (* new menu version * public release )
- Centmin v1.2.2-eva2000.05 (* new menu version * public release)
- Centmin v1.2.2-eva2000.06 (* new menu version * public release)
- Centmin v1.2.2-eva2000.07 (* new menu version * public release)
- Centmin v1.2.2-eva2000.08 (* new menu version * public release)
- Centmin v1.2.2-eva2000.09 (* new menu version * public release)
- Centmin v1.2.2-eva2000.10 (* new menu version * public release)
- Centmin v1.2.2-eva2000.11 (* new menu version * public release)
- Centmin v1.2.2-eva2000.12 (* new menu version * public release)
- Centmin v1.2.2-eva2000.13 (* new menu version * public release)
- Centmin v1.2.2-eva2000.14 (* new menu version * public release)
- Centmin v1.2.2-eva2000.15 (* new menu version * public release)
- Centmin v1.2.2-eva2000.16 (* new menu version * public release – latest)
Related posts:
- Nginx install script, PHP 5.3.6 (php-fpm), MariaDB 5.2.6, Xcache v1.3.1, Memcached server, CSF firewall, Siege Benchmark
- Rackspace.com Cloud Server – Nginx v1.0.2, PHP-FPM 5.3.6, Xcache v1.3.1, MariaDB 5.2.6 Install
- Centmin Nginx, PHP-FPM, MariaDB Menu Based Installer released
- Centminmod.com Nginx Auto Installer FAQ updated
- Centmin Mod Nginx Auto Installer updated
- BuyVM OpenVZ VPS Review: Centmin Nginx installed
- MariaDB 5.2.7 MySQL Server Released
- MariaDB 5.2.8 MySQL server released with various Aria storage engine fixes
- MariaDB 5.1.60 and MariaDB 5.2.10 MySQL Server released
- Nginx web server overtakes Microsoft IIS to rank #2 behind Apache in Netcraft Web Server survey
Previous: Android Market: vBulletin Android Mobile App v1.1.0.732 released
Next: MariaDB 5.2.7 MySQL Server Released
Incoming search terms:
- mariadb centos 6
- centos 6 mariadb
- php 5 3 8 fpm
- centmin vbtechsupport
- php 5 3 8 php-fpm
- php-fpm 5 3 8
- Nginx install script
- nginx php 5 3 8
- centos 6 php-fpm
- php 5 3 8 nginx
- mariadb my cnf low memory
- centmin eva2000
- mariadb centos6
- php 5 3 10 fpm
- centos 6 nginx
- install MariaDB centos 6
- mariadb memcached
- multi-thread compression: pigz pbzip2 lbzip2 p7zip etc
- php5 3 10
MaxCDN Site Acceleration |
319 Comments
Trackbacks/Pingbacks
- Nginx install script, PHP 5.3.6 (php-fpm), MariaDB 5.2.6, Xcache v1.3.1, Memcached server, CSF firewall, Siege Benchmark | vbtechsupport.com - [...] be basing future modifications and additions on official Centmin v1.2.0 script June 9th, 2011First modified version of mine based on ...
- MariaDB 5.2.7 MySQL Server Released | vbtechsupport.com - [...] eva2000 0 comments mysql Jun 16MariaDB 5.2.7 MySQL ...
- CentOS 6.0 fix for VBoxGuestAdditions installation for VirtualBox | vbtechsupport.com - [...] various Linux and Windows operating systems in a virtualized environment. However, while testing my modified Centmin Nginx installation script ...
- Centmin Nginx, PHP-FPM, MariaDB Menu Based Installer released | vbtechsupport.com - [...] released eva2000 0 comments memcached, mysql, nginx, php, projects, ...
- New site design for vbtechsupport.com blog | vbtechsupport.com - [...] you came here looking for Centmin Mod Nginx auto installer project, you can still find on under Projects category ...
- Centmin Mod Nginx Auto Installer updated | vbtechsupport.com - [...] updated eva2000 21 Dec, 2011 in memcached, mysql, nginx, php, projects, web tech | 0 commentsCentmin Mod Nginx Auto ...
Leave a Comment
You must be logged in to post a comment.




I don’t know if it has been mentioned anywhere, but if you run an nginx upgrade without doing a php reinstall, you will get 403 errors on your websites. As I have limited Linux familarity I didn’t try to troubleshoot it. Also, in your apc-mini install, you have apc.shm_size=16M which is far too small for a Drupal site. The minimum recommended seems to be 48M. I am trying 64M on my 1GB VPS.
pamamolf, there are adjustments that are possible, but I will leave optimisation to the individual user to decide as I don’t provide free optimisation advice for Centmin Mod. Centmin Mod is provided as is. I do provide paid private optimisation consult services if you need to contact me though at http://vbtechsupport.com/contactme/
PeZzy, that’s a strange one with nginx upgrade only causing 403 errors, never had that happen. Did you try this once, or repeat standalone nginx upgrade only to reproduce 403 errors ? As to APC default config values, they’re provide as is and up to individual user to adjust them to their own needs
I tried centminmod script 14 and the previous 13 with nginx 1.1.18 and then downgraded to 1.1.17, then back to 1.1.18. Nginx and php appeared to be running fine but php pages were producing 403 errors on all standalone attempts. Reinstalling php 5.3.10 fixed it.
What is the status of the script with MariaDB 5.3.5?
I was testing everything out with changes to MariaDB 5.3.5 AND PHP 5.4 and there were some fatal errors that prevented installation of drupal.
In case you want to try php 5.4 (apparently), apparently the latest dev versions of both memcache and APC work together, and they can be accessed through svn:
svn checkout https://svn.php.net/repository/pecl/apc/trunk apc-trunk
svn checkout https://svn.php.net/repository/pecl/memcache/trunk memcache-trunk
Suhosin and FFMPEG do not have newer versions unfortunately though.
Thanks for replying!
PeZzy, try standalone nginx upgrade, then restart php-fpm service
service php-fpm restart
does that fix 403 errors ?
Hi MicroClue, thanks for the tips. APC Trunk works fine so far from my testing with PHP 5.3.10 will have to test with PHP 5.4.x
But memcache php trunk seems to be for v2.2.5 after i installed the trunk PHP reports v2.2.5 memcache extension. Can’t find the trunk for >v3.0.6 memcache ?
No tests with MariaDB 5.3.5 as yet for centmin mod, haven’t had the time to do so yet.
One of the things I did was restart my VPS to see if it made a difference to the 403 errors. It didn’t. Reinstall of php worked.
Hmm didn’t notice that (Checked phpinfo and you are right.)
Try this: svn checkout -r 323682 https://svn.php.net/repository/pecl/memcache/trunk memcache-trunk
(Although it looks like they just forgot to update the version numbers..)
Hello
On nginx config i thing is a typo error on this:
directio 4m;
I am not sure if direction is the correct but i thing is a typo error
Thank you for your script. It helped me a lot. Tell me please, how can i setup WinSCP user for upload and download to nginx home directory?
Hi,
are you accepting donations to show support for this excellent project?
HI johannes, not accepting donations, but you can do you bit by sharing Centminmod.com with friends and folks, getting the word out and hitting my social bookmark icons for Google+, Facebook and twitter to just get the word out
v1.2.2-eva2000.15 was just released http://centminmod.com/changelog.html
Google+ page at https://plus.google.com/104831941868856035845?prsrc=1
Are the changes to php-fpm related to performance?
Also is it possible to add an upgrade routine to the script for the server kernel?
Thank you
yes php-fpm changes were for performance – well more specifically better memory and resource management during idle traffic times
As to upgrades, kernel gets an update check initiated each time you run nginx or php upgrade option via the yum prechecks – the new smarter check in v1.2.2-eva2000.15 does this better as well
Ok i was use already the latest nginx 1.1.19 and the php 5.3.10 and i want just to add this new option..
I upload the file phpstatus.conf from the script folder as was not there to my /usr/local/nginx/conf/
Then i compare your php-fpm.conf with my config file and i add inside as was missing:
error_log = /var/log/php-fpm/www-error.log
emergency_restart_threshold = 10
emergency_restart_interval = 1m
process_control_timeout = 10s
pm.status_path = /phpstatus
ping.path = /phpping
ping.response = pong
Now i need to know the path for the virtual.conf and which lines to add inside there so i can restart php-fpm and nginx to get them work
Or i miss something and i have to rebuild or reinstall anything?
Thank you
Hi,
I have installed ffmpeg today and need the paths to php and ffmpeg for the module it will be using it. Can you or someone let me know where these are on the server running centmin mod?
This is what I have there now (by default) but not sure if paths are correct as it is not converting:
Path for the PHP interpreter : /usr/bin/php
Video converting command : /usr/bin/ffmpeg -y -i [inputVideoPath] [outputVideoPath]
Video thumbnail command :/usr/bin/ffmpeg -y -i [inputVideoPath] -vframes 1 -ss 00:00:10 -an -vcodec png -f rawvideo -s 320×240 [outputImage]
Thank you.
Can someone confirm or let me know paths to php and ffmpeg on server, where they are located?
Thanks.
try looking in /usr/local/bin/
or try “find / -name ffmpeg” to search the whole OS.
Today on Centos64Bit i got this:
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
———————————————————————————-
Processing package: kernel-devel
Error: No matching Packages to list