hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : VPS Tutorials : Centmin Mod - Nginx / MariaDB auto installer
Reply

Forum Jump

Centmin Mod - Nginx / MariaDB auto installer

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-15-2012, 01:51 PM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
Talking

Centmin Mod - Nginx / MariaDB auto installer


Centmin Mod is a modified version of BTCentral's original Centmin Project (WHT thread).

Started it's own thread separate from original Centmin thread, as some end users are confusing the two versions.

What is Centmin Mod ?

I started modifying Ben's awesome original Centmin script for my own needs specifically for vBulletin/wordpress usage with MariaDB MySQL performance fork alternative to MySQL community release versions and slowly it grew to what it is now, Centmin Mod project with a full on shell menu based installer. You can see it in action on live site Centminmod.com which runs on 5x LEB CentOS 6.0 32bit OpenVZ VPSes.

It auto installs Nginx web server with log rotation along with various software: PHP-FPM with log rotation, better performing MySQL fork, MariaDB 5.2.x MySQL server, Memcached v1.4.10, Memcache v3.0.5, choice of PHP opcode cachers like Xcache v1.3.2 and APC Cache v3.1.9, CSF Firewall, Siege benchmark as well as CentOS updated version of Python v2.7.2. Also included is a custom ioping.sh disk i/o benchmark script which is a wrapper script to use ioping to test disk's random and sequential disk speeds.

FAQ: http://centminmod.com/faq.html
CHANGE LOG: http://centminmod.com/changelog.html
DOWNLOAD: http://vbtechsupport.com/920/

The install menu
Code:
--------------------------------------------------------
Centmin 1.2.2-eva2000.10 - http://centminmod.com
Menu/Mods Author: eva2000 (vbtechsupport.com)
Centmin Original Author: BTCentral (btcentral.org.uk)
--------------------------------------------------------
                   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). Exit
--------------------------------------------------------
Enter option [ 1 - 18 ] 
--------------------------------------------------------
Nginx
Code:
nginx version: nginx/1.1.12
built by gcc 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
TLS SNI support enabled
configure arguments: --sbin-path=/usr/local/sbin --conf-path=/usr/local/nginx/conf/nginx.conf 
--with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module 
--with-http_sub_module 
--with-http_addition_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module 
--add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-1.4 
--add-module=../nginx-accesskey-2.0.3 
--with-openssl=../openssl-1.0.0e --with-openssl-opt=enable-tlsext
Code:
PHP 5.3.9 (cli) (built: Jan 15 2012 16:53:40) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
Configure Command =>  '../configure'  '--enable-cgi' '--enable-fpm' '--with-mcrypt' '--with-mhash' 
'--with-zlib' '--with-gettext' '--enable-exif' '--enable-zip' '--with-bz2' '--enable-soap' 
'--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' 
'--with-pear' '--enable-mbstring' '--with-openssl' '--with-mysql=/usr/bin/' 
'--with-libdir=lib64' '--with-mysqli=/usr/bin/mysql_config' '--with-mysql-sock' '--with-curl' 
'--with-gd' '--with-xmlrpc' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' 
'--with-freetype-dir=lib64' '--with-jpeg-dir=lib64' '--with-png-dir=lib64' '--with-xpm-dir=lib64' '--enable-pdo' '--with-pdo-sqlite' '--with-pdo-mysql' 
'--enable-inline-optimization' '--with-imap' '--with-imap-ssl' '--with-kerberos' 
'--with-fpm-user=nginx' '--with-fpm-group=nginx'
MariaDB 5.2.10 MySQL
Code:
Server version          5.2.10-MariaDB-mariadb107
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/lib/mysql/mysql.sock
Uptime:                 10 hours 32 min 44 sec

