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

    Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi

    Scheduled Pinned Locked Moved IT Discussion
    how toguidereal instructionsnextcloudnextcloud 11centoscentos 7php 7remi
    81 Posts 10 Posters 28.9k Views
    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 @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
                        • dafyreD
                          dafyre
                          last edited by dafyre

                          Updated instructions work for me.

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

                            @dafyre said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                            Works for me.

                            instructions were updated, so it should.

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

                              @JaredBusch said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                              @dafyre said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                              Works for me.

                              instructions were updated, so it should.

                              Shoudl have clarified, lol. I was using the updated instructions.

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

                                I tweaked the SSL config section as well and tested again.

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

                                  @JaredBusch

                                  Hehe no surprise there.

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

                                    Hi,

                                    I can confirm it is working, and it is alive ...

                                    Thanks for the fix, and sorry for the delay.

                                    however If i can nitpick, I am unable to enable memory cache and file locking.

                                    0_1489785287758_2017-03-17 23_09_34-2008_R2_SP1_113 on localhost.localdomain.png

                                    Look at the screenshots and I dont know really where to put those lines:

                                    'memcache.locking' => '\OC\Memcache\Redis',
                                    'memcache.local' => '\OC\Memcache\Redis',
                                    'redis' => array(
                                    'host' => 'localhost',
                                    'port' => 6379,
                                    ),

                                    I tried putting them in 3 places, yet everytime it failed after saving and restarting the server, the webserver no longer boots up.

                                    I know those are more of an optional stuff, but if you have quick fix or suggestion, I will be much in your debt.

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

                                      @msff-amman-Itofficer it goes anywhere.

                                      [root@nctest ~]# cat /var/www/html/nextcloud/config/config.php 
                                      <?php
                                      $CONFIG = array (
                                        'instanceid' => 'occ4c7flycgy',
                                        'passwordsalt' => 'IUShFaONjlpGP+xy6WHG3SkZmXw1u/',
                                        'secret' => 'SLC9EUO468SLissy5w4NnqYbKHWZyZ7Tj4zAjco/WCp2IoBr',
                                        'trusted_domains' => 
                                        array (
                                          0 => 'nctest.bundystl.com',
                                        ),
                                        'datadirectory' => '/var/www/html/nextcloud/data',
                                        'overwrite.cli.url' => 'http://nctest.bundystl.com',
                                        'htaccess.RewriteBase' => '/',
                                        'dbtype' => 'mysql',
                                        'version' => '11.0.2.7',
                                        'dbname' => 'nextcloud',
                                        'dbhost' => 'localhost',
                                        'dbport' => '',
                                        'dbtableprefix' => 'oc_',
                                        'dbuser' => 'ncuser',
                                        'dbpassword' => 'ncuserpassword',
                                        'logtimezone' => 'UTC',
                                        'installed' => true,
                                        'memcache.locking' => '\OC\Memcache\Redis',
                                        'memcache.local' => '\OC\Memcache\Redis',
                                          'redis' => array(
                                          'host' => 'localhost',
                                          'port' => 6379,
                                        ),
                                      );
                                      
                                      Emad RE 1 Reply Last reply Reply Quote 0
                                      • Emad RE
                                        Emad R @JaredBusch
                                        last edited by Emad R

                                        @JaredBusch

                                        I simply didn't copy the
                                        ),
                                        with the rest of the commands.
                                        cause I already saw it in the file, but after a second look of your config, I realized it was in the file as
                                        );

                                        0_1489785826566_maxresdefault.jpg

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

                                          @msff-amman-Itofficer

                                          Sorry, all working 100%

                                          Thank you very much

                                          I should sleep now, its way too late thus making those small mistakes

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            theozsnowman
                                            last edited by

                                            Im wondering if anyone can help i have followed this great guide but now find that i cannot login to the admin of my nextcloud and im getting repeated errors of Uncaught ReferenceError: OCA is not defined

                                            I am running Nexcloud 12.0.3

                                            can anyone advise please?

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