Re: [arch-general] owncloud: incorrect dependencies in PKGBUILD
On Wed Aug 13 12:47:49 EDT 2014, Yamakaky wrote:
The rest is still relevant though: updated uWSGI ownCloud working config would be __much__ appreciated!
Sadly, my raspberry pi is officially down at home, so I need to wait two weeks to give you my working config.
No problem, thanks a lot already! How close is ALARM (if that's what you're using) to original Arch (in terms of config directory, apps packaging etc.)? On Wed Aug 13 12:17:53 EDT 2014, Damjan Georgievski wrote:
* what is uwsgi_modifier1 14 directive used for?
That's used for PHP (uwsgi supports other languages too)
* uwsgi_pass directive: is TCP socket required by OC or can we replace it by a unix socket (like it seems to be by default in uwsgi doc [2])?
uwsgi can also use unix domain socket, but more care needs to be taken for permissions
* how do you start the uwsgi process (the wiki mentions a systemd unit file and Emperor but doesn't explain the need for those...)? Etc.
the uwsgi package comes with a systemd service file uwsgi at .service that runs a config file in /etc/uwsgi/, and /etc/uwsgi/emperor.ini but that one runs with www-data/www-data.
Me myself have a /etc/uwsgi/owncloud.ini file which I run as a different user. ... these are my config files now, changed to unix socket:
Thanks a million Damjan, this is of great help. Do you mind if I put a link to your gist on the wiki (ownCloud page, nginx + uwsgi section)? Just two questions: * I see you define two 'root" directives in nginx.conf, a server-wide one (/srv/http) and the / location one (/usr/share/webapps/owncloud): what is the interest of doing so? * I see (from enabled php extensions) you use SQLite? How does it go performance-wise? (if you prefer I can put my questions on the gist comments instead of the ML) Help is much appreciated, thanks.
No problem, thanks a lot already! How close is ALARM (if that's what you're using) to original Arch (in terms of config directory, apps packaging etc.)?
It uses the same officials repos + an `alarm` one for arm specific packages, like linux-raspberrypi. So I think I uses the same PKGBUILDs as archlinux, with minor modifications like the `arch` directive. I will try a diff of /var/abs. And it uses AUR. Owncloud pages on my raspi take 10-20 seconds to load, I don't know why. If I can't find a solution, I will try [cozy](cozy.io).
these are my config files now, changed to unix socket:
Thanks a million Damjan, this is of great help. Do you mind if I put a link to your gist on the wiki (ownCloud page, nginx + uwsgi section)?
you can also copy/paste it on the wiki
Just two questions: * I see you define two 'root" directives in nginx.conf, a server-wide one (/srv/http) and the / location one (/usr/share/webapps/owncloud): what is the interest of doing so?
it's not that important. if I have some other location added (by mistake?) it'll take the server root, /srv/http, and possibly limit the damage I could've done. the root in location / is so that nginx serves the static files for owncloud.
* I see (from enabled php extensions) you use SQLite? How does it go performance-wise?
yes I use sqlite because that was easiest for me. I don't know about performance, since I use it just for myself. Afaik, sqlite is not so good at concurrency, but I don't think my usage has that problem. The slowest thing is browsing directories with a lot of pictures, I dunno if the db helps there. -- damjan
participants (3)
-
Damjan Georgievski
-
Neitsab
-
Yamakaky