Summary of the location of configuration files in EasyEngine

Tutorials 0 lượt xem
This is part 4 of 7 in the full EasyEngine series

This is the fourth article in the EasyEngines Series . 

While using EasyEngine, you need to know where the configuration files are located. So you can easily find and edit as you like. 

I would like to summarize the location of the configuration files here

NGINX

NGINX configuration file:​

  • /etc/nginx/: All NGINX configuration files will be in this directory
  • ​ /etc/nginx/nginx.conf: Main configuration file of NGINX
  • /etc/nginx/sites-available/: Configuration file of the domains you install on the server. If you need to edit anything for each domain, you can edit it here. 
  • /etc/nginx/sites-enabled/: Directory containing symbolic links leading to the configuration file of the corresponding domain with active status. You do not need to touch the files here. 
  • /etc/nginx/common/: Directory containing configurations added to NGINX such as HHVM, W3 Total Cache, WP Super Cache…

Log files: 

  • /var/log/nginx/: directory containing all log files of NGINX
  • /var/log/nginx/example.com.access.log: File access log of domain example.com
  • /var/log/nginx/example.com.error.log: File log error for domain example.com​

PHP

PHP Configuration

This is the configuration file for PHP version 7​

  • /etc/php/7.0/: All PHP configuration files will be in this directory
  • /etc/php/7.0/fpm/php.ini: PHP main configuration file
  • ​ /etc/php/7.0/fpm/php-fpm.conf: PHP-FPM settings
  • /etc/php/7.0/fpm/conf.d/www.conf: Individual PHP-FPM configuration file, 

Logs: 

  • /var/log/php/7.0: All PHP-FPM related log files are located here
  • /var/log/php/7.0/slow.log: View log of slow running scripts. 
  • /var/log/php/7.0/fpm.log: View PHP related logs. 

MySQL configuration and log files

MySQL Configuration

  • /etc/mysql/my.cnf: this is the main configuration file for MySQL
  • /etc/mysql/conf.d/my.cnf: This file contains the user and password of the MySQL root account.

Log files

  • /var/log/mysql/mysql.log: General log information related to MySQL
  • /var/log/mysql/mysql-slow.log: Log long-running queries

Website directory structure

​EasyEngine’s website directory structure is as follows: 

  • /var/www: all websites will be located here
  • ​ /var/www/example.com: Everything related to the example.com domain will be located here. This directory will contain the wp-config.php file. 
  • /var/www/example.com/htdocs: The root directory containing the website’s code. It’s like the public_html folder you’re used to seeing. 
  • /var/www/example.com/logs: Contains logs related to domain example.com
View articles in the series

Previous Part: How to Install WordPress on Ubuntu Using EasyEngine Next Part: How to Install Let’s Encrypt Certificate with EasyEngine

Bài viết liên quan