-
Notifications
You must be signed in to change notification settings - Fork 0
Web server setup
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.
- Base OS: The server runs Ubuntu Natty.
- Proxy server: nginx 0.8.54
- Database server: MySQL 5.1
- Web server: AppServer in PHP 0.5.0
- Web application: org_midgardproject_projectsite
- Backup: backupninja
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.
- 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
Nginx is proxying all incoming requests on port 80 to the web application (see above).
- Configuration: /etc/nginx/sites-available/new.midgard-project.org
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 are created in /var/backups. We should have an automated way to copy backups to a remote server too.
- MySQL table dumps taken hourly by a backupninja script: /etc/backup.d/db.mysql
- Location: /var/backups/data/sqldump/
TODO