*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Owncloud Security & setup warnings

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
midn
NewUser
NewUser
Posts: 1
Joined: 14 Aug 2015 12:01
Status: Offline

Owncloud Security & setup warnings

#1

Post by midn » 14 Aug 2015 12:07

hi, i did google it every where but no answer
please help i need to fix this problem


1- php does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response.
Please check the installation documentation for php configuration notes and the php configuration of your server, especially when using php-fpm.

2- Your data directory and your files are probably accessible from the Internet. The .htaccess file is not working. We strongly suggest that you configure your web server in a way that the data directory is no longer accessible or you move the data directory outside the web server document root.

3-No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.

spy0r
Advanced User
Advanced User
Posts: 161
Joined: 18 Jun 2015 12:24
Location: Munich, Germany
Status: Offline

Re: Owncloud Security & setup warnings

#2

Post by spy0r » 22 Aug 2015 21:52

1) same here - didn't find out yet what the problem exactly is

2) just move your data directory out of the webserver root, edit the owncloud config before you do it and be sure your webserver-user has the rights in the new data directory

3) same here - i didn't get it to work - because of embedded, i failed at the moment - if someone has a good advice, i'll be glad

greets
NAS4Free 11.0.0.4 x64-embedded - Lian Li Q25b - AsRock Rack C2550D4I - 4x8Gb ECC Ram - 128Gb SSD Swap/Log/Extensions - RaidZ1: 3x3Tb Western Digital Red (WD30EFRX) - Backup: 1x8Tb Seagate Archive (ST8000AS0002) - APC Back UPS PRO (550VA)

Jack Foobar
experienced User
experienced User
Posts: 131
Joined: 07 Jul 2015 01:24
Status: Offline

Re: Owncloud Security & setup warnings

#3

Post by Jack Foobar » 06 Oct 2015 08:54

I have the same issue. I haven't gotten any part of the webserver to work either with OwnCloud(with the errors above) or with WebDAV, with the write-up above(get a 404 error after authentication). I'm not sure what the point of it is on the embedded distribution. It's like a vestigial appendage that serves no purpose. I'd like to install the full version, but I like being able to upgrade without flattening my entire config. So that's a no go as well. I guess I'll just get used to disappointment until the dev's can tell us how the hell to set up the damned thing with these gimped images.

BlackPeter
Starter
Starter
Posts: 43
Joined: 03 Nov 2013 19:45
Location: Spain
Contact:
Status: Offline

Re: Owncloud Security & setup warnings

#4

Post by BlackPeter » 26 Oct 2015 11:34

Jack, if your so disapointed with NAS4FREE you can try an out of the box solution and pay for it, but i think you forgot an important thing this OS is a comunity OS and a lot of people work on it just to make it better without any benefits, they work hard to fix things on the go and make this affordable to all people either they know about servers or not. This is the answer to your question about embedded or full install.About the other question no one can give you the right answer if you dont post logs or more info.In case you cant wait for it you allways have a good point of information on GOOGLE.

So be pacient explain yourself and wait for a answer.
Hostname it-service.sytes.net
Version 12.0.0.4 - Reticulus (revision 6743)
Compiled 06/09/2019 01:26:07
Platform OS FreeBSD 12.0-RELEASE-p5 #0 r348788M: Fri Jun 7 22:53:38 CEST 2019
Platform x64-full on Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
System Wistron Corporation ProLiant DL120 G5

spy0r
Advanced User
Advanced User
Posts: 161
Joined: 18 Jun 2015 12:24
Location: Munich, Germany
Status: Offline

Re: Owncloud Security & setup warnings

#5

Post by spy0r » 30 Oct 2015 19:30

