Back to top

 

Appliance Structure Info

Appliance

  • Host name: /etc/hostname
  • Hosts: /etc/hosts
  • Logs: /var/log
  • Compartmentalized Drupal/Solr-core layout allows deployment flexibility:
    • Can deploy Solr on different server and use drupal search as backup if lost communication.
    • Can deploy drupal stack accross servers (dedicated forum server, etc.)
    • Can deploy combination of the above.
  • Main console screen displays vital information.
  • Uses grub boot loader.

Tools

  • Address: https://admin.HOSTNAME
  • Location: /var/www/admin
  • Info: https://admin.HOSTNAME/tools.php
  • Security: protected by apache2 authn_dbm
  • Users: htdbm -bc /usr/local/apache2/passwd/admintools/passwords.dbm username password
  • php Pages: /var/www/admin
  • Images: /var/www/admin/images
  • Header CSS (symlinked): /var/www/drupal8/prod/web/themes/HOSTNAME
  • Apache configuration: /etc/apache2/sites-available/zzz-admin.HOSTNAME.conf

Adminer

  • Dependencies: Apache2, MariaDb, PHP
  • Location: /usr/share/adminer
  • Apache port: /etc/apache2/ports.conf
  • Apache configuration: /etc/apache2/sites-available/zzz-admin.HOSTNAME.conf

Apache

  • Location: /etc/apache2
  • Logs: /var/log/apache2
  • All sites redirected to https by default.
  • Webmin module for administration.

Dovecot

  • Location: /etc/dovecot
  • Data: /var/lib/dovecot
  • Webmin module for administration.

Drupal8

  • Dependencies: Apache2, MariaDb, PHP, [Solr]
  • Location: /var/www/drupal8
  • System admin: admin
  • CSS admin: cssadmin
  • CSS themes: /var/www/drupal8/prod/web/themes
  • Site stacks created using instructions and script.
  • Permanent apache url redirects used to isolate sub sites.
  • Apache configuration: /etc/apache2/sites-available/HOSTNAME.conf
  • Base Site (article): http://HOSTNAME
  • Solr cores (sans aggregator): /var/lib/solr/data/SITENAME

Fail2ban

  • Location: /etc/fail2ban
  • Jails: /etc/fail2ban
  • Log: /var/log/fail2ban.log
  • Webmin module for administration.

Invoice Ninja

  • Dependencies: Apache2, MariaDb, PHP
  • Address: https://billing.HOSTNAME/support/
  • Location: /var/www/invoiceninja
  • Apache configuration: symlink /etc/invoiceninja/apache.conf /etc/apache2/sites-available/billing.HOSTNAME.conf

Postfix

  • Location: /etc/postfix
  • Mail (Maildir format): /home/{username}/Maildir
  • Spool: /var/spool/postfix
  • Logs: /var/log/mail.*
  • Webmin module for administration.

ProFTPD

  • Location: /etc/proftpd
  • Server: /srv/ftp
  • Welcome message: /srv/ftp/welcome.msg
  • Logs: /var/log/proftpd
  • Webmin module for administration.

Roundup

  • Dependencies: Apache2, MariaDb, Python
  • Address: https://support.HOSTNAME/support/
  • Location: /var/www/support
  • Tracker configuration: symlink /etc/roundup/tracker-config.ini /var/www/support/config.ini
  • Apache configuration: symlink /etc/roundup/apache.conf /etc/apache2/sites-available/support.HOSTNAME.conf
  • Header CSS: /var/www/drupal8/prod/web/themes/HOSTNAME

Solr

  • Dependencies: JDK
  • Admin Address: http://HOSTNAME:8983/solr/#/
  • Location: /usr/local/solr
  • Data: /var/lib/solr/data
  • Password: /var/lib/solr/security.json
  • Jetty start (Solr): /usr/local/solr/server/start.jar
  • Jetty configuration: /usr/local/solr/server/etc
  • Solr configuration: /var/lib/solr/data/solr.xml
  • Core properties: /var/lib/solr/data/[sitename]/[sitetype]/core.properties
  • Drupal8 schema: /var/lib/solr/data/[sitename]/[sitetype]/conf/schema.xml
  • Drupal8 configuration: /var/lib/solr/data/[sitename]/[sitetype]/conf/solrconfig.xml

Webmin