For any ownCloud’ians out there; I worked some more on the OC 8 packages for Fedora today and I think they’re in reasonably testable shape now. I just updated my production deployment and it worked first time.
IMPORTANT: back up really, really carefully before testing these out. They should work, but I want to get more testing to be sure. This is what you’ll be doing. Please, please make sure beforehand that if the upgrade breaks completely, you have everything you need to recover. Ideally, test these on a dev instance or test machine or something.
Please ensure you have this line in
/etc/owncloud/config.php before updating:
'check_for_working_htaccess' => false,
or else the OC updater will refuse to run. I will probably add a belt-and-braces fix for this later, but it’s a good idea to have that set in any case. It has been part of the default config in the package for some time, but very old installations may not have it.
If you have edited
/etc/httpd/conf.d/owncloud.conf at all please merge in the changes from the package before attempting to access the server. There are substantial changes in the Apache config files. I have tried to make them easier to work with. If all you need to do is make the OC installation accessible (override the config that makes it only accessible from localhost out of the box), you do not need to modify
owncloud.conf at all, all you have to do is:
ln -s /etc/httpd/conf.d/owncloud-access.conf.avail /etc/httpd/conf.d/z-owncloud-access.conf
if you previously enabled global access in any other way I recommend switching to this one, as it will ensure things keep working in future without you needing to do anything, but you can see the directories you need to allow access to in that file if you want to do it any other way.
/var/lib/owncloud/apps must be allowed and must be
/owncloud/appstore-apps (or else installing apps from the ‘app store’ won’t work, and you’re really going to need it to, see below).
/var/lib/owncloud/assets should be allowed and should be
/owncloud/assets (though this only matters if you enable the
asset-pipeline.enabled setting in
owncloud.conf (and all the
.inc files in the package) unmodified if at all possible, and use a separate file to make any overrides you want to the configuration. This way when I need to update
owncloud.conf in future you will get the changes automatically.
After upgrading you will find that most of your apps have disappeared. Don’t panic! ownCloud just decided to move a lot of apps that were previously shipped in the tarball (including even Contacts and Calendar) into the ‘app store’. You can go into the ‘Apps’ screen as an admin user and enable the apps you need. When you enable them, all your existing data and configuration for them should reappear, they will not be blank.
I am considering whether to provide packages for some of the core apps or even add them back to the ownCloud package itself, but for now, installing them from the app store should work fine – as long as you followed the instructions above about making sure the Apache config snippets are up to date.
The packages are available in my side repo for Fedora 21 and 22 (I’ve symlinked 22 to ‘rawhide’ as well, as the 22 builds should probably work for Rawhide). Get the repo file and place it in
/etc/yum.repos.d to enable the repo.