owncloud 8.2.0 is extremely slow without memcache, can anybody tell me if and how it is possible to enable memcache in an embedded install?
(sure, you can disable filelocking with disabling the file locking app, but this isn't it)

source: http://fossies.org/diffs/owncloud/8.1.3 ... -diff.html
NAS4Free 11.0.0.4 x64-embedded - Lian Li Q25b - AsRock Rack C2550D4I - 4x8Gb ECC Ram - 128Gb SSD Swap/Log/Extensions - RaidZ1: 3x3Tb Western Digital Red (WD30EFRX) - Backup: 1x8Tb Seagate Archive (ST8000AS0002) - APC Back UPS PRO (550VA)

BlackPeter
Starter
Starter
Posts: 43
Joined: 03 Nov 2013 19:45
Location: Spain
Contact:
Status: Offline

Re: Owncloud Security & setup warnings

#6

Post by BlackPeter » 02 Nov 2015 21:52

This is a funcional Owncloud setup as far youre do exactly the same as in the tutorial.
The android client to conect ishttp://it-service.sytes.net/files/android/ also atached.

Good luck!
Installing Memcache and APC (PHP Alternative Cache)

Code: Select all

pkg install pecl-APC pecl-memcache

Code: Select all

nano /usr/local/etc/php/extensions.ini
Now add to the bottom of the file:

Code: Select all

extension=memcache.so
extension=apc.so
At this stage you’ll need to restart your web server, if using Apache you can run:-

Code: Select all

apachectl restart
You do not have the required permissions to view the files attached to this post.
Hostname it-service.sytes.net
Version 12.0.0.4 - Reticulus (revision 6743)
Compiled 06/09/2019 01:26:07
Platform OS FreeBSD 12.0-RELEASE-p5 #0 r348788M: Fri Jun 7 22:53:38 CEST 2019
Platform x64-full on Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
System Wistron Corporation ProLiant DL120 G5

jistme
Status: Offline

Re: Owncloud Security & setup warnings

#7

Post by jistme » 25 Mar 2016 12:29

I have a question on setting 'memory cache' in relation to OwnCloud.
I am running OwnCloud in a jail on nas4free embedded. (thanx to Nozza ;-)
The system itself runs (fine) on an Atom D510 with only 1 GB of memory.

Now there are mentions while installing OwnCloud, and in the OwnCloud interface itself that setting 'memory cache' is being advised.
Now I am the opposite of savvy with the internal workings of both nas4free and OwnCloud, so it will probably be rather hard for me to find out how to do that.

Now my question is: OwnCloud is not heavily used or strained by me. I mainly would use it for an occasional share with a friend, and playing music (perhaps a movie if that will work) on my tablet when I am on the road.

Would it be useful and worth the trouble with my setup and usage to try and get this 'memory cache' stuff working at all?

nef
Starter
Starter
Posts: 16
Joined: 13 Dec 2015 18:40
Status: Offline

Re: Owncloud Security & setup warnings

#8

Post by nef » 28 Mar 2016 13:24

Regarding 2nd message, there is the simple solution:

Put this in "auxiliary parameters" in webserver settings

Code: Select all

$HTTP["url"] =~ "^/data/" {
        url.access-deny = ("")
}
$HTTP["url"] =~ "^/($|/)" {
        dir-listing.activate = "disable"
}
This code should be working in case if Document root is set to owncloud directory. Otherwise, you have to adjust it.
https://doc.owncloud.org/server/7.0/adm ... ation.html

Regarding 1st issue, I'm still looking for solution, has anybody found it yet?
System specs: XigmaNAS embedded on USB / MB: AsRock Rack C236 WSI / CPU: E3-1235L v5 @ 2.0GHz / RAM: 32GB Kingston DDR4 2133mhz ECC / Case: U-NAS NSC-800 / Storage: 8x Western Digital Red (WD30EFRX) raidz2

jerryperes
NewUser
NewUser
Posts: 2
Joined: 29 Jun 2016 10:18
Location: Greece
Contact:
Status: Offline

Re: Owncloud Security & setup warnings

#9

Post by jerryperes » 05 Jul 2016 15:20

Many time technical errors come in the system so cloud hosting generates warning. Restart your server and you are good to go with no more warning.

Post Reply

Return to “WebServer”