krlaboratories

Hestia Starter Guide

Nov 22nd, 2021 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. /* web server operations */
  2.  
  3. sudo systemctl restart apache2
  4. sudo systemctl status apache2
  5.  
  6. sudo systemctl status nginx
  7. sudo systemctl start nginx
  8.  
  9. /* configs */
  10.  
  11. /etc/apache2/conf.d
  12. /etc/nginx/conf.d/domains
  13.  
  14. /etc/php/5.6/fpm/pool.d/domain.conf
  15. /etc/php/5.6/fpm/php.ini
  16.  
  17. /etc/mysql/my.cnf
  18.  
  19. /* logs */
  20.  
  21. /var/log/apache2/domains/domain.error.log
  22. sudo goaccess /var/log/apache2/domains/domain.log
  23. tail -f /var/log/apache2/domains/domain.log
  24.  
  25. /var/log/mysql/error.log
  26.  
  27. /var/log/php5.6-fpm.log
  28.  
  29. /* how block diret access to phpmyadmin */
  30.  
  31. nano /etc/apache2/conf.d/phpmyadmin.inc (or .conf)
  32. add in block:
  33.  
  34. <Directory /usr/share/phpmyadmin>
  35. ...
  36. </Directory>
  37.  
  38. lines below:
  39.  
  40. Order Deny,Allow
  41. Deny from all
  42. Allow from 127.0.0.1
  43.  
  44. sudo systemctl restart apache2
Advertisement
Add Comment
Please, Sign In to add comment