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

    Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi

    IT Discussion
    how to guide real instructions nextcloud nextcloud 11 centos centos 7 php 7 remi
    10
    81
    27.7k
    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.
    • Emad RE
      Emad R @JaredBusch
      last edited by

      @JaredBusch

      I think its something related to HTTPS at this moment.

      1_1489611100139_2017-03-15 22_49_40-77.245.14.252 - vSphere Client.png 0_1489611100138_2017-03-15 22_49_23-77.245.14.252 - vSphere Client.png

      JaredBuschJ 2 Replies Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch @Emad R
        last edited by

        @msff-amman-Itofficer said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

        @JaredBusch

        I think its something related to HTTPS at this moment.

        that is way beyond the first part of the guide.

        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch
          last edited by

          If you got to the HTTPS setup, then you also did the section to complete the setup first? So this means it should have already been working.

          But that is not the case because there is no log file.

          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @Emad R
            last edited by JaredBusch

            @msff-amman-Itofficer Your SELinux contexts are wrong.

            The config, data, and apps direcotry need RW access

            httpd_sys_rw_content_t

            Emad RE 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch
              last edited by

              Guide updated to add allow for Redis network connect from HTTPD

              setsebool -P httpd_can_network_connect 1
              
              1 Reply Last reply Reply Quote 1
              • Emad RE
                Emad R @JaredBusch
                last edited by

                @JaredBusch

                But i disabled selinux and the same issue occurred...

                I tried more with HTTPS self signed and also enabled SElinux and did your desired changes but same thing.

                I highly believe that if you start from fresh centos and did the above the same scenario will occur.

                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @Emad R
                  last edited by

                  @msff-amman-Itofficer while that is of course possible those post instructions were posted after I had done a new install to verify my instructions from the first install so while possible I find it unlikely. Also I've already shown that you've got SE Lenix settings incorrect so you might also have other mistakes. Why don't you start over?

                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch
                    last edited by

                    @msff-amman-Itofficer I am sitting down to lunch and spinning up a new instance on Vultr to test.

                    A 2 Replies Last reply Reply Quote 0
                    • A
                      Alex Sage @JaredBusch
                      last edited by

                      @JaredBusch I'll do the same right now 🙂

                      1 Reply Last reply Reply Quote 0
                      • A
                        Alex Sage @JaredBusch
                        last edited by

                        @JaredBusch I get the same error 403 Forbidden

                        Emad RE 1 Reply Last reply Reply Quote 1
                        • Emad RE
                          Emad R @Alex Sage
                          last edited by Emad R

                          @aaronstuder @JaredBusch

                          Looks like it is time to Q.A all the other articles at this site and start testing them as well !!!

                          I'm joking, I love this site/forum and the users that are interactive and supportive.

                          All the thanks to you Jared for the huge effort, and putting this guide/article that got me motivated to deploy and test, I'm certain you will find out what is wrong and it will something silly.

                          1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch
                            last edited by JaredBusch

                            ok just completed and http://nctest.bundystl.com/nextcloud is forbidden but the http://nctest.bundystl.com serves.

                            log has this.

                            [Thu Mar 16 14:11:38.044903 2017] [autoindex:error] [pid 29289] [client 47.50.171.66:58578] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
                            

                            Testing shows the above is generated by browsing to the root (no /nextcloud) so we can ignore.

                            This is then the problem.

                            [Thu Mar 16 14:11:42.891781 2017] [authz_core:error] [pid 29289] [client 47.50.171.66:58578] AH01630: client denied by server configuration: /usr/share/nextcloud
                            

                            Let's look at the nextcloud.conf vhost file that was downloaded.

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

                              @JaredBusch said in [Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1

                              Let's look at the nextcloud.conf vhost file that was downloaded.

                              Yup, that is the problem.

                              ProxyPassMatch ^/nextcloud/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/usr/share/nextcloud/$1
                              
                              Alias /nextcloud "/usr/share/nextcloud/"
                              <Directory "/usr/share/nextcloud">
                                Options +FollowSymLinks
                                AllowOverride All
                                Require all granted
                              
                                <IfModule mod_dav.c>
                                      Dav off
                                </IfModule>
                              
                                SetEnv HOME /usr/share/nextcloud
                                SetEnv HTTP_HOME /usr/share/nextcloud
                              </Directory>
                              
                              <Directory "/usr/share/nextcloud/data/">
                                # just in case if .htaccess gets disabled
                                  Require all denied
                              </Directory>
                              

                              Let me go look at the system I installed a couple days before I made the guide and see what is in that one.

                              1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch
                                last edited by JaredBusch

                                unrelated, but the redis memcache and locking stuff cannot be set where currently specifed. I'll fix that once this is resolved.

                                1 Reply Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch
                                  last edited by gjacobse

                                  they f***ing broke it..

                                  https://github.com/nextcloud/server-packages/tree/master/centos

                                  0_1489692251950_upload-326adcd4-64d0-4346-92c0-6681545da7cc

                                  Emad RE 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch
                                    last edited by

                                    but the official manual install guide (ubuntu example) specifically states to use the webroot still.
                                    https://docs.nextcloud.com/server/11/admin_manual/installation/source_installation.html#example-installation-on-ubuntu-16-04-lts-server

                                    1 Reply Last reply Reply Quote 0
                                    • JaredBuschJ
                                      JaredBusch
                                      last edited by

                                      Opened an issue on github and posted on the NC forums. in the mean time, give me a few and I will get a valid file setup.

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

                                        This is the original nextcloud.conf file.
                                        3 days ago he added some proxy info to it. that caused the service unavailable error. 1 day ago he changed the damned directory. that caused the permissions error.

                                        wget -O /etc/httpd/conf.d/nextcloud.conf https://raw.githubusercontent.com/nextcloud/server-packages/18f3837752589739b53bc62705c45a54faddbb4a/centos/nextcloud.conf

                                        1 Reply Last reply Reply Quote 0
                                        • JaredBuschJ
                                          JaredBusch
                                          last edited by

                                          @msff-amman-Itofficer instructions updated and pictures made with the initial web gui setup also.

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

                                            on a side note, these instructions work without ever disabling SELinux. Not even during install.

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