UESPWiki:Server Setup

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

General Setup[edit]

The following lists the various setup steps and software required for each server type.

All Servers[edit]

  • Modify /etc/services to include Zabbix entries
  • Create /etc/zabbix/zabbix_agentd.conf
  • Copy custom commands to /etc/zabbix/commands/
  • Setup zabbix_agentd to start automatically
  • DenyHosts
  • Public/private keys
  • Path modification to include /usr/sbin and /sbin
  • Host name modification
  • Ensure max open files is at least 8192.
  • Setup smartd for disk monitoring:
  • /etc/smartd.conf should look something like:
     DEVICESCAN -m email1,email2 -H -M test
  • Restart smartd and confirm a test e-mail has been sent/received.
  • Setup mdmonitor for raid monitoring if required:
  • Edit relevant e-mail address for event messaging in /etc/mdadm.conf which should look something like:
    DEVICE partitions
    MAILADDR email
    ARRAY /dev/md2 level=raid1 num-devices=2 uuid=...
    ARRAY /dev/md1 level=raid1 num-devices=2 uuid=...
    ARRAY /dev/md0 level=raid1 num-devices=2 uuid=...
  • Restart mdmonitor and confirm a test e-mail has been sent/received.
  • Add the noatime option to relevant drives in /etc/fstab and remount (mount -o remount /)

Content Servers[edit]

  • Apache v2
  • memcached (if required)
  • php v5
  • eAccelerator
  • wikidiff2
  • php-pear
  • php-devel
  • php-common
  • php-cli
  • php-pecl-memcache
  • php-gd
  • php-mbstring
  • php-mcrypt
  • php-mysql
  • php-pdo
  • php-xml
  • php-bcmath
  • Change session path to shared directory
  • session.save_path = "/mnt/uesp/phpsessions"
  • mysql (just client)
  • perl
  • perl-DBD-MySQL
  • perl-DBI
  • perl-String-CRC32
  • perl-URI
  • ImageMagick
  • tidy
  • Mount file shares (wikiimages, filecache, phpsessions)
  • Start portmap, rpc.statd, rpc.lockd
  • Add server IP to all entries in hosts.allow and exports on files1
  • Update exports on files1 with exportfs -a
  • Create mount points:
  • /mnt/uesp/wikiimages
  • /mnt/uesp/filecache
  • /mnt/uesp/phpsessions
  • Mount file shares
  • Add mount commands to rc.local
  • Copy content files

File Server[edit]

  • Lighttpd
  • Setup NFS shares: wikiimages, filecache, phpsessions
  • Copy file data: wikiimages, mapimages, filecache, phpsessions

Database Server[edit]

  • Apache v2, php v5 (optional)
  • MySQL v5.0.X
  • Setup/copy database content

Squid Server[edit]

  • Squid v2.6
  • Apache v2

Other[edit]

  • Zabbix Server (on monitoring server)
  • OpenIPMI
  • libssh2
  • MySQL v5.0 (on backup/replication server)

Setup Scripts[edit]

The following are various scripts to aid in setting up new servers:


Setup History[edit]

Record of server setup steps