How to Install RosarioSIS on Fedora CoreOS Latest
RosarioSIS is an open-source Student Information System for school management, which offers features like student data management, attendance tracking, gradebook, and scheduling. In this tutorial, we will learn how to install RosarioSIS on Fedora CoreOS Latest.
Prerequisites
Before installing RosarioSIS, make sure you have the following prerequisites:
- A server running the latest version of Fedora CoreOS.
- Access to the server via SSH.
- Basic knowledge of Linux terminal commands.
Step 1: Install Apache and MariaDB on Fedora CoreOS
The first step is to install Apache and MariaDB on Fedora CoreOS. Follow the below commands in order to install Apache and MariaDB on your Fedora CoreOS system.
sudo rpm-ostree install httpd mariadb-server
Once you run the above command, the installation will start for Apache and MariaDB, please wait until the installation is complete.
Step 2: Install PHP and Required Extensions
In this step, we will install PHP and the required extensions for RosarioSIS to function. Run the following command to install PHP and its extensions.
sudo rpm-ostree install php php-common php-gd php-mbstring php-mysqlnd php-pdo php-xml php-xmlrpc
The above command will install PHP and the extensions required for RosarioSIS to work.
Step 3: Download RosarioSIS
In this step, we will download the latest version of RosarioSIS from the official website. The latest version can be downloaded from the following link: https://www.rosariosis.org/download/.
cd /var/www/html/
sudo wget https://www.rosariosis.org/inc/download.php?f=rosariosis-latest.zip
Step 4: Extract RosarioSIS
Once the download is complete, run the following command to extract RosarioSIS.
sudo unzip rosariosis-latest.zip
Step 5: Set Permissions
Set the appropriate permissions for the extracted files and directories.
sudo chmod -R 755 /var/www/html/rosariosis
sudo chown -R apache:apache /var/www/html/rosariosis
Step 6: Create a Database for RosarioSIS
Create a new database and database user for RosarioSIS by running the following commands.
mysql -u root -p
After running this command, you will see a prompt to enter your MySQL root password. Once you enter the password, you will be logged in to the MySQL shell.
MariaDB [(none)]> CREATE DATABASE rosariosisdb;
MariaDB [(none)]> GRANT ALL ON rosariosisdb.* TO 'rosariosisuser'@'localhost' IDENTIFIED BY 'supersecret';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
In the above commands, we created a database named rosariosisdb and a database user named rosariosisuser with the password supersecret. Ensure that you choose a secure password for your database user.
Step 7: Configure Apache for RosarioSIS
Create a virtual host file for RosarioSIS under /etc/httpd/conf.d/.
sudo nano /etc/httpd/conf.d/rosariosis.conf
Add the following contents to the file.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/rosariosis
ServerName your-domain.com
<Directory /var/www/html/rosariosis>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/rosariosis_error.log
CustomLog /var/log/httpd/rosariosis_access.log combined
</VirtualHost>
Save and exit.
Enable and start the Apache and MariaDB services.
sudo systemctl enable --now httpd mariadb
Step 8: Complete Setup
You can now complete the installation process by opening your browser and navigating to your server's IP address or domain name.
You will be taken to the RosarioSIS setup page. Follow the onscreen instructions to complete the setup.
In the setup, you will be prompted to enter the database details we created in Step 6.
Congratulations, you have successfully installed RosarioSIS on Fedora CoreOS Latest.