Threads: 1  Questions: 1  Slow queries: 0  Opens: 15  Flush tables: 1  Open tables: 8  Queries per second avg: 0.0
Memcached v1.4.10 server with Libevent 2.0.16 stable
Code:
STAT pid 1692
STAT uptime 38520
STAT time 1326649059
STAT version 1.4.10
STAT libevent 2.0.16-stable
STAT pointer_size 64
STAT rusage_user 0.008998
STAT rusage_system 1.184819
STAT curr_connections 5
STAT total_connections 7
STAT connection_structures 6
STAT reserved_fds 20
STAT cmd_get 0
STAT cmd_set 0
STAT cmd_flush 0
STAT cmd_touch 0
STAT get_hits 0
STAT get_misses 0
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT touch_hits 0
STAT touch_misses 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 11
STAT bytes_written 7
STAT limit_maxbytes 8388608
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT hash_power_level 16
STAT hash_bytes 524288
STAT hash_is_expanding 0
STAT expired_unfetched 0
STAT evicted_unfetched 0
STAT bytes 0
STAT curr_items 0
STAT total_items 0
STAT evictions 0
STAT reclaimed 0
END
Tips:
  1. 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.
  2. Centmin Mod upgrade tip
    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 option #5 for upgrading Nginx web server and upgrading PHP.
  3. Centmin Mod FAQ
  4. Best to first test install on a local CentOS server i.e. install VMWARE, VirtualBOX etc to create a test server if you can to get a feel for the script.

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)



Sponsored Links
  #2  
Old 01-16-2012, 04:07 PM
aww aww is offline
Aspiring Evangelist
 
Join Date: Feb 2004
Posts: 394
PHP upgrade is failing for me - not sure if this is a non-mod problem

Code:
Initializing download: http://us.php.net/get/php-5.3.9.tar.gz/from/this/mirror
File size: 15390277 bytes
Opening output file php-.tar.gz
Starting download

Connection 1 finished                                                          ]
Connection 2 finished                                                          ]
Connection 0 finished                                                          ]
[100%] [..................................................] [   1.2MB/s] [00:00]

Downloaded 14.7 megabytes in 12 seconds. (1186.58 KB/s)
tar (child): php-5.3.9.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
./centmin.sh: line 1956: cd: php-5.3.9: No such file or directory

