[How-To] ownCloud using NGINX, PHP-FPM, and MySQL

ziel

Cadet
Joined
Aug 5, 2016
Messages
4
Hi Joshua,
after install in OC admin menu i found warning:
No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
Please double check the installation guides ↗, and check for any errors or warnings in the log

what could be wrong?
during instalation i did your workaround with APCu
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
what was the workaround you used? installing APCu from ports or not enabling it?
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
I think the issue is related to the jail template configuration which doesn't necessarely point to the same repository.
such as the following which may not be the same of location due to Freenas update over time.

http://download.freenas.org/latest/RELEASE/x64/jails
 

ziel

Cadet
Joined
Aug 5, 2016
Messages
4
Thanks for quick response!

this is what i had done:
You need to do the following to get it to work.
* edit /usr/ports/devel/pecl-APCu/Makefile and change 'PORTVERSION' to 5.1.5; comment out "IGNORE_WITH_PHP= 70"
make makesum config-recursive install clean -C /usr/ports/devel/pecl-APCu

after jail restart i can't connect to my owncloud.. nginx returns "502 Bad Gateway".
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks for quick response!

this is what i had done:


after jail restart i can't connect to my owncloud.. nginx returns "502 Bad Gateway".
can you confirm is php is running? 'service php-fpm status'
 

ziel

Cadet
Joined
Aug 5, 2016
Messages
4
php is running:
root@owncloud:/ # service php-fpm status
php_fpm is running as pid 22347.
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
I'd created another thread about cloning snapshots, but thought I'd post an update here too.

I had some free time last night, so decided to create a NextCloud jail following @Joshua's guide, by simply replacing most of the ownCloud references with NextCloud and downloading 9.0.53.

I decided to try and connect to my database and file, although didn't want to break the oC installation, so created new datasets for both and copied the contents acrosss (e.g. ocfiles > ncfiles, ocdb > ncdb)

After fiddling with the permissions on the new datasets, was able to get nC up and running and copying across SSL certificates and fail2ban config seems to have worked too.

Pretty painless, although still not sure which way to jump. Will see how the update to 10 goes for nC before making any decisions....
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
the same error - 502 Bad Gateway
I think this error comes after installing the pecl-imagick pakage.

If you have Python 56 installed, then it is your problem as it would have uninstalled Python 70.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think this error comes after installing the pecl-imagick pakage.

If you have Python 56 installed, then it is your problem as it would have uninstalled Python 70.
yeah if your going to install any pecl extensions, build from ports, since I think they haven't standardized on php70 yet.

also your saying python, but I assume you mean php =P
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
yeah if your going to install any pecl extensions, build from ports, since I think they haven't standardized on php70 yet.

also your saying python, but I assume you mean php =P
Yes, I meant PHP.
 

ArgaWoW

Patron
Joined
Jul 4, 2015
Messages
444
Hi all,
i have set up OwnCloud a long time ago, and every thing runs smooth. The OwnCloud installation is on a another harddrive than my data. Until now i was able to spin down my data drives. But now OwnCloud prevent the spin down of the drives by the cron job i think. Every 15 min. i can see a little access in the report screen for the drives inside freenas gui (see screenshot attached).

Does anyone know what data will be writen from the cron job of OwnCloud to the data drives and how i can fix this issue?

Im running FreeNAS-9.10.1 (d989edd) and owncloud 9.1.0 (stable)

Thanks for any reply and for your help

Arga
 

Attachments

  • Unbenannt.jpg
    Unbenannt.jpg
    33.4 KB · Views: 401

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi all,
i have set up OwnCloud a long time ago, and every thing runs smooth. The OwnCloud installation is on a another harddrive than my data. Until now i was able to spin down my data drives. But now OwnCloud prevent the spin down of the drives by the cron job i think. Every 15 min. i can see a little access in the report screen for the drives inside freenas gui (see screenshot attached).

Does anyone know what data will be writen from the cron job of OwnCloud to the data drives and how i can fix this issue?

Im running FreeNAS-9.10.1 (d989edd) and owncloud 9.1.0 (stable)

Thanks for any reply and for your help

Arga
I know things like the news app, and periodic notifications are handled then. Even if it's not writting anything, and just reading stuff your drives would probably spin up.

You might want to ask on the owncloud forum.
 

ArgaWoW

Patron
Joined
Jul 4, 2015
Messages
444
I know things like the news app, and periodic notifications are handled then. Even if it's not writting anything, and just reading stuff your drives would probably spin up.

You might want to ask on the owncloud forum.
Hi Joshua,

I think the problem will be the logfile. It is actually written inside the data directory. Can you tell me how I can move this logfile to another place please. I have made this change inside the /config/config.php file:
Code:
'logfile' => '/var/log/owncloud.log',


but when I go to /var/log/ there is no ownlcoud.log.

I have made the installation like your tutorial over a year ago. Can you help please?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi Joshua,

I think the problem will be the logfile. It is actually written inside the data directory. Can you tell me how I can move this logfile to another place please. I have made this change inside the /config/config.php file:
Code:
'logfile' => '/var/log/owncloud.log',


but when I go to /var/log/ there is no ownlcoud.log.

I have made the installation like your tutorial over a year ago. Can you help please?
you could probably create a logfile writable by 'www' like so.

install -o www /dev/null /var/log/owncloud.log
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Guys I updated the OC by the first page post and now I'm getting this warning when trying to access inside (http://ip/owncloud) my network and outside of it as well (http://mydomain.com/owncloud):

Code:
<!DOCTYPE html>
<!--[if lte IE 8]><html class="ng-csp ie ie8 lte9 lte8" data-placeholder-focus="false" lang="pt_BR" ><![endif]-->
<!--[if IE 9]><html class="ng-csp ie ie9 lte9" data-placeholder-focus="false" lang="pt_BR" ><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html class="ng-csp" data-placeholder-focus="false" lang="pt_BR" ><!--<![endif]-->
    <head data-requesttoken="">
        <meta charset="utf-8">
        <title>
        ownCloud        </title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="referrer" content="never">
        <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
        <meta name="apple-itunes-app" content="app-id=543672169">
        <meta name="theme-color" content="#1d2d44">
        <link rel="shortcut icon" href="Memcache \OC\Memcache\APCu not available for local cache Is the matching PHP module installed and enabled?


Could someone guide me in the mistake I made?

Thank you
 
Top