HRCloud2 is a self-hosted file hosting and sharing platform based on PHP and Vue.js. It allows users to manage and share files securely with features like user management, file upload/download, and permissions.
Here's a step-by-step guide on how to install HRCloud2 on Linux Mint Latest:
Before we start, make sure your system meets the following requirements:
Open a terminal window and update the system first by running the following command:
sudo apt update && sudo apt upgrade
Next, install the required packages:
sudo apt install git curl apache2 php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip mysql-server
During the MySQL/MariaDB installation, set a new password for the root user when prompted.
Next, clone the HRCloud2 repository using git:
sudo git clone https://github.com/zelon88/HRCloud2.git /var/www/html/HRCloud2
To configure the Apache web server, create a new virtual host configuration file for HRCloud2:
sudo nano /etc/apache2/sites-available/HRCloud2.conf
Paste the following configuration:
<VirtualHost *:80>
ServerName your_domain.com
DocumentRoot /var/www/html/HRCloud2/public
<Directory /var/www/html/HRCloud2/public>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/HRCloud2_error.log
CustomLog ${APACHE_LOG_DIR}/HRCloud2_access.log combined
</VirtualHost>
Update the ServerName
to your domain name or server IP address.
Save and close the file.
Then, enable the new virtual host and Apache modules:
sudo a2ensite HRCloud2.conf
sudo a2enmod rewrite
sudo a2enmod headers
Finally, restart the Apache web server for the changes to take effect:
sudo systemctl restart apache2
Log into the MySQL/MariaDB shell as root:
sudo mysql -u root -p
Enter your MySQL/MariaDB root password when prompted.
Create a new HRCloud2 database and user:
CREATE DATABASE hrcloud2 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON hrcloud2.* TO 'hrcloud2'@'localhost' IDENTIFIED BY 'password_here';
FLUSH PRIVILEGES;
exit;
Replace password_here
with a strong password of your choice.
Copy the .env.example
file to .env
:
sudo cp /var/www/html/HRCloud2/.env.example /var/www/html/HRCloud2/.env
Then, update the database settings:
sudo nano /var/www/html/HRCloud2/.env
Update the following parameters:
APP_URL=http://your_domain.com
DB_DATABASE=hrcloud2
DB_USERNAME=hrcloud2
DB_PASSWORD=password_here
Save and close the file.
Next, install the PHP dependencies required by HRCloud2:
cd /var/www/html/HRCloud2
sudo php composer.phar install
Generate a new key for HRCloud2:
sudo php artisan key:generate
Next, run the migration to create the database tables:
sudo php artisan migrate
Then, run the database seeder to create a default admin user:
sudo php artisan db:seed
Set the correct file permissions for HRCloud2:
sudo chown -R www-data:www-data /var/www/html/HRCloud2/
sudo chmod -R 755 /var/www/html/HRCloud2/storage
sudo chmod -R 755 /var/www/html/HRCloud2/bootstrap/cache
Finally, access HRCloud2 from your web browser by visiting the domain name or server IP address specified in the Apache configuration file:
http://your_domain.com
You can now sign in with the default admin user account (admin@hrcloud2.com
/ password
) and start using HRCloud2!
Congratulations, you have successfully installed HRCloud2 on Linux Mint Latest!
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!