*************************************************
* Updating php.ini... 
*************************************************
old php.ini will be saved at /usr/local/lib/php.ini-oldversion
if you have modified your old php.ini i.e. installed and loaded
APC, Xcache, or Memcache - please re-install them after php upgrade
...
cp: cannot stat `php.ini-production': No such file or directory

make: *** No rule to make target `clean'.  Stop.
./centmin.sh: line 1999: ./buildconf: No such file or directory
make: *** No rule to make target `clean'.  Stop.
inc/php_configure.inc: line 10: ../configure: No such file or directory
*************************************************

Tue Jan 17 06:04:09 EST 2012
Error: 127, PHP configure failed

*************************************************
[root@localhost centmin-v1.2.2mod]#

  #3  
Old 01-16-2012, 06:45 PM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
Looks like php upgrade error detection aborted at configure stage as php version number for the tar.gz file wasn't found. I've updated v0.10 centmin zip file, so redownload it and use the updated centmin.sh file to run php upgrade menu option.

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)

Sponsored Links
  #4  
Old 01-23-2012, 09:43 PM
Vinayak_Sharma Vinayak_Sharma is offline
Always Learning...
 
Join Date: Aug 2002
Location: Bharat
Posts: 4,632
I did the upgrade, it was flawless.

Any plans to add subversion installation to the script?

__________________
Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
Offering domains, shared, reseller & VPS hosting.
Reliable Domain Reseller Account Resell Domains with Confidence

  #5  
Old 01-23-2012, 10:04 PM
leckley leckley is offline
Web Hosting Master
 
Join Date: Nov 2006
Location: USA
Posts: 1,125
I see there is another Nginx installer here that supports more software installs - http://www.webhostingtalk.com/showthread.php?t=1117043

Might be nice to add a few of those to yours?

__________________
Lane Eckley (lane@staff.hypernia.com) ♦ Hypernia Corporation ♦
Stablebox - Web Hosting, Domains, Dedicated & Cloud!
SuperPod - Business & Corporate Services ♦ Deploy up to 500 servers in 24 hours!

Australia | Brazil | Europe | Israel | Singapore | Turkey | USA

  #6  
Old 01-28-2012, 06:21 AM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
Quote:
Originally Posted by Vinayak_Sharma View Post
I did the upgrade, it was flawless.

Any plans to add subversion installation to the script?
Great to hear, unfortunately no plans right now.

Quote:
Originally Posted by leckley View Post
I see there is another Nginx installer here that supports more software installs - http://www.webhostingtalk.com/showthread.php?t=1117043

Might be nice to add a few of those to yours?
No plans to add some of those items as they aren't needed, i.e. eaccelerator and ftp app (use something like winscp instead on your end)

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)

  #7  
Old 01-28-2012, 06:21 PM
StartAgain StartAgain is offline
Junior Guru Wannabe
 
Join Date: Dec 2005
Posts: 85
Could you run a low traffic wordpress installation with this script on half a meg of RAM?

Thanks for posting this - you rock!

  #8  
Old 01-29-2012, 09:47 AM
d1srupt3r d1srupt3r is offline
Newbie
 
Join Date: Jul 2009
Posts: 21
Hello everyone! I just installed centmin mod in my vmware and it was successful. I am a newbie here and I want to learn more about nginx.
Since there's no control panel here like cPanel or Plesk(which I was used to), I am wondering how to setup/add/edit ftp accounts for domains(vhosts) added?
And also, what is the default username/password for memcache.php?

Thank you and I am very much excited to play with this and eventually use it in my existing website. My site is currently running nginx as proxy + apache2 + Plesk and I want to get rid of Plesk because it costs so much.

  #9  
Old 01-29-2012, 10:42 AM
d1srupt3r d1srupt3r is offline
Newbie
 
Join Date: Jul 2009
Posts: 21
I also forgot to ask. I know this sounds crazy but I really need to use like .htaccess in apache (because of the software I bought). I have successfuly converted the htaccess properly for nginx using this tool: http://www.anilcetin.com/convert-apa...cess-to-nginx/

Now what's next? Will still use .htaccess file but with nginx rewrite rule inside? or does nginx uses different filename for htaccess? Sorry for this newbie questions. I'vee been searching the net for weeks to successfully migrate to nginx.

  #10  
Old 01-29-2012, 11:38 AM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
Quote:
Originally Posted by StartAgain View Post
Could you run a low traffic wordpress installation with this script on half a meg of RAM?

Thanks for posting this - you rock!
You could but depends on traffic and database concurrency load levels and you may need to further tune nginx, php-fpm and mariadb mysql settings based on those concurrency load levels.

Quote:
Originally Posted by d1srupt3r View Post
Hello everyone! I just installed centmin mod in my vmware and it was successful. I am a newbie here and I want to learn more about nginx.
Since there's no control panel here like cPanel or Plesk(which I was used to), I am wondering how to setup/add/edit ftp accounts for domains(vhosts) added?
And also, what is the default username/password for memcache.php?

Thank you and I am very much excited to play with this and eventually use it in my existing website. My site is currently running nginx as proxy + apache2 + Plesk and I want to get rid of Plesk because it costs so much.
there is no default password for memcache.php, you set the password at install time when it prompts you for memcache admin username and password. You can change in in the memcache.php file itself though.

As to learning about nginx 2 best sources on the internet are

Adding vhosts http://centminmod.com/faq.html#setupvhostdns as to ftp, you'll have to add that yourself. Google.com is your friend or ask on this forum.

Quote:
Originally Posted by d1srupt3r View Post
I also forgot to ask. I know this sounds crazy but I really need to use like .htaccess in apache (because of the software I bought). I have successfuly converted the htaccess properly for nginx using this tool: http://www.anilcetin.com/convert-apa...cess-to-nginx/

Now what's next? Will still use .htaccess file but with nginx rewrite rule inside? or does nginx uses different filename for htaccess? Sorry for this newbie questions. I'vee been searching the net for weeks to successfully migrate to nginx.
No nginx doesn't support htaccess so accessing .htaccess won't work, so you need nginx's own rewrite rule format/syntax to be added to virtual host record for your nginx added vhost. Again best sources to look at are

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)

  #11  
Old 02-03-2012, 08:40 PM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
heads up if you updated to PHP 5.3.9, there's a security flaw and needs running update to PHP 5.3.10 http://www.webhostingtalk.com/showthread.php?t=1123125

for centmin mod users, run menu option #5 and when prompted for version number = 5.3.10

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)

  #12  
Old 02-04-2012, 03:12 AM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
v0.11 is being tested - I've added Suhosin PHP Extension menu option as well

Code:
--------------------------------------------------------
Centmin 1.2.2-eva2000.11 - 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-fpm install
19). Exit
--------------------------------------------------------
Enter option [ 1 - 19 ] 
--------------------------------------------------------

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)

  #13  
Old 02-05-2012, 12:31 PM
bhanuprasad1981 bhanuprasad1981 is offline
Aspiring Evangelist
 
Join Date: Dec 2007
Location: India
Posts: 352
can this script be used just for installing optional components like only pigz, xcache etc ?

  #14  
Old 02-05-2012, 05:04 PM
eva2000 eva2000 is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,154
menu option #8 and #17 but it's for centmin mod based installs only NOT any other nginx setups done with other scripts

__________________
: CentminMod.com Nginx Menu Installer (Nginx 1.5, PHP-FPM, MariaDB 5.5/10) - (How to install video)

  #15  
Old 02-05-2012, 06:13 PM
shahrul shahrul is online now
WHT Addict
 
Join Date: Jan 2005
Location: Malaysia
Posts: 102
hi there,

i try to update php 5.3.10 and got this.

PHP Code:
*************************************************
Automatically continuing upgrade in 30 seconds...
*************************************************

make: *** No rule to make target `clean'.  Stop.
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf not found.
           You need autoconf version 2.13 or newer installed
           to build PHP from SVN.
