1 |
On Wednesday 05 Mar 2014 13:49:00 Mick wrote: |
2 |
> On Tuesday 04 Mar 2014 23:38:04 Peter Humphrey wrote: |
3 |
> > On Tuesday 04 Mar 2014 20:08:57 Mick wrote: |
4 |
> > > On Tuesday 04 Mar 2014 15:47:05 Peter Humphrey wrote: |
5 |
> > > > Whatever I've tried, I still can't get owncloud installed properly, |
6 |
> > > > not |
7 |
> > > > even by running their installer script to fetch and install version |
8 |
> > > > 6.0.2, just released. That's why I felt forced into the brute-force |
9 |
> > > > method. |
10 |
> > > |
11 |
> > > What you describe as "installed properly" boils down to using wget to |
12 |
> > > download their latest release, untarring it into your /var/www/owncloud |
13 |
> > > directory and checking that ownership and access rights are correctly |
14 |
> > > set. |
15 |
> > > |
16 |
> > > The manual install instructions explain how to do this step by step on |
17 |
> > > their website. |
18 |
> > > |
19 |
> > > Are you getting some particular error when you try to load it in a |
20 |
> > > browser? |
21 |
> > |
22 |
> > Yes, I am. I can do those things, or I can install from the ebuild, and in |
23 |
> > either case the file structure under /var/www/localhost/htdocs/owncloud |
24 |
> > looks fine, permissions and all (I haven't yet tried using vhosts). Then |
25 |
> > when I browse to owncloud it asks for an admin name and password, then |
26 |
> > runs through post-install checks and announces "Your web server is not yet |
27 |
> > properly setup to allow files synchronisation because the WebDAV interface |
28 |
> > seems to be broken." |
29 |
> > |
30 |
> > Since owncloud's DAV functionality is built into its own PHP code, I can |
31 |
> > only suppose that I have a USE flag wrong here: |
32 |
> > |
33 |
> > [ebuild R ] dev-lang/php-5.5.9:5.5 USE="apache2 berkdb bzip2 |
34 |
> > calendar |
35 |
> > cgi cli crypt ctype curl exif fileinfo filter fpm ftp gd gdbm gmp hash |
36 |
> > iconv intl ipv6 json mysql mysqli nls opcache pdo phar posix readline |
37 |
> > session simplexml sqlite ssl tokenizer truetype unicode xml xmlwriter zip |
38 |
> > zlib -bcmath -cdb -cjk -debug -embed -enchant -firebird -flatfile |
39 |
> > -frontbase -imap -inifile - iodbc -kerberos -ldap -ldap-sasl -libedit |
40 |
> > -libmysqlclient -mhash -mssql -oci8- instant-client -odbc -pcntl -postgres |
41 |
> > -qdbm -recode (-selinux) -sharedmem - snmp -soap -sockets -spell |
42 |
> > -sybase-ct -systemd -sysvipc -threads -tidy -wddx - xmlreader -xmlrpc -xpm |
43 |
> > -xslt" |
44 |
> |
45 |
> This looks fine. |
46 |
|
47 |
That's good - thanks. |
48 |
|
49 |
> > Everything the instructions ask for is in that list, unless I've missed |
50 |
> > something, but maybe something else needs changing. |
51 |
> |
52 |
> md is not in the list. I don't know if it is built as a default, or if you |
53 |
> need to emerge dev-php/phpmd. In any case, I wouldn't expect this to have |
54 |
> anything to do with webDAV. |
55 |
|
56 |
Is that the mess detector? If so it's keyworded and I'm sure I haven't |
57 |
installed it before, whereas I had owncloud running ok before my hard disk |
58 |
failure. That failure caused me to rebuild from scratch on its SSD |
59 |
replacement, because so many disk-unreadable errors came up at the end that I |
60 |
didn't trust anything stored on it. |
61 |
|
62 |
> Have you manually disabled webDAV in your apache configuration? |
63 |
> |
64 |
> You will need to set 'Dav Off' under the entry for your <Directory |
65 |
> /var/www/owncloud>. You will also need to check that you have *not* enabled |
66 |
> authentication at apache level because this is managed by the php code and |
67 |
> you have also set 'Satisfy Any' under 'Allow from all'. |
68 |
|
69 |
I've included this stanza in default_vhost.include: |
70 |
|
71 |
<Directory "/var/www/localhost/htdocs/owncloud"> |
72 |
Options Indexes FollowSymLinks MultiViews |
73 |
AllowOverride All |
74 |
Order allow,deny |
75 |
allow from all |
76 |
Satisfy Any |
77 |
# Dav Off |
78 |
</Directory> |
79 |
|
80 |
With that # mark omitted I get this: |
81 |
|
82 |
# /etc/init.d/apache2 start |
83 |
* apache2 has detected an error in your setup: |
84 |
Syntax error on line 70 of /etc/apache2/vhosts.d/default_vhost.include: |
85 |
Invalid command 'Dav', perhaps misspelled or defined by a module not included |
86 |
in the server configuration |
87 |
* ERROR: apache2 failed to start |
88 |
|
89 |
So the WebDAV module is not available, which makes sense because it isn't |
90 |
specified in /etc/conf.d/apache2. With the # present I still get the error from |
91 |
owncloud. Apache was remerged overnight; PHP has just finished, but reloading |
92 |
Apache still gives me the owncloud WebDAV error - so PHP isn't to blame. |
93 |
|
94 |
> Finally, increase verbosity in apache to see what access errors it reports. |
95 |
|
96 |
Good idea. Thanks again Mick. |
97 |
|
98 |
I've just found something odd. It looks like Apache is not listing on IPv4, |
99 |
only IPv6: |
100 |
|
101 |
# netstat -tulpen | grep apache |
102 |
tcp6 0 0 :::80 :::* LISTEN |
103 |
0 225562 29055/apache2 |
104 |
tcp6 0 0 :::443 :::* LISTEN |
105 |
0 225558 29055/apache2 |
106 |
|
107 |
No mention of plain tcp. Eth0 has an IPv4 address, of course, so I have more |
108 |
detective work to do. |
109 |
|
110 |
# ifconfig |
111 |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
112 |
inet 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255 |
113 |
inet6 fe80::7271:bcff:fe94:ee71 prefixlen 64 scopeid 0x20<link> |
114 |
ether 70:71:bc:94:ee:71 txqueuelen 1000 (Ethernet) |
115 |
RX packets 28121 bytes 2090480 (1.9 MiB) |
116 |
RX errors 0 dropped 0 overruns 0 frame 0 |
117 |
TX packets 31329 bytes 11741711 (11.1 MiB) |
118 |
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
119 |
--->8 |
120 |
|
121 |
-- |
122 |
Regards |
123 |
Peter |