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

Tắt các modules không cần thiết cho apache !

Đây là bản tham khảo các modules trong httpd.conf, các bạn có thể thêm bớt các modules tùy theo...

Chỉnh local time cho VPS

mv /etc/localtime /etc/localtime.oldln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh...

[Virtuamin] install php-mcrypt + php-domxml

Để install php-mcrypt + php-domxml cho webmin các bạn dùng: yum -y install php-mcrypt...

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

Hướng dẫn sử dụng Remote Backup !

Hướng dẫn sử dụng Remote Backup với rsync:1. Gửi yêu cầu hỗ trợ tại clients.viethosting.vn để...