Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* web server operations */
- sudo systemctl restart apache2
- sudo systemctl status apache2
- sudo systemctl status nginx
- sudo systemctl start nginx
- /* configs */
- /etc/apache2/conf.d
- /etc/nginx/conf.d/domains
- /etc/php/5.6/fpm/pool.d/domain.conf
- /etc/php/5.6/fpm/php.ini
- /etc/mysql/my.cnf
- /* logs */
- /var/log/apache2/domains/domain.error.log
- sudo goaccess /var/log/apache2/domains/domain.log
- tail -f /var/log/apache2/domains/domain.log
- /var/log/mysql/error.log
- /var/log/php5.6-fpm.log
- /* how block diret access to phpmyadmin */
- nano /etc/apache2/conf.d/phpmyadmin.inc (or .conf)
- add in block:
- <Directory /usr/share/phpmyadmin>
- ...
- </Directory>
- lines below:
- Order Deny,Allow
- Deny from all
- Allow from 127.0.0.1
- sudo systemctl restart apache2
Advertisement
Add Comment
Please, Sign In to add comment