Installing Nextcloud on Ubuntu 16.04 LTS with Redis, APCu, SSL & Apache

(NNextcloudde) #42

ok I should have understood.
One question: the apache2 log I find it in / var / log / apache2, right? Because what is there is very long … I would not go wrong! While that of Nextcloud I could not find it …
Forgive me and be patient with me! :blush:

(Jason Bayton) #43



(NNextcloudde) #44

Thank you!
Once again I apologize: I was not able to paste all the log here … I’ll send you a link …
I did well? See something strange?
apache2 log
Nextcloud log

(Jason Bayton) #45

The Apache log is called access. I need error please.

(NNextcloudde) #46

Sorry… :blush::blush::blush:
Error log

(Jason Bayton) #47

OK thanks, do you have the one that doesn’t end in a number?

(NNextcloudde) #48

Of course, here it is:

Error log

(Jason Bayton) #49

Ok so I see a couple of errors but nothing that immediately jumps at me. Can you restart Apache, replicate the issue a few times and then re-submit the error.log please?

(NNextcloudde) #50

Good morning Jason!
Thank you so much for this first glance.
Of course I will, I hope to succeed today.
Thanks again and have a nice day!

(NNextcloudde) #51

Good morning Jason :slight_smile:
So I tried again and here is the new error log:
error log new
One thing: before I could access my Nextcloud from the web while not being able to make any changes, today, after configuring redis, I could not even see the initial screen of Nextcloud, while not giving me any error …

(Jason Bayton) #52

Sorry for the delay, I didn’t see a notification you’d responded!
I checked your error, and it all seems to point back to Redis erroring. Are you able to see if it’s running?

sudo service redis status

Also validate you followed that part of my guide correctly please?

Not being able to change things (files & folders?) sounds like a permissions issue. Who owns your Nextcloud install directory?

sudo ls -l /var/www/html/...

And your data directory?

sudo ls -l /path/to/data/

(NNextcloudde) #53

Hi Jason,
no problem and thanks again for your patience! :slight_smile:
So yes, I followed your guide faithfully.

Irisultati of the commands you told me to do, I do not know how to show them: the fourm does not make me send posts with links … :frowning:

(Jason Bayton) #54

Sorry about that, I’ve adjusted your account to theoretically allow links.

You need command line access to your server, then you can run those commands.

sudo ls -l /var/www/html
sudo ls -l /var/www/html/nextcloud

sudo ls -l /var/www/html/nextcloud/data/

That’ll allow me to check the permissions on your install.

(NNextcloudde) #55

No problem! :slight_smile:
So, here are the results:

sudo ls -l /var/www/html

sudo ls -l /var/www/html/nextcloud

sudo service redis status

sudo ls -l /home/archivio/nextcloud/data/Orestis

(Jason Bayton) #56

Aside from it not necessarily being recommended you put anything under home that looks OK. So beyond the redis errors, were you seeing any others?

(NNextcloudde) #57

Hi Jason, I did not understand: should I move all of NExtcloud (the one in / var / www / html / nextcloud) to the home folder?
Then, for the rest, I do not seem to have seen other errors.

(Jason Bayton) #58

No, don’t move anything to the home folder.
At this point without seeing your environment first hand I’m not sure what’s wrong, sorry.

You could maybe swap redis for aPCU in your config.php file and see if that resolves the black page, but that doesn’t fix redis itself.

(NNextcloudde) #59

Thank you very much and really for the patience you had! :slight_smile:
Yes, with APCu it works well, too bad that it does not have the same performance as Redis, but, in fact, it’s not a big deal in the end.
Thanks again and I wish you a good job! :slight_smile:


(Jason Bayton) #60

Keep an eye on your redis logs, and perhaps it’ll become clear why redis is bombing out, at least you’ve a working site for now :+1:

(NNextcloudde) #61

Without a doubt, in the meantime I can work a little better! :+1:
Who knows what I will have combined, so as not to make Redis work!:joy:
Thanks again and happy Sunday!:grinning: