PKP/OJS/Install Ubuntu

From Libopedia
Revision as of 10:33, 23 July 2014 by Hgibson (talk | contribs)
Jump to navigation Jump to search
Back to OJS

Ubuntu Server

Virtual Server

  • Create a virtual server on stbch11.stb.sun.ac.za, using Ubuntu 12.04 LTS 64 bit.
  • Use 15GB disk storage, 512MB memory and the 20 segment network.
  • During installation, when "tasksel" pops-up, select to install the OpenSSH server.
  • Use 5GB for the root and 10GB for var. Swap is about 1GB.

MAC Address Network Registration

  • Register the MAC address on RTAD, then setup server network.
  • Wait at least 10 mins, then restart the server and continue with installation.

File:Journal-mac-reg.png

After Installation and Network Setup

  • After installation, login remotely using SSH and setup local repositories and perform a software upgrade.
sudo -i
cd /etc/apt
wget http://web.lib.sun.ac.za/files/sources.list-12.04
cp sources.list-12.04 sources.list
apt-get update
apt-get dist-upgrade
reboot

Extra Software

  • Run the following and install the LAMP Stack
 tasksel
  • For OJS and OCS
apt-get install php5-cli php5-curl php5-xmlrpc ttf-freefont catdoc antiword pstotext libxalan2-java libsaxon-java postfix lynx-cur poppler-utils
  • For System Admin
apt-get install phpmyadmin apticron mc cron-apt ntp git-core
  • Edit ntp conf file.
nano /etc/ntp.conf
  • For VMWARE guest (If applicable)
http://ubuntu.sun.ac.za/wiki/index.php/VMWare-Tools

Setup Postfix Email

  • Setup mail gateway through the local campus email server mail.sun.ac.za.
dpkg-reconfigure postfix
  • Deliver root email to scholar@sun.ac.za.
nano /etc/aliases
newaliases

Apache

  • Enable mod_rewrite
 a2enmod rewrite
  • Setup Apache permissions. AllowOverride All in config file.
nano /etc/apache2/sites-enabled/000-default
  • Setup PHP file limits
nano /etc/php5/apache2/php.ini

Change the following

  • upload_max_filesize to 1000M.
  • post_max_size to 1000M.
  • max_execution_time to 300

Remove the mcrypt error.

nano /etc/php5/conf.d/mcrypt.ini

Remove the commented line.

  • Restart Apache web server
/etc/init.d/apache2 restart

Campus Firewall

  1. Take note of the IP address and create a change control request on RTAD to open ports 80 and 443 on the campus firewall for the virtual server.
  2. Check status of open hosts on: https://maties2.sun.ac.za/rtad4/useradm

File:Open-hosts.png