<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ownCloud Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/owncloud/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/owncloud/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Wed, 26 Apr 2023 10:15:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>ownCloud Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/owncloud/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install ownCloud on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-owncloud-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-owncloud-on-ubuntu-22-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 24 Nov 2022 16:01:29 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ownCloud]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=874</guid>

					<description><![CDATA[<p>ownCloud is a powerful an open-source collaboration tool that allows users store and securely share files and folders on a private server. In this tutorial,...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-owncloud-on-ubuntu-22-04/">How to Install ownCloud on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>ownCloud is a powerful an open-source collaboration tool that allows users store and securely share files and folders on a private server.</p>
<p>In this tutorial, we will show you how to install open source version of ownCloud on Ubuntu 22.04.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>22.04</strong> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start apache2
# systemctl enable apache2</code></pre>
<p>Verify the status of the <code>Apache</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 845 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 998 (apache2)
      Tasks: 6 (limit: 2797)
     Memory: 27.4M
        CPU: 420ms
     CGroup: /system.slice/apache2.service
             ├─ 998 /usr/sbin/apache2 -k start
             ├─1033 /usr/sbin/apache2 -k start
             ├─1034 /usr/sbin/apache2 -k start
             ├─1035 /usr/sbin/apache2 -k start
             ├─1037 /usr/sbin/apache2 -k start
             └─1038 /usr/sbin/apache2 -k start</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color"><strong>Step 3: Install PHP and required extensions </strong></span></h2>
<p>The PHP version available to install using the default standard repository of Ubuntu 22.04 is 8.x, however, while doing this article OwnCloud doesn’t support PHP 8.x, hence here we are installing PHP7.4 using Ondrej PPA repo.</p>
<p>To have the required version of PHP, add the Ondrej repository:</p>
<pre><code># add-apt-repository ppa:ondrej/php</code></pre>
<p>Run system update command:</p>
<pre><code># apt update</code></pre>
<p>Install required extensions:</p>
<pre><code># apt install php7.4 php7.4-{opcache,gd,curl,mysqlnd,intl,json,ldap,mbstring,mysqlnd,xml,zip}</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MySQL and create a database</span></h2>
<p>You can install the MySQL server with the following command:</p>
<pre><code># apt install mysql-server</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code># systemctl start mysql
# systemctl enable mysql</code></pre>
<p>Verify the status of the <code>MySQL</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status mysql</code></pre>
<p>Output:</p>
<pre><code>● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: active (running)
   Main PID: 1083 (mysqld)
     Status: "Server is operational"
      Tasks: 41 (limit: 2797)
     Memory: 434.0M
        CPU: 1min 57.932s
     CGroup: /system.slice/mysql.service
             └─1083 /usr/sbin/mysqld</code></pre>
<p>By default, MySQL is not hardened. You can secure MySQL using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MySQL shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the ownCloud installation:</p>
<pre><code>mysql&gt; CREATE DATABASE owncloud;
mysql&gt; CREATE USER 'owncloud'@'localhost' IDENTIFIED BY 'Str0ngPEd6';
mysql&gt; GRANT ALL PRIVILEGES ON owncloud. * TO 'owncloud'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install ownCloud</span></h2>
<p>The latest version of ownCloud is available to <a href="https://owncloud.com/download-server/">download</a> from their website. You can download it with the following command:</p>
<pre><code># wget https://download.owncloud.com/server/stable/owncloud-complete-latest.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip owncloud-complete-latest.zip -d /var/www/</code></pre>
<p>Create a directory to store the user data:</p>
<pre><code># mkdir -p /var/www/owncloud/data</code></pre>
<p>Change the ownership of the directory with the command:</p>
<pre><code># chown -R www-data:www-data /var/www/owncloud/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache for ownCloud</span></h2>
<p>Navigate to <code>/etc/apache2/sites-available</code> directory and run the following command to create a configuration file for your ownCloud installation:</p>
<pre><code class="hljs shell"><span class="bash"># nano /etc/apache2/sites-available/owncloud.conf</span></code></pre>
<p>Add the following content:</p>
<pre><code>&lt;VirtualHost *:80&gt;

ServerName cloud.your-domain.com

ServerAdmin webmaster@your-domain.com
DocumentRoot /var/www/owncloud

&lt;Directory /var/www/owncloud/&gt;
Options +FollowSymlinks
AllowOverride All
Require all granted
&lt;/Directory&gt;

ErrorLog /var/log/apache2/cloud.your-domain.com_error.log
CustomLog /var/log/apache2/cloud.your-domain.com_access.log combined

&lt;/VirtualHost&gt;
</code></pre>
<p>Save the file and Exit.</p>
<p>Enable the ownCloud virtual host:</p>
<pre><code># a2ensite owncloud.conf</code></pre>
<p>Restart the Apache web server.</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access your ownCloud Application</span></h2>
<p>Open your web browser and type the URL <strong><code>http://cloud.your-domain.com</code></strong>. You should see the following page:</p>
<p><img fetchpriority="high" decoding="async" class="size-large wp-image-884 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-900x894.jpg" alt="ownCloud on Ubuntu 22.04" width="900" height="894" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-900x894.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-300x298.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-150x150.jpg 150w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-768x763.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-897x891.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22-684x679.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_on_Ubuntu_22.jpg 902w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>After filling in all the necessary details, click <strong>Finish setup</strong> and, in less than a minute, the installation will complete and you can then log in as the admin user.</p>
<p>Once logged in, you are taken to the main ownCloud page:</p>
<p><img decoding="async" class="size-large wp-image-888 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-900x429.jpg" alt="ownCloud Dashboard" width="900" height="429" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-900x429.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-768x366.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-1536x732.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-1222x582.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-897x428.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard-684x326.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/11/ownCloud_Dashboard.jpg 1907w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Open Source version of ownCloud on Ubuntu 22.04.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-owncloud-on-ubuntu-22-04/">How to Install ownCloud on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-owncloud-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">874</post-id>	</item>
	</channel>
</rss>
