Web888.vn
  • Shop
  • Blog
Đăng nhập
  • Đăng nhập / Đăng ký

Please enter key search to display results.

Home
  • Basic Wordpress
  • Technology News
  • wordpress resources
  • Wordpress Tutorial
Summary of experience and command using centminmod

Summary of experience and command using centminmod

  • 24-07-2022
  • trienkhaiweb
  • 0 Comments

If you have ever used or are using vultr,digitalocean to make Cloud Server run the web, you must have used it through system scripts, centminmod is one of them, at the time of writing this article, it seems centminmod is down trend because centos is about to be out date, but I hope soon we will see a new updated version of this extremely convenient and great performance webserver!

Mục lục

  • Location of Centmin Mod configuration files
  • Centmin mod shortcut (shortcut command)
  • How to install SSL (Letsencrypt) for sites on Centmin Mod
  • Advanced Customization Centmin Mod
  • Install Centmin Mod Addons

Location of Centmin Mod configuration files

Config NginX: /usr/local/nginx/conf/conf.d Log files record accounts, passwords when creating site: /root/centminlogs See more details below

Centmin mod shortcut (shortcut command)

  • Edit php.ini = phpedi t ( /usr/local/lib/php.ini )
  • Edit my.cnf = mycnf ( /etc/my.cnf )
  • Edit php-fpm.conf = fpmconf ( /usr/local/etc/php-fpm.conf )
  • Edit nginx.conf = nginxconf ( /usr/local/nginx/conf/nginx.conf )
  • Edit (nginx) virtual.conf = vhostconf – only edits /usr/local/nginx/conf/conf.d/virtual.conf not the additional vhost domain.com.conf files added later
  • Edit (nginx) php.conf = phpinc ( /usr/local/nginx/conf/php.conf )
  • Edit (nginx) drop.conf = dropinc ( /usr/local/nginx/conf/drop.conf )
  • Edit (nginx) staticfiles.conf = statfilesinc ( /usr/local/nginx/conf/staticfiles.conf )
  • nginx stop/start/restart = ngxstop/ngxstart/ngxrestart
  • php-fpm stop/start/restart = fpmstop/fpmstart/fpmrestart
  • mysql 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

Refer:

https://centminmod.com/command_shortcuts.html

How to install SSL (Letsencrypt) for sites on Centmin Mod

In the beta version, by default acmetool.sh is disabled, to enable it create a file: /etc/centminmod/custom_config.inc with the content: LETSENCRYPT_DETECT='y' Then use acmetool.sh to install the application Letsencrypt acme.sh client and cronjob script automatically renew your Letsencrypt SSL every 60 days. With the stable version, you don't need to care about the above note. The same can be applied to other web servers (each web server has a different directory structure).

cd /usr/local/src/centminmod/addons/
./acmeinstall
Command line meaning: move to addons folder, then line number 2 run file acmeinstall

The installation is complete,

Method 1: you can issue ssl certificate for site by following manual command lines

cd /usr/local/src/centminmod/addons./acmetool.sh issue tenmien.com lived

In case you want to reinstall ssl

cd /usr/local/src/centminmod/addons./acmetool.sh reissue tenmien.com lived

ssl configuration file saved at:

/usr/local/nginx/conf/ssl/tenmien.com/tenmien.com.crt.key.conf

Method 2: After installation, use acme's selection menu:

cd /usr/local/src/centminmod/addons./acmetool.sh
./acmemenu

Select the following options in turn from the menu:


SSL Management
first). acemtool.sh install
2). acmetool.sh update
3). acmetool.sh setup
4). Issue SSL Management
5). Renew SSL Management
6). Reissue SSL Management
7). Renew All Staging /Test Certs
8). Renew ALL Live Certs
9). Renew All Live Certs HTTPS Default
ten). Exit
Enter option [ 1 – 10 ]
-> Select option 4
first). Issue SSL Cert Staging/Test
2). Issue SSL Cert Staging/Test HTTPS Default
3). Issue SSL Cert Live
4). Issue SSL Cert Live HTTPS Default
5). Custom Webroot Issue SSL Cert Staging/Test
6). Custom Webroot Issue SSL Cert Staging/Test HTTPS Default
7). Custom Webroot Issue SSL Cert Live
8). Custom Webroot Issue SSL Cert Live HTTPS Default
9). S3 Issue SSL Certificate
ten). S3 Issue SSL Certificate
11). S3 Issue SSL Certificate
twelfth). S3 Issue SSL Certificate
13). Exit
-> Select option 3

Advanced Customization Centmin Mod

Custom Permalinks (static paths) Add the following to the location cluster nginx configuration file:

location / {… … try_files $uri $uri/ /wordpress/index.php?q=$request_uri; }

Refer:

https://centminmod.com/nginx_configure_wordpress.html#basicwordpress

Install Centmin Mod Addons

Refer:

https://centminmod.com/addons.html

Bài viết liên quan:

Hướng dẫn tạo đường dẫn thêm giỏ hàng tùy chỉnh cho woocommerce-en
User manual and basic admin functions WordPress CMS
Install WordPress Website on localhost using Xampp
Installing PHP and introducing PHP basics
Instructions for using the plugin wp bakery builder (visual composer) to make a landing page
Instructions for installing and activating Office 2013
15 pocket tips in daily life you should know
What is WordPress and why should learn about wordpress?
Install composer use for Xampp on Windows
Guide to debug (debug) when programming C/C++ with Dev C++
Binary integer representation and binary operations
Create Gmail STMP and install for WordPress, Laravel, php…

THÊM BÌNH LUẬN Cancel reply

Dịch vụ thiết kế Wesbite

NỘI DUNG MỚI CẬP NHẬT

Step-by-step guide to installing Microsoft SQL Server and connecting to the database for beginners

Reasons Why People Are Increasingly Inexperienced in Life

PHP Data Types

Table (table) in SQL Server

Basic data types in C

Giới thiệu

web888.vn là chuyên trang chia sẻ và cập nhật tin tức công nghệ, chia sẻ kiến thức, kỹ năng. Chúng tôi rất cảm ơn và mong muốn nhận được nhiều phản hồi để có thể phục vụ quý bạn đọc tốt hơn !

Liên hệ quảng cáo: [email protected]

Kết nối với web888

© web888.vn - Tech888 Co .Ltd since 2019

Đăng nhập

Trở thành một phần của cộng đồng của chúng tôi!
Registration complete. Please check your email.
Đăng nhập bằng google
Đăng kýBạn quên mật khẩu?

Create an account

Welcome! Register for an account
The user name or email address is not correct.

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.

Registration confirmation will be emailed to you.
Log in Lost your password?

Reset password

Recover your password
Password reset email has been sent.
The email could not be sent. Possible reason: your host may have disabled the mail function.
A password will be e-mailed to you.
Log in Register
×