Setting up a server for HG Platform using NGINX PHP5 MySQL Required installations[[BR]] {{{ apt-get update && apt-get upgrade && apt-get install language-pack-en subversion postfix emacs portmap nfs-common wget lynx cron }}} For Postfix: Use setting 'Internet Site' for install type. Use .healthgurumedia.com for the system name. Set-up private IP:[[BR]] {{{ emacs /etc/network/interfaces remove last 2 line and add this: auto eth0 eth0:0 iface eth0 inet static address [static ip] netmask 255.255.255.0 gateway [gateway] iface eth0:0 inet static address [private ip] netmask 255.255.128.0 save and run: /etc/init.d/networking restart if this doesn't work leave it and reboot will fix it later }}} 2. Install php mysql nginx[[BR]] {{{ apt-get install mysql-server mysql-client nginx php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php-apc memcached spawn-fcgi && /etc/init.d/nginx start emacs /etc/init.d/spawn-fcgi-php - copy paste the contents from attched file spawn-fcgi-php then save chmod +x /etc/init.d/spawn-fcgi-php && update-rc.d spawn-fcgi-php defaults && /etc/init.d/spawn-fcgi-php start }}} 3. create folder /mnt/Media then add mount point in fstab for reboot [[BR]] {{{ mkdir /mnt/Media && echo "192.168.137.96:/var/www/imageserv/Media /mnt/Media nfs rsize=8192,wsize=8192,timeo=14,intr" >> /etc/fstab }}} 4. Add new private IP in image server [opossum.healthgurumedia.com] {{{ emacs /etc/exports add new ip in the end separated by space then restart: /etc/init.d/nfs-kernel-server restart }}} 5. Update PHP.INI from config below[[BR]] 6. reboot the server[[BR]] 7. Create hguser from bilby.healthgurumedia.com in previleges, by simply editing a current hguser and changing the host using the private ip and keep the old entry then click go[[BR]] 8. then setup new webserver by following [/wiki/ReleaseChecklist] '''PHP.INI Config (/etc/php5/cgi/php.ini)''' {{{ memory_limit = 256M session.save_handler = memcache session.save_path="tcp://192.168.137.54:11211?persistent=1&weight=1&timeout=1&retry_interval=15" }}}