Archive for the ownCloud Tag

Text File Viewer for ownCloud

miqrogroove
2018-10-20T10:48:09+00:00

This is a little website tool I put together for ownCloud users.

If you enjoy retrieving text files from your cloud server through your phone, it helps to be able to see the text in as few steps as possible.

My viewer App solves two problems:

1. A context menu item provides one-click access to view the file in your browser without the awkward text editor app in the ownCloud website.

2. A text-only directory browser is also provided for situations where the infinite river of file listings takes forever to scroll through on a mobile device.

The app is currently available at https://github.com/miqrogroove/files_textviewer/releases and I am working on adding it to the ownCloud Marketplace.

20 Oct 2018

Category:
Productivity

Tags:

Discuss:
Comments Go Here

ownCloud Using Wrong PHP Configuration

miqrogroove
2018-10-20T14:36:36+00:00

The ownCloud community dropped support for Windows Server, so I must resort to documenting such problems here instead of contributing open source.

One major symptom that confirmed ownCloud was using more than one PHP environment on my server was the presence of session handler files in more than one directory.  Specifically, I was finding orphaned files in C:\WINDOWS\Temp even though my one and only php.ini production file specified a different path as well as garbage collection.

I traced the session file generation as far as the ownCloud calendar “app”, which lives in owncloud\apps\calendar\appinfo\remote.php and related places.

Debugging results were fascinating in that not only was the wrong configuration file loaded, after dumping all phpinfo() to disk I also found that the calendar app was running under an entirely different version of PHP.

The culprit:  After the most recent PHP upgrade, my site-specific Handler Mappings ended up with mismatched verb restrictions.  Somehow the new version ended up restricted to GET,HEAD,POST by default, while the old version remained unrestricted.  Although my handlers were in the correct order to give all *.php files to the correct module, any time a CalDAV client sent a PROPFIND or similar request, IIS essentially downgraded to the unrestricted version of PHP.

The solution:  Remove verb restrictions for the ownCloud site’s Handler Mappings, and then remove all but one of the PHP Handler Mappings to prevent any other versions from running without throwing errors.

If you get a bogus error about spaces in “the path to the script processor” when updating verb restrictions, just add double quotes around the path, and then click “No” on the ensuing bogus error about needing to create a new FastCGI application.  (facepalm)

19 Dec 2016

Category:
Systems Engineering

Tags:
,

Discuss:
Comments Go Here