Once seafile source is downloaded, extract it with the following command:
tar -xvzf seafile-server_6.0.6_x86-64.tar.gz
Next, rename seafile-server_6.0.6 directory to seafile-server:
mv seafile-server_6.0.6 seafile-server
Create the Database for Seafile
You will also need to create three database such as ccnet, seafile and seahub for seafile server.
First, exit from the seafile user shell with the following command:
Next, create three database with one user and grant the user to all databases:
First, login to Mysql:
mysql -u root -p
Create three database with the following command:
MariaDB [(none)]> create database ccnet_db character set = 'utf8';MariaDB [(none)]> create database seafile_db character set = 'utf8';MariaDB [(none)]> create database seahub_db character set = 'utf8';
Create a user for these databases:
MariaDB [(none)]> create user seacloud@localhost identified by 'password';
Grant user to the databases:
MariaDB [(none)]> grant all privileges on ccnet_db.* to seacloud@localhost identified by 'password';MariaDB [(none)]> grant all privileges on seafile_db.* to seacloud@localhost identified by 'password';MariaDB [(none)]> grant all privileges on seahub_db.* to seacloud@localhost identified by 'password';
Next flush the privileges and exit from the shell:
Before installing seafile, you will need to login as a seafile user.
To do so, run the following command:
su - seafile
Next, change the directory to seafile-server and install seafile by running setup-seafile-mysql.sh script:
During installation you will be asked about Server Name, Domain/IP, Seafile data directory, Seafile server port configuration and database information, provide each information carefully. Once the installation is completed successfully start seafile and the seahub server:
./seafile.sh start./seahub.sh start
You will be asked about the admin email and password for seafile. Provide each details carefully, then stop seafile now.
./seafile.sh stop./seahub.sh stop
Configuring Seafile Service File
Next, you will need to create seafile and seahub services file to start and stop seafile server.
Create a new service file with named seafile.service inside /lib/systemd/system/ directory:
First, exit from the seafile user shell:
Then create service file for seafile:
sudo nano /lib/systemd/system/seafile.service
Add the following lines:
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...
You may sometimes need to manually adjust the PHP settings on your cPanel server – for example if a site is hitting the PHP memory, or file size upload limit. WHM allows you to quickly change the settings of any PHP version installed on the server when needed, using the...