SubjectPlus
is an open-source tool for creating subject guides and managing library
content. This guide walks you through the installation of SubjectPlus version
4.6 on Ubuntu 22.04 LTS.
Step 1: Upgrade Ubuntu Packages
sudo apt update
sudo apt upgrade
Step 2: Install PHP 7.4
sudo apt -y install
software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
Install
the required PHP extensions:
sudo apt-get install -y
php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd
php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath
Check the
PHP version:
php -v
Step 3: Install Apache Web Server
sudo apt install apache2
sudo systemctl restart apache2
Step 4: Install Database Server (MariaDB)
sudo apt install mariadb-server
sudo mysqladmin -u root password
'your_password'
Log into
MySQL to create the SubjectPlus database:
sudo mysql
In the
MySQL shell:
CREATE DATABASE subjectsplus;
exit;
Restart
services:
sudo service apache2 restart
sudo service mysql restart
Step 5: Download and Configure SubjectPlus
Create
working directories:
sudo mkdir /sp
cd /sp/
sudo apt-get install unzip
mkdir -p /var/www/html/sp
Download
SubjectPlus 4.6:
wget
https://github.com/subjectsplus/SubjectsPlus/archive/refs/tags/v4.6.zip
ls # to verify the downloaded file name
Unzip the
archive:
unzip -q /sp/v4.6.zip -d
/var/www/html/
mv
/var/www/html/SubjectsPlus-4.6/ /var/www/html/sp/
Step 6: Set Permissions
sudo chown -R www-data:www-data
/var/www/html/sp/
sudo chmod -R 755
/var/www/html/sp/
Step 7: Proceed with Web Installation
Open a
web browser and go to:
http://your_server_ip/sp/control
Follow
the on-screen instructions to complete the installation.
Admin
interface page:
http://your_server_ip/sp/control/
Optional: Install phpMyAdmin (for DB Management)
sudo apt install phpmyadmin
You're All Set!
SubjectPlus 4.6 is now installed on your Ubuntu 22.04 server. You can start customizing and adding content through the web interface.