LNMP ReadMe
TuxLite's LNMP script installer is extremely efficient by default. However, not all websites are the same so may want to further tune various configuration files to suite your site's traffic.
Also, the LNMP scripts do not install Phpmyadmin automatically. It must be installed manually (using the setup.sh script) as the official Debian/Ubuntu packages do not support Nginx yet.
1. Where is my virtualhost entry?
/etc/nginx/sites-available/domain.tld
2. How do I optimize PHP?
PHP5-FPM is the process manager for PHP. Its config is located in
/etc/php5/fpm/pool.d/
You should edit the following to suite your server's available memory:-
pm.max_children pm.start_servers pm.min_spare_servers pm.max_spare_servers
PHP.ini is located in
/etc/php5/fpm/php.ini
The following are the most commonly edited variables:-
max_execution_time max_input_time memory_limit post_max_size upload_max_filesize
3. Where is my.cnf?
/etc/mysql/my.cnf
4. How do I optimise Nginx?
Edit the /etc/nginx/nginx.conf You should adjust the following:-
worker_processes (typically 2-4 is enough for even the busiest sites) worker_connections (512 - 1024) client_max_body_size (Max upload size for PHP)
5. I want to edit the log rotation for a particular domain.
/etc/logrotate.d/domain-domain.tld
You can disable AWStats from running by simply commenting out the AWStats line under "postrotate".