RosarioSIS is a free and open-source Student Information System that can be used by schools to manage their daily operations, student information, attendance, grades, schedules, and more. In this tutorial, we will outline the steps to install RosarioSIS on Clear Linux, which is a popular Linux distribution known for its speed, security, and ease of use.
Before installing RosarioSIS, make sure your system meets the following requirements:
RosarioSIS requires PHP 7.0 or later to run. To install PHP and its extensions on Clear Linux, run the following commands in the terminal:
sudo swupd bundle-add php-basic
sudo swupd bundle-add php-mysqli
sudo swupd bundle-add php-gd
sudo swupd bundle-add php-xml
sudo swupd bundle-add php-zip
sudo swupd bundle-add php-curl
The above command will install PHP, mysqli, gd, xml, zip, and curl extensions. You can install other extensions if required for your specific use case.
RosarioSIS requires a database to store its data. We will use MariaDB, a popular open-source relational database management system, for this purpose. To install MariaDB on Clear Linux, run the following command:
sudo swupd bundle-add mariadb
After installation, enable and start the MariaDB service with the following commands:
sudo systemctl enable mariadb
sudo systemctl start mariadb
Now that we have installed MariaDB, we need to create a database and user for RosarioSIS to access.
To create a new database, log in to the MariaDB server as the root user:
sudo mysql -u root -p
Enter the root password when prompted. Once you are logged in, use the following commands to create a new database and user for RosarioSIS:
CREATE DATABASE rosariosis;
GRANT ALL PRIVILEGES ON rosariosis.* TO 'rosariosis'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Make sure to replace 'password' with a secure password for the 'rosariosis' user.
Next, we need to download and extract the RosarioSIS package from their official website. We will use the following commands to download and extract the package:
cd /var/www
sudo wget https://www.rosariosis.org/download/latest -O rosariosis.tar.gz
sudo tar -xvzf rosariosis.tar.gz
sudo mv rosariosis-* rosariosis
sudo chown -R root:root rosariosis/
sudo chmod -R 755 rosariosis/
The above commands will download the latest version of RosarioSIS, extract it, and move it to the /var/www/rosariosis/
directory. We also set the ownership and permissions for the directory.
Now that we have installed and configured all the necessary components, it's time to configure the web server to serve the RosarioSIS application.
If you are using Apache, create a new virtual host configuration file with the following command:
sudo nano /etc/httpd/conf.d/rosariosis.conf
Add the following lines to the configuration file:
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/rosariosis/
<Directory /var/www/rosariosis/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/rosariosis-error.log
CustomLog /var/log/httpd/rosariosis-access.log combined
</VirtualHost>
Make sure to replace "yourdomain.com" with your domain name.
If you are using Nginx, create a new server block configuration file with the following command:
sudo nano /etc/nginx/conf.d/rosariosis.conf
Add the following lines to the configuration file:
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
root /var/www/rosariosis;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
error_log /var/log/nginx/rosariosis-error.log;
access_log /var/log/nginx/rosariosis-access.log;
}
Make sure to replace "yourdomain.com" with your domain name.
After creating the configuration file, test and reload the web server with the following commands:
sudo apachectl configtest
sudo systemctl reload httpd
or
sudo nginx -t
sudo systemctl reload nginx
Finally, open your web browser and navigate to your domain name to access the RosarioSIS installer. The installer will guide you through the setup process, including the setup of the database connection.
For example, if your domain name is "yourdomain.com," go to http://yourdomain.com in your web browser.
Follow the on-screen instructions to complete the installation. Once the installation is complete, you will be able to log in to the RosarioSIS dashboard and start using the system.
In this tutorial, we covered the steps to install RosarioSIS on Clear Linux, including the installation of PHP and its extensions, MariaDB, and the configuration of the web server. By following these steps, you should be able to set up a fully functional RosarioSIS system on Clear Linux.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!