Fedora 31 Server Edition filesystem permissions changed to 777
-
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
Any thoughts about using Nginx rather than Apache?
I would stick to Apache. Use what the devs use. Nginx is great for the reverse proxy in front of it all, if you want.
-
@JaredBusch said in Fedora 31 Server Edition filesystem permissions changed to 777:
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
Any thoughts about using Nginx rather than Apache?
Nextcloud still defaults their builds to Apache. so i use Apache.
That said, all of my instances are sitting behind a separate Nginx Reverse Proxy.
Same here.
-
Is it possible that Nextcloud has to be installed before creating certificates?
Because, when I installed Nextcloud 11(?) on Fedora Server 26 I did first installing everything, apache, php-fpm, mysql, nextcloud followed by created self-signed certificates. After that, I did creating certificates from Letsencrypt with certbot but this happened not with Fedora Server 26. It happened later.
Fedora Server 31 is the first installation after all releases that I have to reinstall (did just updating between all releases) and the one and only thing I did in a different way was the order of creating certificates and installing Nextcloud. I did creating of certificates before installing Nextcloud. -
@JaredBusch I never understood why to use Nginx as reverse proxy What's the meaning with it?
-
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
@JaredBusch I never understood why to use Nginx as reverse proxy What's the meaning with it?
A reverse proxy allows you to have multiple websites on the same port behind 1 IP address. This also generally means multiple servers behind the proxy as well - as if all websites were on a single http service, that service could likely determine itself which webservice to give the packets to.
-
@Dashrender said in Fedora 31 Server Edition filesystem permissions changed to 777:
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
@JaredBusch I never understood why to use Nginx as reverse proxy What's the meaning with it?
A reverse proxy allows you to have multiple websites on the same port behind 1 IP address. This also generally means multiple servers behind the proxy as well - as if all websites were on a single http service, that service could likely determine itself which webservice to give the packets to.
This is correct. Specifically, I have a server in a colo. I have a single IP available to me.
So ports 80/443 on that IP are directed to the Nginx Reverse Proxy. Nginx handles sending the inbound FQDN to the right backend servers.
https://domain.com = 12.45.67.89 https://nc.domain.com = 12.45.67.89 https://blog.domain.com = 12.45.67.89
How do you make all of that work? With a Reverse Proxy. Nginx is much better at that than Apache.
Nginx is listening on 12.45.67.89:80 and 12.45.67.89:443
When something comes in, it reads the FQDN out of the HTTP headers and sends it on to the correct backend IP.domain.com = 10.1.2.3 nc.domain.com = 10.1.2.4 blog.domain.com = 10.1.2.5
-
THANK YOU @JaredBusch and @Dashrender for this good explanation. That was the easiest understandable explanation I have heard for a long time.
I'll try my luck again. Thanks again guys.
-
Don't know if it was said, but a reverse proxy is also a front end that handles your SSL in many cases.
-
Finally, I got it! Nextcloud is up and running. It was litt of a mess.
1st of all the error
[ssl:warn] AH01909: woti.dedyn.io:443:0 server certificate does NOT include an ID which matches the server name
was hard to figure out, but finally I found it in a .json file from Letsencrypt and as well in the localhost.crt.
When I installed Fedora I choosed woti as hostname. But just woti does not work as hostname while creating Letsencrypt certs. It has to be woti.domain.xxx. So I used my domain but I did not changed my hostname while creating my Letsencrypt certs. That's why I got an ID which not matched the servername.
I needed to create new certs.2nd suddenly comes up a SELinux error about no access to /nextcloud/data. I needed to "Allow httpd to unified"
3th the tutorial I followed https://linuxize.com/post/secure-apache-with-let-s-encrypt-on-centos-8/ gaves me just redirection errors. I do not why. I had to use my old config files from c-rieger.com. I'll try again later.
Maybe I can post my conf files her and you guys can take a look?4th I used APCu as memcache before. Now I had installed Redis but I did not changed it in the Nextcloud config file. That was the reason for internal server error. Redis gives me some warnings in the redis.log. I need to check this.
-
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
Finally, I got it! Nextcloud is up and running. It was litt of a mess.
NC 18 just released.
-
Yeah I know. Next step
Btw. @scottalanmiller I saw you are using fail2ban in your script.
But is there no configuration necassery?
You're just using "systemctl enable fail2ban" and "systemctl start fail2ban" or is it obsolete to use fail2ban? -
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
But is there no configuration necassery?
You're just using "systemctl enable fail2ban" and "systemctl start fail2ban" or is it obsolete to use fail2ban?For basic SSH protection, yes, that simple.
-
@scottalanmiller Oh yeah I thought it was meant for Nextcloud...
-
Someone have tried the new Nextcloud 18 with OnlyOffice?
I get error messages:
Community document server is not supported for this instance, please setup and configure an external document server
Getting those messages
-
@Woti the error is explained, you need an external server with the community version.
-
@DustinB3403 said in Fedora 31 Server Edition filesystem permissions changed to 777:
@Woti the error is explained, you need an external server with the community version.
Kind of undermines their entire post stating the opposite. Maybe Nextcloud Hub isn't made yet and they are talking about something happening "someday", not something relevant today?
-
@DustinB3403 as much as I understand it, should it be enough with activating OnlyOffice and community document server.
For someone it is working, for someone else it's not working
Description
*The community document server is designed to make it easy to get OnlyOffice running in a Nextcloud instance without the need to setup an external document server, the community document server does not support all features of the official OnlyOffice document server and does not provide the same performance and scalability.If you are setting up a larger instance of require the additional performance, please see https://onlyoffice.com for options for getting the official document server.
The community document server will automatically be configured if no other document server is configured for OnlyOffice.*
-
Both OnlyOffice and Community Document comes out with new updates and now it works out-of-the-box
-
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
Both OnlyOffice and Community Document comes out with new updates and now it works out-of-the-box
That'st he theory, but it doesn't seem to happen.
-
@Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:
Both OnlyOffice and Community Document comes out with new updates and now it works out-of-the-box
No apps able to load here, maybe their servers are overloaded?