+4 votes
59 views
Install OwnCloud on Windows

in Windows11 by (552k points)
reopened | 59 views

1 Answer

+5 votes
Best answer

How to install OwnCloud on Windows

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

In a world where support and access to the cloud is mentioned more and more every day, it is essential that as users we are aware of the new options we have for everything related to the cloud, but we are not just talking about applications like Google Drive or OneDrive, but much more robust, secure utilities with much superior features, one of these is OwnCloud..

 

OwnCloud has been developed as an open source platform in which we find file storage and synchronization services in the cloud. Its advantage is that it offers us the option of installing and managing it from our own server or on a compatible infrastructure.

 

It will be possible to install it completely free in Linux environments and the client software can be installed on Windows, macOS or Linux systems and also has mobile applications for Android and iOS..

 

Characteristics
Within the features of OwnCloud we find:

 

  • Cloud storage that allows you to host files, photos and more data on a server and access them from anywhere in the world using a web interface or the available desktop and mobile applications.
  • OwnCloud is responsible for preserving a history of file versions, this allows us to revert to previous versions if we need it.
  • It offers the possibility of sharing files and folders with other users.
  • OwnCloud automatically synchronizes files between devices connected to our account to always be updated with them.
  • OwnCloud can be integrated with other services and tools to increase its capabilities.
  • Improved security and data control.

 

 

 

TechnoWikis will explain how to install OwnCloud on Windows taking into account the following, starting with version 8 of OwnCloud no more support was offered for Windows, that is, it is not possible to install it, but to be able to enjoy OwnCloud we will use WSL.

 

WSL (Windows Subsystem Linux - Windows Subsystem), is a feature integrated into Windows 10/11 with which it is possible to run a GNU/Linux environment with a high percentage of its known functions, this includes the command line, utilities and applications but without modifying internal system components or using the well-known virtual machines..

 

Features
With WSL we find functions and features such as:
  • Supports NodeJS, JavaScript, Python, Ruby, C/C++, C# & F#, Rust, Go and more programming languages.
  • We can install the distributions directly from the Windows Store.
  • We can invoke GNU/Linux applications on Windows.
  • It will be possible to use services such as SSHD, MySQL, Apache, MongoDB, PostgreSQL and many more.

 

 

Now, for this example, we will be using WSL2, with this version, it is now possible for WSL to be able to run Linux ELF64 binaries on our Windows system. Without further ado, let's see how to install OwnCloud on Windows.

 

How to install OwnCloud on Windows

 

Step 1

To start, let's open PowerShell as administrators:

 

image

 

Step 2

In the terminal, we are going to enable the WSL feature, to do this, we execute the following:
 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 
image

 

Step 3

We hope that this process reaches its end:

 

image

 

Step 4

After this, we are going to enable the platform for the virtual machine, we execute the following command:
 dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all 
image

 

Step 5

We hope this process ends:

 

image

 

Step 6

In this case, we enter the letter Y so that the system is restarted. When we log in, we again access as administrators in PowerShell:

 

 

image

 

Step 7

Now, let's enable the virtualization platform:
 Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform 
image

 

Step 8

We hope it is installed. After this, we set WSL2 as the version to use:
 wsl --set-default-version 2 
image

 

Step 9

Next, let's download the kernel update with the following command:
 $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -OutFile .\wsl_update_x64.msi 
image

 

Step 10

Let's reset the preferences:
 $ProgressPreference = 'Continue' 
image

 

Step 11

Finally, we install this update:
 .\wsl_update_x64.msi 
image

 

Step 12

We will see that the installer opens:

 

image

 

Step 13

We click on “Next” and this update will be installed:

 

image

 

Step 14

After this, we open the Windows Store, search for Ubuntu:

 

image

 

Step 15

We click on Ubuntu 22.04 to access this distribution:

 

image

 

Step 16

We click on “Install” and wait for the download and installation process to start:

 

image

 

Step 17

At the end we will see the following:

 

image

 

We click on Open and the distribution window will be launched:

 

image

 

Step 18

If this is the first time using WSL, we must assign a username and password:

 

 

image

 

Step 19

By accessing the Ubuntu machine, we are going to update the system:
 sudo apt update 
image

 

Step 20

Then, we apply these updates with the following command:
 sudo apt upgrade 
image

 

Step 21

We enter the letter “y” to confirm:

 

image

 

Step 22

We install the package manager:
 sudo apt install wget 
image

 

Step 23

Then, we install Apache, HTTPS and MySQL with the command:
 sudo apt install apache2 mariadb-server mariadb-client 
image

 

Step 24

We accept this process by entering the letter “y”:

 

image

 

Step 25

We hope it ends:

 

image

 

Step 26