make: *** [buildmk.stamp] Error 1
make: *** No rule to make target 
`clean'.  Stop.
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
*************************************************

Mon Feb  6 08:08:56 EST 2012
Error: 1, PHP configure failed

************************************************* 

__________________
I blog at www.shahrulnizam.org

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nginx Auto Installer PHP MySQL ReoHostLtd VPS Tutorials 18 11-01-2012 12:45 AM
WHMCS-CSF Auto Unblocker - Version 2.1 ~ NOW WITH REMOTE SERVER AUTO INSTALLER ! lonea Software & Scripts Offers 0 07-05-2011 10:56 AM
nginx, php, mysql/mariadb, mail and vsftpd rasmusj VPS Hosting 8 06-15-2011 08:38 AM
Nginx Admin: The Free cPanel Nginx automated installer Plugin linux2k Software & Scripts Offers 13 05-21-2011 11:45 AM

Related posts from TheWhir.com
Title Type Date Posted
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
Nginx Raises $10M to Extend Commercial Support Web Hosting News 2013-10-15 11:20:26
nginx Version 1.4.0 Supports SPDY Protocol Web Hosting News 2013-04-29 15:08:14
Nginx Aims to Grow Market Share Under New CEO Gus Robertson Web Hosting News 2013-04-08 14:28:48
Softaculous Releases Auto Installer Version 4.1.7 Web Hosting News 2012-12-19 16:45:21


Tags
apc, centmin, centos, mariadb, memcached, nginx, php-fpm, xcache

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?