LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Setting up Owncloud (https://www.linuxquestions.org/questions/slackware-14/setting-up-owncloud-948380/)

Jdogzz 06-04-2012 12:34 AM

Setting up Owncloud
 
I decided to try and set up owncloud on an old laptop I have sitting around and tried to follow the instructions I found in this thread: http://www.linuxquestions.org/questi...unning-919075/

I followed the instructions but I think I'm missing something important related to apache that is preventing me from getting it to work. When I navigate to localhost/owncloud it gives me a 403 forbidden error. Is there something that I need to do to set up apache before trying to work with the owncloud setup?

damgar 06-04-2012 10:06 PM

I'm not sure what to say. I tried installing it using these directions as well as following Alien Bob's suggestions in your previous post. I get "INTERNAL SERVER ERROR" messages when I try to go to localhost/owncloud. If I replace the .htaccess file that comes with owncloud with my own that I use in another directory I'm able to get as far as creating the admin account, but then it goes back to the internal server error message. Removing the .htaccess file completely from /var/www/htdocs/owncloud then allows me to login, but I get a constant blinking/flashing of the page that is useless. In /var/log/httpd/error_log I then have these messages:
Code:

[Mon Jun 04 22:05:54.979620 2012] [mpm_event:notice] [pid 2644:tid 3070154496] AH00494: SIGHUP received.  Attempting to restart
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/sqlite.so' - /usr/lib/php/extensions/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/xsl.so' - /usr/lib/php/extensions/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
[Mon Jun 04 22:05:55.038965 2012] [mpm_event:notice] [pid 2644:tid 3070154496] AH00489: Apache/2.4.2 (Unix) PHP/5.4.3 configured -- resuming normal operations
[Mon Jun 04 22:05:55.038992 2012] [core:notice] [pid 2644:tid 3070154496] AH00094: Command line: '/usr/sbin/httpd'
[Mon Jun 04 22:06:02.589904 2012] [core:alert] [pid 8437:tid 3029334848] [client 127.0.0.1:43636] /srv/httpd/htdocs/owncloud/data/.htaccess: deny not allowed here
[Mon Jun 04 22:06:05.985626 2012] [core:alert] [pid 8435:tid 3029334848] [client 127.0.0.1:43641] /srv/httpd/htdocs/owncloud/data/.htaccess: deny not allowed here, referer: http://localhost:8000/owncloud/index.php
[Mon Jun 04 22:06:05.985645 2012] [core:alert] [pid 8437:tid 2979003200] [client 127.0.0.1:43642] /srv/httpd/htdocs/owncloud/data/.htaccess: deny not allowed here, referer: http://localhost:8000/owncloud/index.php


tallship 06-04-2012 11:27 PM

This just in...

Quote:

ownCloud 4.0.1 Released – Bugfix and Security Release
Posted on June 4, 2012 by owncloud release

Today we release an important update for ownCloud 4. The new release contains lots of bugfixes and important security updates. It is recommended that all ownCloud 4.x users upgrade. For full production use we continue to recommend ownCloud 3.x or ownCloud 2012 – while we chase additional items brought up by users
There's a few SQL fixes in the list there too at: http://owncloud.org/news

I hope that helps but YMMV ;)

Kindest regards,

.

damgar 06-05-2012 12:48 AM

I've managed to get as far as creating the admin account with the .htaccess files in place. That was my screw up from previously setting up .htaccess. I had the AllowOveride for the document root set too restrictive, and as was mentioned in the referenced thread, deleting my php.ini file and reinstalling the php package fixed the dynamic library errors I was getting. Now when I setup the the admin account though I get an access forbidden error. I'm able to enter http://localhost/owncloud/index.php manually and I get to a malformed screen. I can't access any of the apps. I get this in my error_log:
Code:

Cannot serve directory /srv/httpd/htdocs/owncloud/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive, referer: http://localhost:8000/owncloud/index.php

damgar 06-05-2012 01:00 AM

Got it. Had to change
Code:

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

to
Code:

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

So the things I personally had to do to get opencloud working:

Enable PHP
change my AllowOverride for .htaccess files that I had set previously
Enter the changes listed by Alien Bob.
Reinstall php after removing php.ini
Unpack the tarball to the server tree
chown the directory to apache:apache

It really wasn't complicated, I just had no clue what I was doing! lol Hope that helps.

damgar 06-05-2012 02:08 AM

I just want to say thanks. I had no clue about owncloud until I read your post. With WebDAV and a free app I'm now able to upload things directly to and from my Iphone across the web. That has been such a PITA for YEARS!

Jdogzz 06-05-2012 07:17 PM

@damgar Thank you so much:) Fixed all my problems:)

I'm marking this thread as solved.

damgar 06-05-2012 08:57 PM

Awesome. Glad to hear it. It's a really cool little program once it's running!


All times are GMT -5. The time now is 05:28 AM.