Now, it is time to install PHP, for OwnCloud to work on Windows, we must use version 7.4, with this command we install PHP and all its dependencies:
 sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline php7.4- intl php7.4-json php7.4-gd php7.4-mbstring php7.4-mysql php7.4-xml php7.4-zip php7.4-curl 
image

 

Step 27

We enter the letter “y” to proceed with the installation:

 

image

 

Step 28

Next, we will start the MariaDB service:
 sudo service mariadb start 
image

 

Step 29

After this we are going to protect the MySQL installation, we execute the following:
 sudo mysql_secure_installation 
image

 

Step 30

There we must answer the questions posed according to the needs of our team:

 

image

 

Step 31

Once we do this, we access MySQL by executing:
 mysql -u root -p 
Step 32

We enter our password to access:

 

 

image

 

Step 33

There, we are going to create the database, the username and password and the changes will be applied, we execute the following to create the database:
 CREATE DATABASE ownclouddb; 
image

 

Step 34

Then, we grant permissions to the user and set a password:
 GRANT ALL ON ownclouddb.* to 'user'@'localhost' IDENTIFIED BY 'password'; 
image

 

Step 35

We apply the privileges:
 FLUSH PRIVILEGES; 
image

 

Step 36

We exit MySQL:
 EXIT; 
image

 

Step 37

Now, we download the most recent version of OwnCloud:
 sudo wget -O /tmp/owncloud.tar.bz2 https://download.owncloud.com/server/stable/owncloud-latest.tar.bz2 
image

 

Step 38

We extract this file:
 sudo tar -xf /tmp/owncloud.tar.bz2 --directory /var/www 
image

 

Step 39

We establish the permissions:
 sudo chown -R www-data:www-data /var/www/owncloud 
image

 

Step 40

Next, let's create a new configuration file:
 sudo nano /etc/apache2/sites-available/owncloud.conf 
image

 

Step 41

In this file we enter the following:
 Alias ​​/owncloud "/var/www/owncloud/" <Directory /var/www/owncloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME / var/www/owncloud </Directory> 
image

 

Step 42

We save the changes using the following key combination:

 

Ctrl + O

 

We exit the editor using:

 

Ctrl + X

 

Step 43

Next, we enable the OwnCloud settings:
 sudo a2ensite owncloud 
image

 

Step 44

We enable the Apache modules with the command:
 sudo a2enmod rewrite headers env mime unique_id dav 
image

 

Step 45

We restart the Apache service:
 sudo service apache2 restart 
image

 

Step 46

Once this is done, we open a browser from the Linux console, in this example we execute “google-chrome” to open Chrome:

 

image

 

Step 47

There we enter the following syntax:
 http://IP_Linux/owncloud 
image

 

Step 48

At the top, we create the administrator user:

 

image

 

Step 49

At the bottom, we complete the data with the values ​​created in the MySQL database:

 

image

 

Step 50

We click on “Finish Setup” and wait for this process to complete:

 

image

 

Step 51

Then, we log in with the created user:

 

image

 

Step 52

We click on “Login” to log in and have access to OwnCloud:

 

image

 

Step 53

There we can browse the various options:

 

image

 

Step 54

We access the OwnCloud settings to see its options. In “General” we can change the profile photo, change the password, add name and username and more.

 

image

 

Step 55

In “Storage” it will be possible to add external storage:

 

image

 

Step 56

In “Sharing” it is possible to adjust some sharing variables:

 

image

 

Step 57

In “Security” we can configure all OwnCloud security and privacy settings:

 

image

 

Step 58

In “Apps” we can activate or not activate applications compatible with the utility:

 

image

 

Step 59

Finally, as an extra point, it is possible to use the desktop application directly in Windows, to do this download it at the following link:

 

 OwnCloud

 

image

 

Step 60

There we download the Windows version and carry out the installation process:

 

image

 

Step 61

Then we must enter the IP address of the Linux console:

 

image

 

Step 62

We await validation:

 

image

 

Step 63

Once confirmed, we enter the user:

 

image

 

Step 64

We log in:

 

image

 

Step 65

From here it will be possible to perform the necessary tasks and make the required adjustments:

 

image

 

Thanks to OwnCloud it will be possible to manage a wide group of options focused on the cloud.

 


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Mar 7, 2020 in Linux / Unix by backtothefuture (552k points) | 272 views
+5 votes
1 answer
asked Nov 5, 2019 in Linux / Unix by backtothefuture (552k points) | 225 views
+3 votes
1 answer
asked Apr 28, 2020 in Linux / Unix by backtothefuture (552k points) | 480 views
+4 votes
1 answer
asked Aug 15, 2023 in Windows11 by backtothefuture (552k points) | 62 views
+5 votes
1 answer
asked Dec 13, 2022 in Windows11 by backtothefuture (552k points) | 70 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users