Owncloud external storage can't mount FTP or SMB....

Status
Not open for further replies.

Elo

Contributor
Joined
Mar 11, 2012
Messages
122
I have instaled owncloud in a jail after the instructions given by Joshua ( https://forums.freenas.org/index.php?threads/how-to-owncloud-using-nginx-php-fpm-and-mysql.17786/ ) and SSL/HTTPS as explained by cyberjock in the same thread. I have updated Owncloud to the latest available version (8.2.9) and I am runing FreeNAS-9.10.1-U4 (I have not managed to update to 9.10.2 as I got all kinds of bugs like many others). I have been runing FreeNas for several years with extremely little problems.
My challenge is as follows: I have a large data base which is mounted outside the Jail that I would like to be accessible from Owncloud enabling the possibility to allow download to users outside my LAN. I have understood from several postings in the Forum that the best way to do this is to mount it as external storage either as FTP or SMB. I am not able to achive this as the following notes are present on the OwnCloud admin pages:

Note: The FTP support in PHP is not enabled or installed. Mounting of FTP is not possible. Please ask your system administrator to install it.
Note: "smbclient" is not installed. Mounting of SMB / CIFS, SMB / CIFS using OC login is not possible. Please ask your system administrator to install it.


have made sure that the following is in the php.ini file:

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as file
; http://php.net/allow-url-include
allow_url_include = On


Does anyone have any tips?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
How is version 8.2.9 the latest available version of ownCloud? It looks to me 9.1.3 is.

You need to install php70-ftp for ftp mounting and/or pecl-smbclient for samba mounting.
Since pecl-smbclient is only built for php56 you will need to build it yourself from ports or downgrade all of your php packages to php56.
Code:
cd /usr/ports/net/pecl-smbclient && make config-recursive install


Then make sure to restart php-fpm
 

Elo

Contributor
Joined
Mar 11, 2012
Messages
122
Thank you for your promt answer...

For the update I used:

Inside the jail as root run the following commands:

# service nginx stop
# cd /tmp
# fetch http://download.owncloud.org/community/owncloud-x.x.x.tar.bz2
# tar jxvf owncloud-*.tar.bz2 -C /usr/local/www
# rm owncloud-*.tar.bz2
# chown -R www:www /usr/local/www/owncloud
# service nginx start


I guess I have not downloaded the latest version ...

Can you see another more elegant way of achiving what I am looking for?
 

Elo

Contributor
Joined
Mar 11, 2012
Messages
122
And learning the hard way as it was not possible to jump directly to the latest version and I did not manage to go back to the previous version.. backup corrupt s........ Seems I have to reinstal

UPDATE: It is nessesary to delete everything in the owncload instal directory except /data/ and /config/. When I did that and reupdated the correct version the system works again .... In fact I think this should be included in the upodate procedure documneted by cyberjock as the owncload documnetation advice to do this
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@Elo

Regarding the update steps you posted...
  • There is no need to stop/start nginx to do owncloud updates.
  • You might know this, but the fetch command doesn't have a real version specified.
Also, you don't need to think about the 'data' folder, if you followed my guide you shouldn't be using that folder for owncloud's data. You should be using a location outside of the web-accessible directory (for security reasons, and so you can have this on a dataset you regularly snapshot/backup).

I'm not sure what 'update procedure' you are referring to. I listed steps here.
https://forums.freenas.org/index.ph...x-php-fpm-and-mysql.17786/page-47#post-257456
 
Status
Not open for further replies.
Top