Difference between revisions of "PKP/OJS/Install Ubuntu"
Jump to navigation
Jump to search
(Created page with "<center> '''Back to System Admin''' </center> ==Ubuntu Server== ===Virtual Server=== *Create a virtual server on stbch11.stb.sun.ac.za, using Ubuntu 12.04 L...") |
|||
| (20 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<center> | <center> | ||
| − | '''[[ | + | '''[[PKP/OJS_Installation|Back to OJS Installation]]''' |
</center> | </center> | ||
==Ubuntu Server== | ==Ubuntu Server== | ||
| − | === | + | ===Installation=== |
| − | * | + | *Select an appropriate hostname/URL for this service. At Stellenbosch University we selected http://www.journals.ac.za for production and http://journals.sun.ac.za for training/development. |
| − | *Use | + | *[http://ubuntu.sun.ac.za/wiki/index.php/Enterprise_Server_Management 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. | *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 and Network Setup=== | ||
| Line 22: | Line 19: | ||
cd /etc/apt | cd /etc/apt | ||
| − | wget http://web.lib.sun.ac.za/files/sources.list- | + | wget http://web.lib.sun.ac.za/files/sources.list-14.04 |
| − | cp sources.list- | + | cp sources.list-14.04 sources.list |
apt-get update | apt-get update | ||
| Line 36: | Line 33: | ||
tasksel | tasksel | ||
*For OJS and OCS | *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 | + | 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 |
<!-- apt-get install php5-cli php5-curl php5-xmlrpc ttf-freefont catdoc antiword pstotext sablotron libxalan2-java libsaxon-java postfix lynx-cur poppler-utils --> | <!-- apt-get install php5-cli php5-curl php5-xmlrpc ttf-freefont catdoc antiword pstotext sablotron libxalan2-java libsaxon-java postfix lynx-cur poppler-utils --> | ||
*For System Admin | *For System Admin | ||
| − | apt-get install phpmyadmin | + | apt-get install phpmyadmin mc ntp git-core mailutils |
*Edit ntp conf file. | *Edit ntp conf file. | ||
nano /etc/ntp.conf | nano /etc/ntp.conf | ||
| + | *For IBM Tivoli backups | ||
| + | http://ubuntu.sun.ac.za/wiki/index.php/IBM_Tivoli | ||
*For VMWARE guest (If applicable) | *For VMWARE guest (If applicable) | ||
http://ubuntu.sun.ac.za/wiki/index.php/VMWare-Tools | http://ubuntu.sun.ac.za/wiki/index.php/VMWare-Tools | ||
| Line 57: | Line 56: | ||
a2enmod rewrite | a2enmod rewrite | ||
*Setup Apache permissions. '''AllowOverride All''' in config file. | *Setup Apache permissions. '''AllowOverride All''' in config file. | ||
| − | nano /etc/apache2/sites-enabled/000-default | + | nano /etc/apache2/sites-enabled/000-default.conf |
*Setup PHP file limits | *Setup PHP file limits | ||
nano /etc/php5/apache2/php.ini | nano /etc/php5/apache2/php.ini | ||
| Line 65: | Line 64: | ||
* '''max_execution_time''' to 300 | * '''max_execution_time''' to 300 | ||
Remove the mcrypt error. | Remove the mcrypt error. | ||
| − | nano /etc/php5/conf.d/mcrypt.ini | + | nano /etc/php5/apache2/conf.d/mcrypt.ini |
Remove the commented line. | Remove the commented line. | ||
*Restart Apache web server | *Restart Apache web server | ||
/etc/init.d/apache2 restart | /etc/init.d/apache2 restart | ||
| + | |||
==Campus Firewall== | ==Campus Firewall== | ||
| − | #Take note of the IP address and create a | + | #Take note of the IP address and create a request to open ports 80 and 443 on the campus firewall for the journal server. |
#Check status of open hosts on: https://maties2.sun.ac.za/rtad4/useradm | #Check status of open hosts on: https://maties2.sun.ac.za/rtad4/useradm | ||
| − | |||
| − | |||
Latest revision as of 16:48, 26 July 2016
Back to OJS Installation
Contents
Ubuntu Server
Installation
- Select an appropriate hostname/URL for this service. At Stellenbosch University we selected http://www.journals.ac.za for production and http://journals.sun.ac.za 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
wget http://web.lib.sun.ac.za/files/sources.list-14.04
cp sources.list-14.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 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
http://ubuntu.sun.ac.za/wiki/index.php/IBM_Tivoli
- 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.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
- Take note of the IP address and create a request to open ports 80 and 443 on the campus firewall for the journal server.
- Check status of open hosts on: https://maties2.sun.ac.za/rtad4/useradm