Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-15 Thread Peter Humphrey
On Saturday 01 Mar 2014 11:07:07 cov...@ccs.covici.com wrote:

 I installed owncloud, but I could not sync an iphone -- at least not to
 the calendar part of owncloud.  It didn't complain about the password or
 anything, but just sat there after I created the account on the phone.
 Has anyone gotten such a thing to actually work?

Sorry to be so late, but I've just thought: have you set the calendar USE flag 
on PHP?

(I still haven't got owncloud to run properly. This is getting tedious.)

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-15 Thread Nilesh Govindrajan
On 15-Mar-2014 8:22 pm, Peter Humphrey pe...@prh.myzen.co.uk wrote:

 On Saturday 01 Mar 2014 11:07:07 cov...@ccs.covici.com wrote:

  I installed owncloud, but I could not sync an iphone -- at least not to
  the calendar part of owncloud.  It didn't complain about the password or
  anything, but just sat there after I created the account on the phone.
  Has anyone gotten such a thing to actually work?

 Sorry to be so late, but I've just thought: have you set the calendar USE
flag
 on PHP?

 (I still haven't got owncloud to run properly. This is getting tedious.)

 --
 Regards
 Peter



Seriously, what's so difficult about it? It's just like deploying a
WordPress blog.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-15 Thread Peter Humphrey
On Thursday 13 Mar 2014 00:51:39 Neil Bothwick wrote:
 On Thu, 13 Mar 2014 00:19:07 +, Peter Humphrey wrote:
  Neil, would you mind comparing your USE flags for dev-lang/php with
  mine, please? I have this:
  
  [ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2
  calendar cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm
  gmp hash iconv intl ipv6 json mysql mysqli nls opcache pdo phar posix
  readline session simplexml sqlite ssl tokenizer truetype unicode xml
  xmlwriter zip zlib -bcmath -cdb -cjk -debug -embed -enchant -firebird
  -flatfile -frontbase -imap -inifile - iodbc -kerberos -ldap -ldap-sasl
  -libedit -libmysqlclient -mhash -mssql -oci8- instant-client -odbc
  -pcntl -postgres -qdbm -recode (-selinux) -sharedmem - snmp -soap
  -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy -wddx -
  xmlreader -xmlrpc -xpm -xslt 12,796 kB
 
 I have
 
 [ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2 cgi
 cli crypt ctype curl fileinfo filter gd gdbm hash iconv ipv6 json mysql
 nls opcache pdo phar posix readline session simplexml sqlite ssl
 tokenizer unicode xml xmlwriter zip zlib -bcmath -calendar -cdb -cjk
 -debug -embed -enchant -exif -firebird -flatfile -fpm (-frontbase) -ftp
 -gmp -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit
 -libmysqlclient -mhash -mssql -mysqli -oci8-instant-client -odbc -pcntl
 -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -spell
 (-sybase-ct) -systemd -sysvipc -threads -tidy -truetype -wddx -xmlreader
 -xmlrpc -xpm -xslt 0 kB

And what about apache? I have:

[binary  N ] www-servers/apache-2.2.25:2  USE=ssl suexec -debug -doc -
ldap (-selinux) -static -threads APACHE2_MODULES=actions alias auth_basic 
authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm 
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 
cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter 
file_cache filter headers include info log_config logio mem_cache mime 
mime_magic 
negotiation rewrite setenvif speling status unique_id userdir usertrack 
vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -
dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -
proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -
version APACHE2_MPMS=prefork -event -itk -peruser -worker 0 kB

Do I need to switch to a threaded MPM?

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-15 Thread Peter Humphrey
On Saturday 15 Mar 2014 20:26:27 Nilesh Govindrajan wrote:
 On 15-Mar-2014 8:22 pm, Peter Humphrey pe...@prh.myzen.co.uk wrote:
---8
  (I still haven't got owncloud to run properly. This is getting tedious.)
  
  --
  Regards
  Peter
 
 Seriously, what's so difficult about it? It's just like deploying a
 WordPress blog.

(...which I'm facing with increasing trepidation.  :-(  )

I have two difficulties: configuring apache properly, which I seem not to 
understand yet, and fixing owncloud so that it doesn't throw up a broken-WebDAV 
error.

Mick has offered plenty of advice on configuring apache, but still I don't 
understand clearly. Copying things around blindly doesn't do the job, of 
course. I did get it more-or-less working for a local choir's website but that 
didn't use SSL - and my backups don't go back far enough anyway.

I've cleared out the whole apache package and I'm about to start again (again) 
on setting it up with a modules.d/ file and a vhosts.d/ file to use SSL. Sounds 
easy, as you say.

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-15 Thread Mick
On Saturday 15 Mar 2014 15:47:04 Peter Humphrey wrote:
 On Saturday 15 Mar 2014 20:26:27 Nilesh Govindrajan wrote:
  On 15-Mar-2014 8:22 pm, Peter Humphrey pe...@prh.myzen.co.uk wrote:
 ---8
 
   (I still haven't got owncloud to run properly. This is getting
   tedious.)
   
   --
   Regards
   Peter
  
  Seriously, what's so difficult about it? It's just like deploying a
  WordPress blog.
 
 (...which I'm facing with increasing trepidation.  :-(  )
 
 I have two difficulties: configuring apache properly, which I seem not to
 understand yet, and fixing owncloud so that it doesn't throw up a
 broken-WebDAV error.
 
 Mick has offered plenty of advice on configuring apache, but still I don't
 understand clearly. Copying things around blindly doesn't do the job, of
 course. I did get it more-or-less working for a local choir's website but
 that didn't use SSL - and my backups don't go back far enough anyway.
 
 I've cleared out the whole apache package and I'm about to start again
 (again) on setting it up with a modules.d/ file and a vhosts.d/ file to
 use SSL. Sounds easy, as you say.

Peter, I'm happy to help offline if you don't want to bother the list.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-13 Thread Peter Humphrey
On Thursday 13 Mar 2014 00:51:39 Neil Bothwick wrote:
 On Thu, 13 Mar 2014 00:19:07 +, Peter Humphrey wrote:
  Neil, would you mind comparing your USE flags for dev-lang/php with
  mine, please? I have this:
  
  [ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2
  calendar cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm
  gmp hash iconv intl ipv6 json mysql mysqli nls opcache pdo phar posix
  readline session simplexml sqlite ssl tokenizer truetype unicode xml
  xmlwriter zip zlib -bcmath -cdb -cjk -debug -embed -enchant -firebird
  -flatfile -frontbase -imap -inifile - iodbc -kerberos -ldap -ldap-sasl
  -libedit -libmysqlclient -mhash -mssql -oci8- instant-client -odbc
  -pcntl -postgres -qdbm -recode (-selinux) -sharedmem - snmp -soap
  -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy -wddx -
  xmlreader -xmlrpc -xpm -xslt 12,796 kB
 
 I have
 
 [ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2 cgi
 cli crypt ctype curl fileinfo filter gd gdbm hash iconv ipv6 json mysql
 nls opcache pdo phar posix readline session simplexml sqlite ssl
 tokenizer unicode xml xmlwriter zip zlib -bcmath -calendar -cdb -cjk
 -debug -embed -enchant -exif -firebird -flatfile -fpm (-frontbase) -ftp
 -gmp -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit
 -libmysqlclient -mhash -mssql -mysqli -oci8-instant-client -odbc -pcntl
 -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -spell
 (-sybase-ct) -systemd -sysvipc -threads -tidy -truetype -wddx -xmlreader
 -xmlrpc -xpm -xslt 0 kB

Thanks Neil. That isn't the answer then.

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-12 Thread Peter Humphrey
On Friday 28 Feb 2014 11:01:07 Neil Bothwick wrote:
 On Fri, 28 Feb 2014 10:55:59 +, Peter Humphrey wrote:
  Apologies if this is off-topic here but I don't know where else to ask.
  I'm having trouble getting owncloud installed on my LAN mini-server.
  Its post-inst check complains the WebDAV interface seems to be broken.
 
 It works for me here.

---8

Neil, would you mind comparing your USE flags for dev-lang/php with mine, 
please? I have this:

[ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2 calendar 
cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm gmp hash iconv 
intl ipv6 json mysql mysqli nls opcache pdo phar posix readline session 
simplexml sqlite ssl tokenizer truetype unicode xml xmlwriter zip zlib -bcmath 
-cdb -cjk -debug -embed -enchant -firebird -flatfile -frontbase -imap -inifile -
iodbc -kerberos -ldap -ldap-sasl -libedit -libmysqlclient -mhash -mssql -oci8-
instant-client -odbc -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -
snmp -soap -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy -wddx -
xmlreader -xmlrpc -xpm -xslt 12,796 kB

I'm still getting the broken-WebDAV error.

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-12 Thread Neil Bothwick
On Thu, 13 Mar 2014 00:19:07 +, Peter Humphrey wrote:

 Neil, would you mind comparing your USE flags for dev-lang/php with
 mine, please? I have this:
 
 [ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2
 calendar cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm
 gmp hash iconv intl ipv6 json mysql mysqli nls opcache pdo phar posix
 readline session simplexml sqlite ssl tokenizer truetype unicode xml
 xmlwriter zip zlib -bcmath -cdb -cjk -debug -embed -enchant -firebird
 -flatfile -frontbase -imap -inifile - iodbc -kerberos -ldap -ldap-sasl
 -libedit -libmysqlclient -mhash -mssql -oci8- instant-client -odbc
 -pcntl -postgres -qdbm -recode (-selinux) -sharedmem - snmp -soap
 -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy -wddx -
 xmlreader -xmlrpc -xpm -xslt 12,796 kB

I have

[ebuild   R] dev-lang/php-5.5.10:5.5  USE=apache2 berkdb bzip2 cgi
cli crypt ctype curl fileinfo filter gd gdbm hash iconv ipv6 json mysql
nls opcache pdo phar posix readline session simplexml sqlite ssl
tokenizer unicode xml xmlwriter zip zlib -bcmath -calendar -cdb -cjk
-debug -embed -enchant -exif -firebird -flatfile -fpm (-frontbase) -ftp
-gmp -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit
-libmysqlclient -mhash -mssql -mysqli -oci8-instant-client -odbc -pcntl
-postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -spell
(-sybase-ct) -systemd -sysvipc -threads -tidy -truetype -wddx -xmlreader
-xmlrpc -xpm -xslt 0 kB


-- 
Neil Bothwick

We are upping our standards - so up yours.


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-02 Thread Mick
On Sunday 02 Mar 2014 02:47:09 Peter Humphrey wrote:

 I must thank you for the work you put into that, Mick, 

You're welcome.  :-)

 but Nilesh has said
 I don't need DAV in Apache because it comes bundled with owncloud. I
 believe him too, from an earlier, successful attempt on the same box but
 with the now defunct spinning disk. (Surely, substituting an SSD can't
 have affected this? It's the only difference I can think of at the moment,
 though.)

WebDAV through apache is only one way of achieving a webDAV protocol 
implementation.  From what Nilesh has said it must be that owncloud is using 
something like SabreDAV or some such php webDAV extension to implement webDAV 
through php alone.  In this case skip my suggestions because you will need to 
walk through the owncloud set up instead.

Your owncloud website can be set up as a vhost account in apache, if you have 
more than one website/domain being served from the same web server.  Other 
than that I would think that all the configuration for owncloud would be 
performed through ownclouds GUI, or php configuration files.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-02 Thread Mick
On Sunday 02 Mar 2014 11:31:25 Mick wrote:
 On Sunday 02 Mar 2014 02:47:09 Peter Humphrey wrote:
  I must thank you for the work you put into that, Mick,
 
 You're welcome.  :-)
 
  but Nilesh has said
  I don't need DAV in Apache because it comes bundled with owncloud. I
  believe him too, from an earlier, successful attempt on the same box but
  with the now defunct spinning disk. (Surely, substituting an SSD can't
  have affected this? It's the only difference I can think of at the
  moment, though.)
 
 WebDAV through apache is only one way of achieving a webDAV protocol
 implementation.  From what Nilesh has said it must be that owncloud is
 using something like SabreDAV or some such php webDAV extension to
 implement webDAV through php alone.  In this case skip my suggestions
 because you will need to walk through the owncloud set up instead.
 
 Your owncloud website can be set up as a vhost account in apache, if you
 have more than one website/domain being served from the same web server. 
 Other than that I would think that all the configuration for owncloud
 would be performed through ownclouds GUI, or php configuration files.

Peter, have a look here, it says that you should explicitly switch off webDAV 
at your apache, with Dav Off:

http://doc.owncloud.org/server/6.0/admin_manual/installation/installation_source.html

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-02 Thread Nilesh Govindrajan
On Sun, Mar 2, 2014 at 5:01 PM, Mick michaelkintz...@gmail.com wrote:

 On Sunday 02 Mar 2014 02:47:09 Peter Humphrey wrote:

  I must thank you for the work you put into that, Mick,

 You're welcome.  :-)

  but Nilesh has said
  I don't need DAV in Apache because it comes bundled with owncloud. I
  believe him too, from an earlier, successful attempt on the same box but
  with the now defunct spinning disk. (Surely, substituting an SSD can't
  have affected this? It's the only difference I can think of at the
 moment,
  though.)

 WebDAV through apache is only one way of achieving a webDAV protocol
 implementation.  From what Nilesh has said it must be that owncloud is
 using
 something like SabreDAV or some such php webDAV extension to implement
 webDAV
 through php alone.  In this case skip my suggestions because you will need
 to
 walk through the owncloud set up instead.

 Your owncloud website can be set up as a vhost account in apache, if you
 have
 more than one website/domain being served from the same web server.  Other
 than that I would think that all the configuration for owncloud would be
 performed through ownclouds GUI, or php configuration files.
 --
 Regards,
 Mick


Yes you're right, it uses SabreDAV.
https://github.com/owncloud/core/blob/master/lib/private/davclient.php#L28


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Peter Humphrey
On Friday 28 Feb 2014 16:31:39 Nilesh Govindrajan wrote:

 You don't need moddav for owncloud. Owncloud implements it via php.

Now I am confused. Do I need to add or remove a USE flag from php or owncloud?

# emerge -pv owncloud php
...
[ebuild   R   ~] www-apps/owncloud-6.0.1:6.0.1  USE=curl mysql -postgres -
sqlite -vhosts 0 kB
[ebuild   R] dev-lang/php-5.5.9:5.5  USE=apache2 berkdb bzip2 calendar 
cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm gmp hash iconv 
intl json mysql mysqli nls opcache pdo phar posix readline session simplexml 
sqlite ssl tokenizer truetype unicode xml xmlwriter zip zlib -bcmath -cdb -cjk 
-debug -embed -enchant -firebird -flatfile -frontbase -imap -inifile -iodbc 
-ipv6 
-kerberos -ldap -ldap-sasl -libedit -libmysqlclient -mhash -mssql -oci8-
instant-client -odbc -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -
snmp -soap -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy -wddx -
xmlreader -xmlrpc -xpm -xslt 0 kB

I decided to try mysql (mariadb, actually) rather than sqlite; maybe I should 
revert to the simpler setup, or maybe I've missed something here:

wstn / # emerge -pv mysql mariadb
...
[ebuild   R   ~] dev-db/mariadb-5.5.32  USE=community pam perl ssl -cluster -
debug -embedded -extraengine -jemalloc -latin1 -max-idx-128 -minimal -oqgraph 
(-pbxt) -profiling (-selinux) -sphinx -static -systemtap -tcmalloc {-test} 0 
kB
[ebuild   R   ~] virtual/mysql-5.5  USE=-embedded -minimal -static 0 kB

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Mick
On Saturday 01 Mar 2014 11:13:40 Peter Humphrey wrote:
 On Friday 28 Feb 2014 16:31:39 Nilesh Govindrajan wrote:
  You don't need moddav for owncloud. Owncloud implements it via php.
 
 Now I am confused. Do I need to add or remove a USE flag from php or
 owncloud?

I can't advise on owncloud, because I hadn't heard of it until now.  In a 
vanilla apache installation you would need to do the following:


1. Set up the dav, dav_fs, dav_lock USE flags in apache, remerge it and 
restart it.


2. Check that /etc/apache2/httpd.conf shows:

IfDefine DAV
LoadModule dav_module modules/mod_dav.so
/IfDefine
IfDefine DAV
LoadModule dav_fs_module modules/mod_dav_fs.so
/IfDefine
IfDefine DAV
LoadModule dav_lock_module modules/mod_dav_lock.so
/IfDefine


3. Set up your vhost fs to enable webdav access to it:

  VirtualHost *:80
  ServerName example.com
  ServerAlias my_example.com
  DocumentRoot /var/www/dev.example.com/htdocs
  Location /
 Dav On
 AuthType Basic
 AuthUserFile /var/www/.basic_password
 AuthName My WebDav Site - Admin Access Only!
 Require user My_User
  /Location
  /VirtualHost


4. Configure your corresponding modules.d vhost file:

  Directory /var/www/dev.example.com/htdocs
  Options FollowSymlinks
  AllowOverride All
  Order deny,allow
  Allow from all
  /Directory


5. Configure the installed webdav module file.  I don't know what are the 
defaults but this is what I have in my /etc/apache2/modules.d/45_mod_dav.conf:

IfDefine DAV
DavLockDB /var/lib/dav/lockdb

# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a
# problem with several clients that do not appropriately handle
# redirects for folders with DAV methods.
IfModule setenvif_module
BrowserMatch Microsoft Data Access Internet Publishing Provider redirect-
carefully
BrowserMatch MS FrontPage redirect-carefully
BrowserMatch ^WebDrive redirect-carefully
BrowserMatch ^WebDAVFS/1.[012345678] redirect-carefully
BrowserMatch ^gnome-vfs/1.0 redirect-carefully
BrowserMatch ^XML Spy redirect-carefully
BrowserMatch ^Dreamweaver-WebDAV-SCM1 redirect-carefully
/IfModule
/IfDefine


6. Set up /etc/conf.d/apache2 to start the DAV option.  In mine I have both '-
D DAV' and  '-D DAV_FS', but I don't know if apache-2.4 needs the latter to be 
explicitly started by apachectl or if it is loaded by the DAV module.


Restart apache and you should be able to access the fs from a browser, with 
username 'My_User' and whatever password you have created with htpasswd.  If 
you don't trust the network and therefore you don't want to be sending 
credentials in the clear, enable SSL.

I hope I haven't missed anything important here.  Have a look at the online 
apache documentation for more advanced settings, if you want to lock down what 
webdav will allow, otherwise keep an eye on your apache logs to see if there 
are any errors.

HTH.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Peter Humphrey
On Friday 28 Feb 2014 11:01:07 Neil Bothwick wrote:
 On Fri, 28 Feb 2014 10:55:59 +, Peter Humphrey wrote:
  Apologies if this is off-topic here but I don't know where else to ask.
  I'm having trouble getting owncloud installed on my LAN mini-server.
  Its post-inst check complains the WebDAV interface seems to be broken.
 
 It works for me here.

I was sure it would ;-)

---8

 Do you have the modules installed? Here APACHE_MODULES contains dav
 dav_fs dav_lock

I don't have APACHE2_MODULES set in make.conf; portage includes a default set.

 and /etc/conf.d/apache2 has only one line
 
 APACHE2_OPTS=-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
 LANGUAGE -D SUEXEC -D PHP5 -D PHP -D DAV

Mine's the same except that it doesn't have -D PHP. After what Nilesh said 
I'll take -D DAV out again. I didn't have -D SUEXEC and I thought that might 
be my problem, but putting it in didn't fix it.

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Nilesh Govindrajan
On Sat, Mar 1, 2014 at 4:43 PM, Peter Humphrey pe...@prh.myzen.co.ukwrote:

 On Friday 28 Feb 2014 16:31:39 Nilesh Govindrajan wrote:

  You don't need moddav for owncloud. Owncloud implements it via php.

 Now I am confused. Do I need to add or remove a USE flag from php or
 owncloud?

 # emerge -pv owncloud php
 ...
 [ebuild   R   ~] www-apps/owncloud-6.0.1:6.0.1  USE=curl mysql -postgres -
 sqlite -vhosts 0 kB
 [ebuild   R] dev-lang/php-5.5.9:5.5  USE=apache2 berkdb bzip2 calendar
 cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm gmp hash
 iconv
 intl json mysql mysqli nls opcache pdo phar posix readline session
 simplexml
 sqlite ssl tokenizer truetype unicode xml xmlwriter zip zlib -bcmath -cdb
 -cjk
 -debug -embed -enchant -firebird -flatfile -frontbase -imap -inifile
 -iodbc -ipv6
 -kerberos -ldap -ldap-sasl -libedit -libmysqlclient -mhash -mssql -oci8-
 instant-client -odbc -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -
 snmp -soap -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy
 -wddx -
 xmlreader -xmlrpc -xpm -xslt 0 kB

 I decided to try mysql (mariadb, actually) rather than sqlite; maybe I
 should
 revert to the simpler setup, or maybe I've missed something here:

 wstn / # emerge -pv mysql mariadb
 ...
 [ebuild   R   ~] dev-db/mariadb-5.5.32  USE=community pam perl ssl
 -cluster -
 debug -embedded -extraengine -jemalloc -latin1 -max-idx-128 -minimal
 -oqgraph
 (-pbxt) -profiling (-selinux) -sphinx -static -systemtap -tcmalloc
 {-test} 0
 kB
 [ebuild   R   ~] virtual/mysql-5.5  USE=-embedded -minimal -static 0 kB

 --
 Regards
 Peter




Nothing to get confused. Just install ownCloud like you'd install Wordpress
on Apache server, i.e. configure apache to run php scripts some way and run
the owncloud installer. That's it.
Since ownCloud has automatic update facility, I don't install it using
portage.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread covici
Nilesh Govindrajan m...@nileshgr.com wrote:

 On Sat, Mar 1, 2014 at 4:43 PM, Peter Humphrey pe...@prh.myzen.co.ukwrote:
 
  On Friday 28 Feb 2014 16:31:39 Nilesh Govindrajan wrote:
 
   You don't need moddav for owncloud. Owncloud implements it via php.
 
  Now I am confused. Do I need to add or remove a USE flag from php or
  owncloud?
 
  # emerge -pv owncloud php
  ...
  [ebuild   R   ~] www-apps/owncloud-6.0.1:6.0.1  USE=curl mysql -postgres -
  sqlite -vhosts 0 kB
  [ebuild   R] dev-lang/php-5.5.9:5.5  USE=apache2 berkdb bzip2 calendar
  cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm gmp hash
  iconv
  intl json mysql mysqli nls opcache pdo phar posix readline session
  simplexml
  sqlite ssl tokenizer truetype unicode xml xmlwriter zip zlib -bcmath -cdb
  -cjk
  -debug -embed -enchant -firebird -flatfile -frontbase -imap -inifile
  -iodbc -ipv6
  -kerberos -ldap -ldap-sasl -libedit -libmysqlclient -mhash -mssql -oci8-
  instant-client -odbc -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -
  snmp -soap -sockets -spell -sybase-ct -systemd -sysvipc -threads -tidy
  -wddx -
  xmlreader -xmlrpc -xpm -xslt 0 kB
 
  I decided to try mysql (mariadb, actually) rather than sqlite; maybe I
  should
  revert to the simpler setup, or maybe I've missed something here:
 
  wstn / # emerge -pv mysql mariadb
  ...
  [ebuild   R   ~] dev-db/mariadb-5.5.32  USE=community pam perl ssl
  -cluster -
  debug -embedded -extraengine -jemalloc -latin1 -max-idx-128 -minimal
  -oqgraph
  (-pbxt) -profiling (-selinux) -sphinx -static -systemtap -tcmalloc
  {-test} 0
  kB
  [ebuild   R   ~] virtual/mysql-5.5  USE=-embedded -minimal -static 0 kB
 
  --
  Regards
  Peter
 
 
 
 
 Nothing to get confused. Just install ownCloud like you'd install Wordpress
 on Apache server, i.e. configure apache to run php scripts some way and run
 the owncloud installer. That's it.
 Since ownCloud has automatic update facility, I don't install it using
 portage.

I installed owncloud, but I could not sync an iphone -- at least not to
the calendar part of owncloud.  It didn't complain about the password or
anything, but just sat there after I created the account on the phone.
Has anyone gotten such a thing to actually work?

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Mick
On Saturday 01 Mar 2014 15:21:48 Peter Humphrey wrote:
  APACHE2_OPTS=-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
  LANGUAGE -D SUEXEC -D PHP5 -D PHP -D DAV
 
 Mine's the same except that it doesn't have -D PHP. After what Nilesh said 
 I'll take -D DAV out again. I didn't have -D SUEXEC and I thought that
 might  be my problem, but putting it in didn't fix it.

Also try '-D DAV_FS'.

You will need -D PHP if your owncloud is running on php code.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Peter Humphrey
On Saturday 01 Mar 2014 16:09:16 Mick wrote:
 On Saturday 01 Mar 2014 15:21:48 Peter Humphrey wrote:
   APACHE2_OPTS=-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
   LANGUAGE -D SUEXEC -D PHP5 -D PHP -D DAV
  
  Mine's the same except that it doesn't have -D PHP. After what Nilesh said
  I'll take -D DAV out again. I didn't have -D SUEXEC and I thought that
  might  be my problem, but putting it in didn't fix it.
 
 Also try '-D DAV_FS'.

I should have said I tried that as well as -D DAV. But Nilesh said I don't 
need DAV support in apache2 at all for owncloud because it comes bundled.

 You will need -D PHP if your owncloud is running on php code.

But I do have -D PHP5. Isn't that enough?

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Peter Humphrey
On Saturday 01 Mar 2014 20:55:46 Nilesh Govindrajan wrote:

 Nothing to get confused. Just install ownCloud like you'd install Wordpress
 on Apache server, i.e. configure apache to run php scripts some way and run
 the owncloud installer. That's it.

So no need for vhosts then? I'll set it up that way if I have to, but I'd 
rather avoid the extra complication pro tem.

 Since ownCloud has automatic update facility, I don't install it using
 portage.

Ah. I hadn't thought of bypassing portage. Perhaps I should.

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Nilesh Govindrajan
On 02-Mar-2014 7:05 am, Peter Humphrey pe...@prh.myzen.co.uk wrote:

 On Saturday 01 Mar 2014 16:09:16 Mick wrote:
  On Saturday 01 Mar 2014 15:21:48 Peter Humphrey wrote:
APACHE2_OPTS=-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
-D
LANGUAGE -D SUEXEC -D PHP5 -D PHP -D DAV
  
   Mine's the same except that it doesn't have -D PHP. After what Nilesh
said
   I'll take -D DAV out again. I didn't have -D SUEXEC and I thought that
   might  be my problem, but putting it in didn't fix it.
 
  Also try '-D DAV_FS'.

 I should have said I tried that as well as -D DAV. But Nilesh said I don't
 need DAV support in apache2 at all for owncloud because it comes bundled.

  You will need -D PHP if your owncloud is running on php code.

 But I do have -D PHP5. Isn't that enough?

 --
 Regards
 Peter



I don't use mod_php, so no idea about that.
But just note that Apache must be able to run php scripts.

Maybe try executing a script like

?php

phpinfo ();

?


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-03-01 Thread Peter Humphrey
On Saturday 01 Mar 2014 12:08:17 Mick wrote:

---8

 I hope I haven't missed anything important here.  Have a look at the online
 apache documentation for more advanced settings, if you want to lock down
 what webdav will allow, otherwise keep an eye on your apache logs to see if
 there are any errors.
 
 HTH.

I must thank you for the work you put into that, Mick, but Nilesh has said I 
don't need DAV in Apache because it comes bundled with owncloud. I believe him 
too, from an earlier, successful attempt on the same box but with the now 
defunct spinning disk. (Surely, substituting an SSD can't have affected this? 
It's the only difference I can think of at the moment, though.)

-- 
Regards
Peter




Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-02-28 Thread Neil Bothwick
On Fri, 28 Feb 2014 10:55:59 +, Peter Humphrey wrote:

 Apologies if this is off-topic here but I don't know where else to ask.
 I'm having trouble getting owncloud installed on my LAN mini-server.
 Its post-inst check complains the WebDAV interface seems to be broken.

It works for me here.
 
 I found this how-to but it's getting long in the tooth:
   http://forums.gentoo.org/viewtopic-t-338668-start-0.html
 If I include all the extras under IfModule mod_dav.c I get permission 
 refused to run post-inst-check, even if I comment out the Limit
 block.I did do the parts about /var/dav, /var/lib/dav and
 htpasswd.

I didn't need to do any of that.
 
 I've added DAV and DAV_FS to APACHE2_OPTS in /etc/conf.d/apache2, but
 when I restart apache no DAV module is listed in the output from
 apache2 -M.

Do you have the modules installed? Here APACHE_MODULES contains dav
dav_fs dav_lock and /etc/conf.d/apache2 has only one line

APACHE2_OPTS=-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE 
-D SUEXEC -D PHP5 -D PHP -D DAV


-- 
Neil Bothwick

Stupid user error. Terminate user (Y/n) ?


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT?] How to get WebDAV going on Apache?

2014-02-28 Thread Nilesh Govindrajan
On 28 Feb 2014 16:26, Peter Humphrey pe...@prh.myzen.co.uk wrote:

 Hello list,

 Apologies if this is off-topic here but I don't know where else to ask.
I'm
 having trouble getting owncloud installed on my LAN mini-server. Its
post-inst
 check complains the WebDAV interface seems to be broken.

 I found this how-to but it's getting long in the tooth:
 http://forums.gentoo.org/viewtopic-t-338668-start-0.html
 If I include all the extras under IfModule mod_dav.c I get permission
 refused to run post-inst-check, even if I comment out the Limit block.
   I did
 do the parts about /var/dav, /var/lib/dav and htpasswd.

 I've added DAV and DAV_FS to APACHE2_OPTS in /etc/conf.d/apache2, but
when I
 restart apache no DAV module is listed in the output from apache2 -M.

 Can anyone see what I'm missing?

 --
 Regards
 Peter


You don't need moddav for owncloud. Owncloud implements it via php.