PKP/OJS/Install Ubuntu

From Libopedia
Jump to navigation Jump to search
Back to OJS Installation

Ubuntu Server


  • Select an appropriate hostname/URL for this service. At Stellenbosch University we selected for production and for training/development.
  • Create a server, using Ubuntu 14.04 LTS 64 bit.
  • Use 250GB disk storage and 4GB memory.
  • Use 20GB for the root partition and the rest for var partition. Swap is about 4GB.
  • During installation, when "tasksel" pops-up, select to install the OpenSSH server.
  • Also during installation, select to have software security updates done automatically.

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
cp sources.list-14.04 sources.list
apt-get update
apt-get dist-upgrade

Extra Software

  • Run the following and install the LAMP Stack
  • For OJS and OCS
apt-get install php5-cli php5-curl php5-xmlrpc php5-pear php-pear ttf-freefont catdoc antiword pstotext libxalan2-java libsaxon-java postfix lynx-cur poppler-utils
  • For System Admin
apt-get install phpmyadmin mc ntp git-core mailutils
  • Edit ntp conf file.
nano /etc/ntp.conf
  • For IBM Tivoli backups
  • For VMWARE guest (If applicable)

Setup Postfix Email

  • Setup mail gateway through the local campus email server
dpkg-reconfigure postfix
  • Deliver root email to
nano /etc/aliases


  • Enable mod_rewrite
 a2enmod rewrite
  • Setup Apache permissions. AllowOverride All in config file.
nano /etc/apache2/sites-enabled/000-default.conf
  • 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/apache2/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 request to open ports 80 and 443 on the campus firewall for the journal server.
  2. Check status of open hosts on: