ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora 31 Server Edition filesystem permissions changed to 777

    IT Discussion
    7
    63
    4.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch @Woti
      last edited by

      @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.

      scottalanmillerS W 2 Replies Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller @Woti
        last edited by

        @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.

        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller @JaredBusch
          last edited by

          @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.

          1 Reply Last reply Reply Quote 1
          • W
            Woti
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • W
              Woti @JaredBusch
              last edited by

              @JaredBusch I never understood why to use Nginx as reverse proxy 😞 What's the meaning with it?

              DashrenderD 1 Reply Last reply Reply Quote 0
              • DashrenderD
                Dashrender @Woti
                last edited by

                @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.

                JaredBuschJ 1 Reply Last reply Reply Quote 1
                • JaredBuschJ
                  JaredBusch @Dashrender
                  last edited by JaredBusch

                  @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
                  
                  1 Reply Last reply Reply Quote 1
                  • W
                    Woti
                    last edited by Woti

                    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.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Don't know if it was said, but a reverse proxy is also a front end that handles your SSL in many cases.

                      1 Reply Last reply Reply Quote 1
                      • W
                        Woti
                        last edited by

                        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 namewas 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.

                        scottalanmillerS 1 Reply Last reply Reply Quote 2
                        • scottalanmillerS
                          scottalanmiller @Woti
                          last edited by

                          @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.

                          1 Reply Last reply Reply Quote 2
                          • W
                            Woti
                            last edited by

                            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?

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @Woti
                              last edited by

                              @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.

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                Woti @scottalanmiller
                                last edited by

                                @scottalanmiller Oh yeah I thought it was meant for Nextcloud...

                                1 Reply Last reply Reply Quote 0
                                • W
                                  Woti
                                  last edited by Woti

                                  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
                                  access_log_2.png

                                  DustinB3403D 1 Reply Last reply Reply Quote 0
                                  • DustinB3403D
                                    DustinB3403 @Woti
                                    last edited by

                                    @Woti the error is explained, you need an external server with the community version.

                                    scottalanmillerS W 2 Replies Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @DustinB3403
                                      last edited by

                                      @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?

                                      1 Reply Last reply Reply Quote 1
                                      • W
                                        Woti @DustinB3403
                                        last edited by

                                        @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.*

                                        1 Reply Last reply Reply Quote 1
                                        • W
                                          Woti
                                          last edited by

                                          Both OnlyOffice and Community Document comes out with new updates and now it works out-of-the-box 🙂

                                          scottalanmillerS 2 Replies Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @Woti
                                            last edited by

                                            @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.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post