Problems when changing data directory

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
Stefanqn
Newbie
Posts: 8
Joined: Thu Feb 21, 2013 8:03 pm

Re: How to set/change data directory

Postby Stefanqn » Tue Mar 05, 2013 4:33 pm

RandolphCarter wrote:Was that maybe from the problem with the clamav app?

It is not related to the clamAV problem.

RandolphCarter wrote:(...) show (...) that (...) a data directory outside of /var/www doesn't work. (...). failure to connect to the database in that case is a mystery to me - what error message did you get exactly?

That is the exact error, just had several lines of it with alternating filenames. I guess (I'm not a PHP programmer) that phps fopen restricts for security reasons the path of accessible files (with open_basedir?). The sqlite db is in one file, so maybe -and in contrast to MySql- PHP has to access this file directly instead of using a DB connector?

RandolphCarter wrote:Did you try changing the open_basedir already in the meantime, or is it not yet "playtime" ;)?

Still, no playtime.

RandolphCarter wrote:really split this away from the FAQ entry

ack.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: How to set/change data directory

Postby RealRancor » Wed Mar 06, 2013 12:03 am

Stefanqn wrote:might be the point where it went off topic ;)


Not at all. You have started a support request in a FAQ entry (there is a support forum available you know?) and have posted the problem about the clamav app. ;)

Stefanqn wrote:In a default installation, it's in the list of available Apps, not in the More Apps list.


Just checked this again on a default installation and this app is not listen in the "available apps".

Stefanqn wrote:My pooping is in fact constructive, let me explain that for you


Not in the mean of constructive / helpful for this project. It doesn't help anyone if you post those suggestions in here. As stated above report this suggestions / improvements to the devs at the bugtracker... ;)
*gone*

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Problems when changing data directory

Postby RealRancor » Wed Mar 06, 2013 12:14 am

Back to your original problem:

As you can read in this part of your logfile:

Code: Select all

[Wed Feb 27 18:04:04 2013] [error] [client 192.168.2.109] PHP Warning:  fopen(/home/serverData/ownCloud/data/owncloud.log): failed to open stream: Permission denied in /var/www/owncloud/lib/log/owncloud.php on line 50, referer: http://qnx-server/owncloud/


your user www-data has no permissions to open / write to this logfile. You have not posted the permissions of the /home and /home/serverData/ folders and the owncloud.db file so this is just a short hint:

1. install the sqlite3 command line tool
2. Become the www-data user: su - www-data
3. Open the OC db: sqlite3 /home/serverData/ownCloud/data/owncloud.db

If you're not able to open the database via the command line tool you have to check the permissions of the whole /home/serverData/ownCloud/data/ path.

If you're able to open the database via the command line tool this could be possible:

1. Is apache running in a chroot?
2. SELinux activated?
3. open_basedir and/or safe_mode enabled (If this is the case this should be logged into the error log of php)
*gone*

ysharoiko
Newbie
Posts: 2
Joined: Fri May 15, 2015 2:55 pm
ownCloud version: 8.0.2
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5.5

Re: Problems when changing data directory

Postby ysharoiko » Fri May 15, 2015 3:18 pm

I have a similar problem. Maybe you could can you help me with such an issue?

I would like to use ownCloud in this way:

users in office work with share windows folder (via SMB) but when they are off to go they can work with all files with https://<ip address>/owncloud/

I have datastore in network with 192.168.1.8 address on which users work daytime
I have mounted it to /var/www/owncloud/data/user/files
But when i access with https://<ip address>/owncloud/
i can't see any files that users created without owncloud.

My permitions are ok
root@doku:/var/www/owncloud/data/cardio# ls -la
drwxr-xr-x 1 www-data www-data 0 Май 15 16:10 files

root@doku:/var/www/owncloud/data/cardio/files# ls -la
итого 5
drwxr-xr-x 1 www-data www-data 0 Май 15 16:10 .
drwxr-xr-x 5 www-data www-data 4096 Май 15 15:33 ..
-rwxr-xr-x 0 www-data www-data 740 Май 15 16:10 kmnvws.xml
drwxr-xr-x 0 www-data www-data 0 Янв 20 13:26 Registratura


When i upload it with owncloud page it's ok and can be seen by everyone.

What is wrong? Or is it impossible to glue network share and owncloud?

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Problems when changing data directory

Postby tflidd » Fri May 15, 2015 3:52 pm

@ysharoiko: Please do not hijack other postings that are not directly related to your problem. I already split your topic from the FAQ-section: viewtopic.php?f=31&t=28299


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: No registered users and 2 guests