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

    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
    20231
    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.
    • JaredBusch
      JaredBusch last edited by

      If I have time today, I will do this again and get some screenshots of the browser wizard filled out with the examples as listed above.

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

        @JaredBusch I am thinking about scripting it out, unless you already have started on it?

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

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

          @JaredBusch I am thinking about scripting it out, unless you already have started on it?

          There is no point in something like that. If you want an invisible install, use the official appliance.
          https://nextcloud.com/install/#instructions-server
          https://www.techandme.se/nextcloud-vm/

          Guides like this are for education as well as to provide clear instructions for a manual setup.

          Once I spend a few minutes figuring out the proper sed statements, this entire thing can be concatenated into a one liner with ; separators. That is not the point.

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

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

            There is no point in something like that. If you want an invisible install, use the official appliance.

            I could, but I trust you, and I have no idea what is in the official appliance

            Also it runs on Ubuntu, and I like Cent OS since I am studying for my RHCSA.

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

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

              @JaredBusch I am thinking about scripting it out, unless you already have started on it?

              Going to Ansible or something like that is like a scripted install, but more automated and, if created idempotently, can be used to enforce consistency down the road. If you were to take the time to script the install here, it's worth considering moving to that approach. No need for an infrastructure to do that, you can just store an Ansible playbook on GIT or similar (there is free hosting out there for that) then just pull it from there.

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

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

                @JaredBusch I'll be texting in a few hours 🙂

                Hopefully not while driving 😉

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

                  @scottalanmiller hey it was 4AM lol

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

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

                    @scottalanmiller hey it was 4AM lol

                    Way too late to be texting then 😉

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

                      1_1489607043027_2017-03-15 21_43_30-77.245.14.252 - vSphere Client.png 0_1489607043026_2017-03-15 21_43_42-77.245.14.252 - vSphere Client.png

                      Hi,

                      I did the above steps starting from Centos 7 1611 minimal updated.

                      Got the above results ... 😞

                      I tried disabling selinux
                      Changing permissions to 0777 on /var/www/html/nextcloud
                      disabling the firewalld
                      same results

                      I made sure that I am doing everything as above

                      Thank you for your hard work, and guide. I prefer using it cause your are using PHP7 unlike the rest.

                      A JaredBusch 2 Replies Last reply Reply Quote 0
                      • scottalanmiller
                        scottalanmiller last edited by

                        Do a netstat -tulpn to see what it is listening for.

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

                          @msff-amman-Itofficer also double check the firewall 😉

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

                            @msff-amman-Itofficer at what point in the guide are you?

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

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

                              @msff-amman-Itofficer also double check the firewall 😉

                              The forbidden error means that the firewall is open.

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

                                The default log file is nextcloud.log located in /var/www/html/nextcloud/data.

                                tail /var/www/html/nextcloud/data/nextcloud.log
                                
                                Emad R 1 Reply Last reply Reply Quote 0
                                • JaredBusch
                                  JaredBusch last edited by JaredBusch

                                  Here is what my systemlooks like:

                                  ls -lZ /var/www/html
                                  drwxr-xr-x. root apache unconfined_u:object_r:httpd_sys_content_t:s0 nextcloud
                                  
                                  ls -lZ /var/www/html/nextcloud/
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 3rdparty
                                  drwxr-x---. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 apps
                                  drwxr-x---. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 assets
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 AUTHORS
                                  drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 config
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 console.php
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 core
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 cron.php
                                  lrwxrwxrwx. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 data -> /home/nc_data
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 db_structure.xml
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 etc
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 index.html
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 index.php
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 l10n
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 lib
                                  -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 occ
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 ocs
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 ocs-provider
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 public.php
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 remote.php
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 resources
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 robots.txt
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 settings
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 status.php
                                  drwxr-x---. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 themes
                                  drwxr-x---. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 updater
                                  -rw-r-----. root   apache unconfined_u:object_r:httpd_sys_content_t:s0 version.php
                                  

                                  Since I made a symlink to my data directory I had to deviate a bit from the guide personally.

                                  ls -lZ /home/
                                  drwxrwx---. root apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 nc_data
                                  
                                  ls -lZ /home/nc_data/
                                  drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 appdata_ocuy4ccap2ee
                                  drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 files_external
                                  -rw-r--r--. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 index.html
                                  drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 jbusch
                                  -rw-r-----. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 nextcloud.log
                                  -rw-r--r--. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 themedinstancelogo
                                  
                                  Emad R 1 Reply Last reply Reply Quote 0
                                  • Emad R
                                    Emad R @JaredBusch last edited by

                                    @JaredBusch @scottalanmiller

                                    0_1489610289562_2017-03-15 22_37_47-77.245.14.252 - vSphere Client.png

                                    Log have not been created

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

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

                                      ide are you?

                                      Finished it completely.

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

                                        @JaredBusch

                                        Thanks this will help, will give it a detailed look but since its nearing night time where I live, I might try that tomorrow.

                                        1 Reply Last reply Reply Quote 0
                                        • JaredBusch
                                          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 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                          ide are you?

                                          Finished it completely without any errors.

                                          Obviously not. List out our directory structure as I showed and compare what your permissions look like to what I listed

                                          Emad R 1 Reply Last reply Reply Quote 0
                                          • Emad R
                                            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

                                            JaredBusch 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post