Install Centmin on CentOS

Centmin is a bash script developed for use on CentOS 5 & 6.
It is designed to provide a fully functional NMP plus DNS stack - using minimal resources.

 

Centmin features:

- Updates any pre-installed software (via Yum)
- Secures /tmp (and /var/tmp) directories
- Installs development tools needed for compilation of Nginx and NSD
- Sets server to use your local timezone
- Installs Nginx, MySQL, PHP 5.3.8 (with FPM)
- Installs NSD (DNS Server - a low-memory alternative to BIND)
- Installs NTP (Other than on OpenVZ VPS)
- Installs Sendmail (enables PHP to use the mail function)
- Optional: Installs Alternative PHP Cache, XCache, Memcached, Siege, MariaDB, ConfigServer Firewall

Just do this:

mkdir centmin && cd centmin
wget http://www.centmin.com/download.php?m=la
tar xzf centmin-latest.tar.gz
cd
centmin-latest
chmod +x ./centmin.sh && ./centmin.sh



And done !

Edit php.ini = phpedit
Edit my.cnf = mycnf
Edit php-fpm.conf = fpmconf
Edit nginx.conf = nginxconf
Edit (nginx) virtual.conf = vhostconf
Edit (nginx) php.conf = phpinc
Edit (nginx) drop.conf = dropinc
Edit (nginx) staticfiles.conf = statfilesinc
nginx stop/start/restart = ngxstop/ngxstart/ngxrestart
php-fpm stop/start/restart = fpmstop/fpmstart/fpmrestart
mysql (or MariaDB) stop/start/restart = mysqlstop/mysqlstart/mysqlrestart
nginx + php-fpm stop/start/restart = npstop/npstart/nprestart
memcached stop/start/restart = memcachedstop/memcachedstart/memcachedrestart
csf stop/start/restart = csfstop/csfstart/csfrestart

Update nginx = nginx-update
Setup new nginx vhost = nginx-vhost domain.com
(where domain.com is the domain you want to setup without the www.)

  • 91 Users Found This Useful
Was this answer helpful?

Related Articles

Setup & disable unused services on CentOS

Step 1: Now we will remove all software groups, to get Centos to a minimum Step 1.1: Run...

install g++ on CentOS

g++ is often necessary for building various packages. But It’s quite hard to install it in...

How to Compress and Uncompress Files with SSH

Login to SSH: 1) To compress files: Examples: tar cvf abc.tar a1.ps a2.tex adir/* # compress...

Repair all tables on server with SSH

Login to SSH. Try to run this command: mysqlcheck -A -h localhost -u root -r -p It asks mysql...

scp resume after got disconnected or timeout

I often use the UNIX command line tool scp (secure copy) to copy a file to a remote server....