{"id":3315,"date":"2023-05-21T03:37:07","date_gmt":"2024-07-23T01:12:36","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-seafile-self-hosted-cloud-storage-on-debian-12","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-seafile-self-hosted-cloud-storage-on-debian-12\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Seafile Self-Hosted Cloud Storage on Debian 12"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<h2>Introduction<\/h2>\n<p>Seafile is a powerful open-source cloud storage solution that allows you to host your own file sharing service. In this guide, we will walk you through the steps to install Seafile on Debian 12.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>A server running Debian 12.<\/li>\n<li>Root access or a user with <code>sudo<\/code> privileges.<\/li>\n<li>Basic knowledge of the command line.<\/li>\n<\/ul>\n<h2>Step 1: Update the System<\/h2>\n<p>Make sure your system is up to date. Run the following commands:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<h2>Step 2: Install Required Dependencies<\/h2>\n<p>Install the required packages for Seafile:<\/p>\n<pre><code>sudo apt install -y python3 python3-pip python3-venv libmysqlclient-dev libssl-dev gcc<\/code><\/pre>\n<h2>Step 3: Install and Configure MySQL<\/h2>\n<p>Seafile requires a database to function. We will use MySQL. Install the MySQL server:<\/p>\n<pre><code>sudo apt install -y mysql-server<\/code><\/pre>\n<p>Secure your MySQL installation:<\/p>\n<pre><code>sudo mysql_secure_installation<\/code><\/pre>\n<p>Log in to MySQL:<\/p>\n<pre><code>sudo mysql -u root -p<\/code><\/pre>\n<p>Once logged in, create a database and a user for Seafile:<\/p>\n<pre><code>CREATE DATABASE seafile_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;\r\nCREATE USER 'seafile_user'@'localhost' IDENTIFIED BY 'your_password';\r\nGRANT ALL PRIVILEGES ON seafile_db.* TO 'seafile_user'@'localhost';\r\nFLUSH PRIVILEGES;\r\nEXIT;<\/code><\/pre>\n<p>Make sure to replace <code>your_password<\/code> with a secure password.<\/p>\n<h2>Step 4: Download Seafile<\/h2>\n<p>Now, download the latest Seafile server version. Go to the <a href=\"https:\/\/www.seafile.com\/en\/download\/\" target=\"_blank\" rel=\"follow\">official download page<\/a> to find the latest version:<\/p>\n<pre><code>wget https:\/\/download.seafile.com\/seafile-server\/latest\/seafile-server_9.0.10_x86-64.tar.gz<\/code><\/pre>\n<p>Extract the downloaded archive:<\/p>\n<pre><code>tar -xzf seafile-server_9.0.10_x86-64.tar.gz<\/code><\/pre>\n<p>Move the extracted folder:<\/p>\n<pre><code>sudo mv seafile-server-9.0.10 \/opt\/seafile<\/code><\/pre>\n<h2>Step 5: Configure Seafile<\/h2>\n<p>Navigate to the Seafile directory and configure it:<\/p>\n<pre><code>cd \/opt\/seafile<\/code><\/pre>\n<p>Run the setup script:<\/p>\n<pre><code>sudo .\/setup-seafile.sh<\/code><\/pre>\n<p>You will be prompted to enter the following information:<\/p>\n<ul>\n<li>Database type: MySQL<\/li>\n<li>MySQL host: localhost<\/li>\n<li>MySQL user: seafile_user<\/li>\n<li>MySQL password: your_password<\/li>\n<li>MySQL database: seafile_db<\/li>\n<li>Seafile server name: your_server_name<\/li>\n<\/ul>\n<p>Make sure to replace <code>your_password<\/code> and <code>your_server_name<\/code> with appropriate values.<\/p>\n<h2>Step 6: Start Seafile Server<\/h2>\n<p>Start the Seafile server by running the following commands:<\/p>\n<pre><code>cd \/opt\/seafile\r\nsudo .\/seaf-server start<\/code><\/pre>\n<h2>Step 7: Access Seafile Web Interface<\/h2>\n<p>Open a web browser and navigate to <code>http:\/\/your_server_ip:8000<\/code>. You should see the Seafile web interface. Follow the prompts to create an administrator account and configure your Seafile instance.<\/p>\n<h2>Step 8: Enable Seafile to Start on Boot (Optional)<\/h2>\n<p>If you want Seafile to start automatically on system boot, create a systemd service file:<\/p>\n<pre><code>sudo nano \/etc\/systemd\/system\/seafile.service<\/code><\/pre>\n<p>Paste the following content into the file:<\/p>\n<pre><code>[Unit]\r\nDescription=Seafile Server\r\nAfter=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=root\r\nWorkingDirectory=\/opt\/seafile\r\nExecStart=\/opt\/seafile\/seaf-server run\r\nRestart=on-failure\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/code><\/pre>\n<p>Save and exit, then enable and start the service:<\/p>\n<pre><code>sudo systemctl enable seafile\r\nsudo systemctl start seafile<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>You have successfully installed Seafile Self-Hosted Cloud Storage on Debian 12. You can now use your self-hosted Seafile instance to store and share files.<\/p>\n<h2>Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.seafile.com\/en\/download\/\" target=\"_blank\" rel=\"follow\">Seafile Download Page<\/a><\/li>\n<li><a href=\"https:\/\/download.seafile.com\/seafile-server\/latest\/\" target=\"_blank\" rel=\"follow\">Seafile Latest Release Page<\/a><\/li>\n<li><a href=\"https:\/\/manual.seafile.com\/deploy\/installation.html\" target=\"_blank\" rel=\"follow\">Seafile Official Installation Guide<\/a><\/li>\n<\/ul>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Introduction Seafile is a powerful open-source cloud storage solution that allows you to host your own file sharing service. In this guide, we will walk you\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-3315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3315"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3315\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}