Website management commands on EasyEngine

One of the features I like in EasyEngine is that it integrates a lot of commands so that we can manage our website easily without relying on UI support programs. And managing websites in EasyEngine will be declared by domain.

The commands in this article will be started with ee site.

Reference: site – EasyEngine

ACCESS COMMAND (CD)

To access the root directory of a website, you will need to use the ee site cd command as follows.

ee site cd domain.com

Or if you just need to delete the source code, add the parameter --files, or if you just need to delete the database, add the parameter --db. For example:

ee site delete domain.com --files # Delete the web data of this domain

TURN OFF WEBSITE (DISABLE)

If you need to turn off a website without deleting the data, you can use the ee site disable command.

ee site disable domain.com

If you want to turn it on, use it ee site enable.

ee site enable domain.com

EDIT NGINX CONFIGURATION OF WEBSITE (EDIT)

To edit NGINX configuration of a website (at / etc / nginx / sites-available ) just use the command ee site edit.

ee site edit domain.com

It may be necessary to ask which text editor you need to use at the first time, choose number 2 to use Nano for simplicity. After editing and saving, the system will automatically test and restart NGINX.

VIEW WEBSITE INFORMATION (INFO)

If you need to see website information such as database information, software used, … then use the command ee site info.

ee site info domain.com

SEE WEBSITE LIST (LIST)

Just use the command and ee site list you will see a list of websites available on the server.

UPDATE WEBSITE INFORMATION (UPDATE)

This is a very useful command if you need to add certain features to the website but when you add it you have not set it, for example, you want to change from the W3 Total Cache configuration to WP Super Cache, you will use this command.

ee site update domain.com --wpfc

At the above command, it means I need to update the domain.com website using WordPress with FastCGI Cache configuration.

CLEAR CACHE (EE CLEAN) COMMAND

Although it is not a website management order, I will put it here because it is also short and easy to use. This cache delete is used to clear the cache of Pagespeed, Memcached and Opcache. Usage is simple, just type the command ee clean --all.

THE LOG VIEW COMMANDS OF THE SYSTEM AND THE WEBSITE

To see the log we can access the files we have presented in the Location of configuration files to view, but in EasyEngine it has built-in simple commands for fast log viewing, why Don’t use it. EasyEngine’s log view commands look like we see a live log with the tail command in Linux.

When viewing the log, if you want to exit, use the key combination Ctrl + C.

See log the entire system

To view the entire system log (including MySQL, PHP, and access log), we can use simple commands.

ee log show

Or if you want to see specific logs, add the –mysql, –php, –nginx, –fpm or –access parameters.

ee log show --php

View log for each specific domain

If you have multiple domains on the server and need to see the log of a domain, you can add the domain parameter to view log. For example:

ee log show domain.com

or

ee log show domain.com --fpm

Very simple but understand the result right?

About the Author: admin

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *