Skip to content
feri edited this page Mar 31, 2011 · 4 revisions

Overview

This document aims at sysadmins of new.midgard-project.org, but could be useful to anybody who wants to setup a MidgardMVC - PHP AppServer powered web site.

The server is run by SmallOne. For current admins please scroll to the bottom.

Basic Details

Web Application

The MidgarMVC web application is serving the content.

An hourly cron job is taking care for content update (/etc/cron.hourly/midgard-project-content-import) This solution should be changed at some point to a proper triggering mechanism.

Details

  • IP Address / Port: 127.0.0.1 / 8001
  • Run by: www-data
  • Location: /var/new.midgard-project.org/
  • Configuration: /var/new.midgard-project.org/application.yml
  • Database used: midgardproject_org - MySQL

Proxy

Nginx is proxying all incoming requests on port 80 to the web application (see above).

Details

  • Configuration: /etc/nginx/sites-available/new.midgard-project.org

Logging

An hourly cron job (/etc/cron.hourly/nginx) rotates logs files and places them into a directory tree: /var/log/nginx/{YEAR}/{MONTH}/{DAY}

  • Error logs: /var/log/nginx/new.midgard-project.org_error.log
  • Access logs: /var/log/nginx/new.midgard-project.org_access.log

Backups

Backups are created in /var/backups. We should have an automated way to copy backups to a remote server too.

MySQL

  • MySQL table dumps taken hourly by a backupninja script: /etc/backup.d/db.mysql
  • Location: /var/backups/data/sqldump/

WebApp config

TODO

Current root users