One-click installation of the latest tool Centmin Mod for LNMP on CentOS

Source: Internet
Author: User
Tags apc vps ssh port arch linux

Recently, our new VPS customers have suddenly increased and we don't know where our friends are from. Maybe a forum mentioned our VPS, as long as you hear the cry of "tutorial", you can feel this eagerness from the other side of the earth. Installing Nginx on Linux, MySQL, PHP (also known as LNMP) is a line of command, and there is no need for any "tutorial". Even if you need a google/baidu tutorial, you can find the ghost, there is no need to "ask" again. For example, install Nginx, MySQL, and PHP on Ubuntu 12.04:

 
 
  1. $ sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql nginx php5-fpm

It is not recommended for beginners to use the one-click Installation tool from the very beginning. The one-click Installation Tool hides details, which is not conducive to learning. However, after having configured the system several times and having been familiar with Linux, It is very convenient to use some one-click Installation Tools, in addition to installing necessary software, the one-click Installation tool also has some additional functions, such as "Disable SELINUX", "Change SSH port", and "add a vhost. The one-click Installation Tool Centmin Mod introduced here is improved by the original Centmin script. It seems that the original Centmin has stopped updating.

Note that Centmin Mod can only run on CentOS/RHEL systems and replaces the original MySQL with MariaDB, the default MySQL version of almost all mainstream Linux releases (Fedora/RHEL, openSUSE, Arch Linux, and Slackware) will be switched to MariaDB, and Red Hat will use MariaDB in RHEL 7.0, google is also replacing MySQL with MariaDB.

Update the entire system before running the Centmin Mode script. If necessary, restart the system:

 
 
  1. # yum -y update

  2. # reboot

Download and decompress the CentMin Mod package, and add the executable permissions for centmin. sh:

 
 
  1. # wget http://centminmod.com/download/centmin-v1.2.3-eva2000.03.zip

  2. # unzip centmin-v1.2.3-eva2000.03.zip

  3. # cd centmin-v1.2.3mod/

  4. # chmod +x centmin.sh

Run this script:

 
 
  1. # ./centmin.sh

  2. --------------------------------------------------------

  3. Centmin Mod 1.2.3-eva2000.03 - http://centminmod.com

  4. --------------------------------------------------------

  5. Centmin Mod Menu

  6. --------------------------------------------------------

  7. 1). Centmin Install

  8. 2). Add Nginx vhost domain

  9. 3). NSD setup domain name DNS

  10. 4). Nginx Upgrade / Downgrade

  11. 5). PHP Upgrade / Downgrade

  12. 6). XCache Re-install

  13. 7). APC Cache Re-install

  14. 8). XCache Install

  15. 9). APC Cache Install

  16. 10). Memcached Server Re-install

  17. 11). MariaDB 5.2.x Branch Upgrade Only

  18. 12). MariaDB 5.2.x to MariaDB 5.5 YUM upgrade

  19. 13). Install ioping.sh vbtechsupport.com/1239/

  20. 14). SELinux disable

  21. 15). Install/Re-install imagick PHP Extension

  22. 16). Change SSHD Port Number

  23. 17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc

  24. 18). Suhosin PHP Extension install

  25. 19). Install FFMPEG and FFMPEG PHP Extension

  26. 20). NSD Re-install

  27. 21). Exit

  28. --------------------------------------------------------

  29. Enter option [ 1 - 21 ] 1

  30. ...

  31. *************************************************

  32. * Centmin Mod install completed....

  33. *************************************************

The above menu prompt is clear. Select 1 ). centmin Install starts to Install Nginx/MySQL/PHP. After the installation is complete (it may take about 10 to 30 minutes), access the VPS directly from the browser through the IP address to see Nginx Test Page.

If you need to Add an Nginx vhost configuration, select 2). Add Nginx vhost domain:

 
 
  1. # ./centmin.sh

  2. --------------------------------------------------------

  3. Centmin Mod 1.2.3-eva2000.03 - http://centminmod.com

  4. --------------------------------------------------------

  5. Centmin Mod Menu

  6. --------------------------------------------------------

  7. 1). Centmin Install

  8. 2). Add Nginx vhost domain

  9. 3). NSD setup domain name DNS

  10. 4). Nginx Upgrade / Downgrade

  11. 5). PHP Upgrade / Downgrade

  12. 6). XCache Re-install

  13. 7). APC Cache Re-install

  14. 8). XCache Install

  15. 9). APC Cache Install

  16. 10). Memcached Server Re-install

  17. 11). MariaDB 5.2.x Branch Upgrade Only

  18. 12). MariaDB 5.2.x to MariaDB 5.5 YUM upgrade

  19. 13). Install ioping.sh vbtechsupport.com/1239/

  20. 14). SELinux disable

  21. 15). Install/Re-install imagick PHP Extension

  22. 16). Change SSHD Port Number

  23. 17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc

  24. 18). Suhosin PHP Extension install

  25. 19). Install FFMPEG and FFMPEG PHP Extension

  26. 20). NSD Re-install

  27. 21). Exit

  28. --------------------------------------------------------

  29. Enter option [ 1 - 21 ] 2

  30. --------------------------------------------------------

  31. Enter vhost domain name you want to add (without www. prefix): vpsee.com

  32. ---------------------------------------------

  33. nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok

  34. nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

  35. Reloading nginx: [ OK ]

  36. ---------------------------------------------

  37. vhost for vpsee.com created successfully

  38. vhost conf file for vpsee.com created: /usr/local/nginx/conf/conf.d/vpsee.com.conf

  39. upload files to /home/nginx/domains/vpsee.com/public

  40. vhost log files directory is /home/nginx/domains/vpsee.com/log

  41. Current vhost listing at: /usr/local/nginx/conf/conf.d/

  42. Sep 11 22:26 2.3K virtual.conf

  43. Sep 11 22:26 798 ssl.conf

  44. Sep 11 22:55 1002 vpsee.com.conf

  45. ---------------------------------------------

If you want to Install the PHP accelerator APC, run centmin. sh and select 9). APC Cache Install; if you want to change the SSH port? Want to disable SELinux? Check the menu prompts above.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.