FileRun is a popular self-hosted file share and sync application that provides secure cloud storage and allows users to upload and access files through a web-based interface. In this guide, we will walk you through the process of installing FileRun on Alma Linux 8. By following these steps, you will be able to set up your own file sharing and syncing platform on your server.
Prerequisites
Before we begin, make sure you have the following prerequisites:
- A server running Alma Linux 8.
- A valid domain name pointed to your server IP.
- A root password configured on the server.
If you have these prerequisites in place, let’s move on to the installation process.
Step 1: Install LAMP Server
To start, we need to install the Apache web server and MariaDB database server on your Alma Linux 8 system. Open your terminal and run the following command:
dnf install httpd mariadb-server -y
Once the installation is complete, reset the default PHP module and enable the PHP 7.4 module by running the following commands:
dnf module reset php dnf module enable php:7.4
Next, install PHP along with all the required extensions by running the following command:
dnf install php php-fpm php-mbstring php-opcache php-pdo php-mysqlnd php-gd php-xml php-zip php-json -y
Now, let’s install the Ioncube PHP loader, which is required for FileRun. Download it using the following command:
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Once the download is complete, extract the files using the following command:
tar xzf ioncube_loaders_lin_x86-64.tar.gz
Move the Ioncube loader to the PHP modules directory:
mv ioncube/ioncube_loader_lin_7.4.so /usr/lib64/php/modules/
Next, open the PHP configuration file:
nano /etc/php.ini
Add the following lines to the file:
zend.assertions = -1 zend_extension = "/usr/lib64/php/modules/ioncube_loader_lin_7.4.so"
Save and close the file. Now, start the Apache, MariaDB, and PHP-FPM services and enable them to start at system reboot:
systemctl start httpd mariadb php-fpm systemctl enable httpd mariadb php-fpm
To verify the Ioncube loader installation, run the following command:
php -v
You should see the Ioncube loader information in the output.
Step 2: Configure MariaDB Database
Now that we have the server set up, let’s configure the MariaDB database. Start by securing the MariaDB installation and setting the root password. Run the following command:
mysql_secure_installation
Follow the prompts and answer the questions to secure the MariaDB installation. Once completed, log in to the MariaDB shell using the following command:
mysql -u root -p
Create a new database and user for FileRun:
CREATE DATABASE filerun; GRANT ALL PRIVILEGES ON filerun.* TO 'filerun'@'localhost' IDENTIFIED BY 'password';
Make sure to replace ‘password’ with a secure password of your choice. Flush the privileges and exit the MariaDB shell:
FLUSH PRIVILEGES; EXIT;
Now that the database is configured, we can proceed to the next step.
Step 3: Download and Install FileRun
To download the latest version of FileRun, use the following command:
wget -O FileRun.zip http://www.filerun.com/download-latest
Once the download is complete, extract the files to the appropriate directory:
unzip FileRun.zip -d /var/www/html/filerun
Change the ownership of the FileRun directory to the Apache user:
chown -R apache:apache /var/www/html/filerun
With the installation complete, let’s move on to configuring Apache for FileRun.
Step 4: Configure Apache for FileRun
To configure Apache for FileRun, create a virtual host configuration file using the following command:
nano /etc/httpd/conf.d/filerun.conf
Add the following configuration to the file:
<VirtualHost *:80>
ServerName filerun.example.com
DocumentRoot /var/www/html/filerun
<Directory "/var/www/html/filerun">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/filerun.error.log
CustomLog /var/log/httpd/filerun.access.log combined
</VirtualHost>
Save and close the file. Now, restart the Apache service to apply the changes:
systemctl restart httpd
You can verify the status of Apache using the following command:
systemctl status httpd
If everything is configured correctly, you should see that the Apache service is active and running.
Step 5: Access the FileRun Web Interface
Now that everything is set up, you can access the FileRun web interface through your web browser. Open your browser and enter the URL http://filerun.example.com
. You should see the FileRun setup page.
Click on the “Next” button to proceed. On the next screen, FileRun will check for the server requirements. Make sure all the requirements are met, then click on the “Next” button.
Next, you will be prompted to set up the database. Provide the database credentials you set earlier and click on the “Next” button. FileRun will then install and configure itself.
Once the installation is complete, you will see a screen with your username and password. Make note of these credentials and click on the “Next” button. You will then be redirected to the FileRun login screen.
Enter your admin username and password, and click on the “Sign in” button. You will now have access to the FileRun dashboard, where you can manage your files, photos, and movies.
Conclusion
Congratulations! You have successfully installed FileRun on Alma Linux 8. With FileRun, you can now securely store and share your files through a self-hosted cloud storage solution. Take advantage of the features provided by FileRun to enhance your file management and collaboration. If you have any questions or need further assistance, feel free to reach out.
Remember, if you’re looking for reliable and scalable cloud hosting solutions, consider Shape.host. Shape.host offers Cloud VPS services that provide high-performance hosting for your applications and websites. With Shape.host, you can trust in their expertise and commitment to delivering top-notch hosting solutions. Visit Shape.host today to learn more about their services and how they can meet your hosting needs.