Possible update to: https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/1
At least on Jessie, the owncloud configuration file now appears to be stored here (/usr/share/owncloud/config/config.php) instead of here (/var/www/owncloud/config/config.php).
Accordingly…
To check if memcache is already setup. (0 = not setup | 1 = enabled):
cat /usr/share/owncloud/config/config.php | grep -ci -m1 "'memcache.local'"
To enable memcache for Jessie:
sed -i "/'version'/a 'memcache.local' => '\\\OC\\\Memcache\\\APCu'," /usr/share/owncloud/config/config.php
dietpi-services restart
rklingler:
Possible update to: https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/1
At least on Jessie, the owncloud configuration file now appears to be stored here (/usr/share/owncloud/config/config.php) instead of here (/var/www/owncloud/config/config.php).
Accordingly…
To check if memcache is already setup. (0 = not setup | 1 = enabled):
cat /usr/share/owncloud/config/config.php | grep -ci -m1 "'memcache.local'"
To enable memcache for Jessie:
sed -i "/'version'/a 'memcache.local' => '\\\OC\\\Memcache\\\APCu'," /usr/share/owncloud/config/config.php
dietpi-services restart
Hi Rob,
Thanks for the info. I did a fresh Owncloud installation today on Jessie to verify.
root@DietPi:~# ls -lha /var/www/owncloud/config/
total 287K
drwxrwxr-x 2 www-data www-data 1.0K Jan 20 15:49 .
drwxr-xr-x 14 root root 1.0K Jan 20 14:31 ..
-rwxrwxr-- 1 www-data www-data 251K Dec 21 13:45 ca-bundle.crt
-rw-r----- 1 www-data www-data 608 Jan 20 15:49 config.php
-rwxrwxr-- 1 www-data www-data 32K Dec 21 13:45 config.sample.php
-rwxrwxr-- 1 www-data www-data 225 Dec 21 13:45 .htaccess
This is the case for both Wheezy and Jessie installations. So the existing documentation is still correct: https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/1
I did find that you need to go through the initial http://ip/owncloud setup before config.php is generated.
DietPi also installs owncloud from the suse repo to ensure latest version. I believe the Debian Jessie repo install for owncloud does use the /usr/share:
#Wheezy INSTALL_URL_ADDRESS='http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/'
#Jessie INSTALL_URL_ADDRESS='http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/'
I can’t explain it, but I don’t think I’m crazy.
root@DietPi:~# ls -lha /var/www/owncloud/config/
ls: cannot access /var/www/owncloud/config/: No such file or directory
root@DietPi:~# ls -lha /usr/share/owncloud/config/
total 20K
drwxr-xr-x 2 www-data www-data 4.0K Jan 13 21:59 .
drwxr-xr-x 91 root root 4.0K Jan 24 19:36 ..
-rw-r----- 1 www-data www-data 861 Jan 13 21:59 config.php
-rw-r----- 1 www-data www-data 1.5K Jan 13 21:53 htaccess
-rw-r--r-- 1 root root 221 Dec 8 2014 .htaccess
Installed owncloud via dietpi-software; and have gone through the initial http://ip/owncloud setup.
rklingler:
I can’t explain it, but I don’t think I’m crazy.
root@DietPi:~# ls -lha /var/www/owncloud/config/
ls: cannot access /var/www/owncloud/config/: No such file or directory
root@DietPi:~# ls -lha /usr/share/owncloud/config/
total 20K
drwxr-xr-x 2 www-data www-data 4.0K Jan 13 21:59 .
drwxr-xr-x 91 root root 4.0K Jan 24 19:36 ..
-rw-r----- 1 www-data www-data 861 Jan 13 21:59 config.php
-rw-r----- 1 www-data www-data 1.5K Jan 13 21:53 htaccess
-rw-r--r-- 1 root root 221 Dec 8 2014 .htaccess
Installed owncloud via dietpi-software; and have gone through the initial http://ip/owncloud setup.
Hi Rob,
Bizarre, are you certain you are running Jessie:
cat /etc/*-release
Lets verify the suse repo was added:
ls -lha /etc/apt/sources.list.d/
And installed owncloud version:
dpkg -l | grep owncloud
Here are the results of the three requested commands.
root@DietPi:~# cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
root@DietPi:~# ls -lha /etc/apt/sources.list.d/
total 20K
drwxr-xr-x 2 root root 4.0K Jan 13 08:32 .
drwxr-xr-x 6 root root 4.0K Oct 2 13:03 ..
-rw-r--r-- 1 root root 48 Jan 31 2015 collabora.list
-rw-r--r-- 1 root root 85 Jan 13 08:32 owncloud.list
-rw-r--r-- 1 root root 187 Jan 31 2015 raspi.list
root@DietPi:~# dpkg -l | grep owncloud
ii owncloud 7.0.4+dfsg-4~deb8u3 all cloud storage for files, music, contacts, calendars and many more
ii owncloud-doc 0~20141208-2 all documentation for ownCloud
rklingler:
root@DietPi:~# dpkg -l | grep owncloud
ii owncloud 7.0.4+dfsg-4~deb8u3 all cloud storage for files, music, contacts, calendars and many more
ii owncloud-doc 0~20141208-2 all documentation for ownCloud
For some reason, it looks like the SUSE repo was not used when owncloud was installed:
root@GiBi:~# dpkg -l | grep owncloud
ii owncloud 8.1.5-12.1 all The ownCloud Server - Private file sync and share server
This could be caused by a failed apt-get during install, suse repo being down and various other things. The version you are running (from the Raspbian repo) is using the directories you mentioned, albeit a older version of Owncloud (7).
Could you run the following and paste all line results:
apt-get update
And owncloud repo file:
cat /etc/apt/sources.list.d/owncloud.list
root@DietPi:~# apt-get update
Get:1 http://archive.raspberrypi.org wheezy InRelease [18.1 kB]
Hit http://raspberrypi.collabora.com wheezy InRelease
Get:2 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Ign http://download.opensuse.org InRelease
Get:3 http://download.opensuse.org Release.gpg [189 B]
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://download.opensuse.org Release
Get:4 http://archive.raspberrypi.org wheezy/main armhf Packages [136 kB]
Ign http://download.opensuse.org Release
Get:5 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,963 kB]
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_US
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Hit http://download.opensuse.org Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en_US
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://download.opensuse.org Translation-en_US
Ign http://download.opensuse.org Translation-en
Get:6 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:7 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:8 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,241 kB in 27s (340 kB/s)
Reading package lists... Done
W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 977C43A8BA684223
root@DietPi:~# cat /etc/apt/sources.list.d/owncloud.list
deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /
For some unknown reason, it looks like the release key wasn’t installed.
Try running:
wget http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/Release.key
apt-key add - < Release.key
/DietPi/dietpi/dietpi-apt-get_update 2
Then check to see if error reappears:
apt-get update &> /tmp/apt && cat /tmp/apt | grep 'W:'
If this is successful, you can use dietpi-uninstall and then dietpi-software to reinstall Owncloud if you require the latest version of Owncloud.