After the transition to ip address for a domain name in the log the error occurred:
Argument 8 passed to OC\Core\Controller\AvatarController::__construct() must implement interface OCP\Files\Folder, null given, called in /var/www/owncloud/core/Application.php on line 96 and defined at /var/www/owncloud/core/Controller/AvatarController.php#88
My actions are the steps:
1. Step
I create a file in /etc/apache2/conf-available/ with the name owncloud.conf
and he wrote in his configuration
<Directory "/var/www/owncloud">
SSLRenegBufferSize 10486000
LimitRequestBody 0
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
</Directory>
<Directory "/var/www/owncloud/data/">
# just in case if .htaccess gets disabled
Require all denied
</Directory>
- Step
I create a file in /etc/apache2/sites-available/ with the name owncloud_ssl.conf
and he wrote in his configuration
<IfModule mod_ssl.c>
<VirtualHost *:443>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
</IfModule>
ServerName test.test.com
ServerAlias www.test.test.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/owncloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLProtocol all -SSLv2
SSLCertificateFile /etc/apache2/ssl/owncloud.crt
SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
-
Step
Activated, these two configuration using commandsa2enconf owncloud.conf
a2ensite owncloud_ssl.conf Step
apache2 restartStep
Add to config.php
'trusted_domains' =>
array (
0 => '*.*.*.*',
1 => 'test.test.com',
),
I wanted to make owncloud worked test.test.com
Please tell me what I did wrong?
Why is this error?
Thank you!
OS: Ubuntu Server 14.04.05
Web Server Apache2
Owncloud 9.1.3