Here are the locations of the most important configuration files on the server.
Sometimes you just need to get down to the command line and tweak some things. Knowing where these files are located will help!
/etc/nginx/nginx.conf
This is the master configuration file for your entire NGINX server.
/etc/nginx/sites-enabled/
Each file in there contains the configuration for a single site.
/var/www/
One folder for each site is located in this location. This is where WordPress files are installed.
/etc/php/7.4/fpm/pool.d
This is the PHP configuration for a site.
Note: change ‘7.4’ to match the version of php you’re working with.
/usr/local/lsws/conf/httpd_config.conf
This is the global configuration file for OLS. It also contains the pointers to the individual configuration files for each site.
/usr/local/lsws/conf/vhosts/<yourdomain.com>/vhconf.conf
This is the configuration file for a site. This includes some of the PHP configs for each site.
/var/www/
One folder for each site is located in this location. This is where WordPress files are installed.
/usr/local/lsws/lsphp${phpver}/etc/php/lsphp74/litespeed/php.ini
Note: change lsphp74 to match the version of php you’re working with.
~/.wp-backup or /root/wp-backup
This is a hidden folder that stores our compressed backup files. When you attempt to restore a site, we pull the files from this folder. If you need to restore from a remote location you can download the remote files into this location.
~/.wp-backup2 or /root/wp-backup2
This is a hidden folder. When we attempt to restore a site, we pull the files from this folder. If you need to restore from a remote location you can download the remote files into this location.
/opt/wp-conf-backup
This is the folder that contains the backups of configurations that we make every four hours (if you choose to install this service on your server)
/usr/local/bin/wpcron.txt
When you enable the Linux cron for a site, the information about that site is added to this file. Every minute or so we sequentially process the lines in this file to trigger the WP CRON for each site. By using this file we can ensure that multiple cron jobs aren’t conflicting and fighting for resources.
/etc/wp-site-sync.conf
When you schedule a site to be periodically pushed to another server, that site information is added to this file. Just as with crons, when it’s time to run the sync process, we run through the list of sites in this file one at. This prevents the sync process from using up too many resources on the server by attempting to run multiple sync processes simultaneously.