File System Layout
NGINX
/etc/nginx
- Main NGINX Configuration Directory /etc/nginx/nginx.conf
- Main NGINX Configuration File /etc/nginx/sites-available/
- NGINX Configuration For Websites /etc/nginx/sites-enabled/
- Symbolic Link for Active Websites /etc/logrotate.d/nginx
- NGINX Log Rotation Configuration File /var/log/nginx/
- NGINX Log Directory
PHP7
/etc/php/7.1/
- Main PHP7 Configuration Directory /etc/php/7.1/fpm/php.ini
- Main PHP7 Configuration File /etc/php/7.1/fpm/php-fpm.conf
- PHP7 FPM Related Settings for WWW Pool /etc/php/7.1/fpm/pool.d/www.conf
- PHP7 WWW Pool Settings /etc/php/7.1/fpm/pool.d/debug.conf
- PHP7 XDEBUG Pool Settings /etc/php/7.1/fpm/pool.d/user.conf
- PHP7 Specific User (user) Pool Settings 127.0.0.1:9011
/etc/php/7.1/fpm/pool.d/client.conf
- PHP7 Specific User (client) Pool Settings 127.0.0.1:9012
/var/log/php/
- PHP7 Log Directory
MySQL
/etc/mysql/
- Main MySQL Configuration Directory /etc/mysql/my.cnf
- MySQL Configuration File /root/.my.cnf
- MySQL root Username/Password File /var/log/syslog
- MySQL Logs File
Website
/home/user/vhosts/
- Main WebRoot For user Account /home/user/vhosts/example.com/htdocs/
- Webroot for example.com website /home/user/vhosts/example.com/conf/
- Any *.conf
file inside this will be added on NGINX Rules /home/user/vhosts/example.com/ssl/
- SSL Certificate For example.com /home/user/vhosts/example.com/logs/
- NGINX Logs for example.com
Shared Hosting Setup
Post Navigation
First 5 Minutes on Setup Linux Server Security Setup User Account