This article was first published on the public account “AntDream”. You are welcome to search “AntDream” on wechat or scan the QR code at the bottom of this article to follow it. We will make progress every day

With owncloud installed, we have our owncloud disk. But how about our cloud disk performance security? Any other questions?

Check out the Settings page like OwnCloud

Warnings in Settings

We can see that there are several more issues in the security and setup warnings. Today we’re going to take care of them one by one.

1. The first problem and the last memory cache problem can be solved by Redis cache.

2. The SQlite database problem can be solved by converting the database type to Mysql

There are two methods:

1. The first method is to use the ocC command in the prompt

// First go to the ocC command directory, which is the ownCloud root directorycd/var/ WWW/HTML /owncloud // then run the database conversion command, root indicates the database user, Sudo -u apache PHP occ db:convert-type mysql root 127.0.0.1 owncloud // Other operating systems can change apache to www-data to tryCopy the code

I had puzzling problems with the above method, so I switched to the second method below.

Refer to the website address: doc.owncloud.org/server/10.0…

2. The second method is to go back to the initial initialization of ownCloud and select the database type again. There are 2 steps to perform:

Owncloud drop database owncloud drop database owncloud // drop configcd /var/www/html/owncloud/config
rm -f config.php
Copy the code

3. You need to modify the SSL. conf file for strict HTTP transmission

Website address: docs.nextcloud.com/server/11/a…

/ / first find the SSL. Conf find / - name SSL. Conf / / edit vim/etc/HTTPD/conf. D/SSL. Conf / / and then under the < VirtualHost * : 443 > < IfModule. Add the following content mod_headers.c> Header alwaysset Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"</IfModule> // Restart the Apache service systemctl restart httpd.serviceCopy the code

4. Cron-related problems need to be configured

Concrete can view the website address: doc.owncloud.org/server/10.0…

/ / open the crontab-e-u apache // Add the following content * * * * * PHP-f /var/www/html/owncloud/cron.php
Copy the code

Other problems can look at: www.orgleaf.com/2158.html


Welcome to follow my wechat public number, and make progress with me every day!Copy the code