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

    Nextcloud Running on Raspian

    Scheduled Pinned Locked Moved IT Discussion
    raspberry pi 3raspiannextcloudnextcloud 11
    39 Posts 6 Posters 8.7k 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.
    • W
      wirestyle22
      last edited by wirestyle22

      It's definitely PHP 7. This is a thing that occurs with the newer versions of NextCloud.

      1 Reply Last reply Reply Quote 1
      • G
        gjacobse
        last edited by

        well now I have a page that looks like this:

        0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

        But I just finished @coliver page and am back to the NextCloud install

        W 1 Reply Last reply Reply Quote 0
        • W
          wirestyle22 @gjacobse
          last edited by wirestyle22

          @gjacobse said in Nextcloud Running on Raspian:

          well now I have a page that looks like this:

          0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

          But I just finished @coliver page and am back to the NextCloud install

          From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

          https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

          T 1 Reply Last reply Reply Quote 1
          • T
            travisdh1 @wirestyle22
            last edited by

            @wirestyle22 said in Nextcloud Running on Raspian:

            @gjacobse said in Nextcloud Running on Raspian:

            well now I have a page that looks like this:

            0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

            But I just finished @coliver page and am back to the NextCloud install

            From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

            https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

            Just off the top of my head

            chown -R apache2:apache2 /var/www/html
            
            G 1 Reply Last reply Reply Quote 0
            • G
              gjacobse @travisdh1
              last edited by

              @travisdh1 said in Nextcloud Running on Raspian:

              @wirestyle22 said in Nextcloud Running on Raspian:

              @gjacobse said in Nextcloud Running on Raspian:

              well now I have a page that looks like this:

              0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

              But I just finished @coliver page and am back to the NextCloud install

              From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

              https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

              Just off the top of my head

              chown -R apache2:apache2 /var/www/html
              
              sudo chown -R apache2:apache2 /var/www/html
              chown: invalid user: ‘apache2:apache2’
              
              T 1 Reply Last reply Reply Quote 0
              • T
                travisdh1 @gjacobse
                last edited by

                @gjacobse said in Nextcloud Running on Raspian:

                @travisdh1 said in Nextcloud Running on Raspian:

                @wirestyle22 said in Nextcloud Running on Raspian:

                @gjacobse said in Nextcloud Running on Raspian:

                well now I have a page that looks like this:

                0_1484169662237_2017-01-11 16_20_46-Nextcloud.png

                But I just finished @coliver page and am back to the NextCloud install

                From memory this is a permissions issue. it's the chmod/chown part of JB's guide I think if you check that out (obviously changing some of the info to match whatever directories you created etc)

                https://mangolassi.it/topic/10963/install-nextcloud-10-x-on-centos-7-minimal

                Just off the top of my head

                chown -R apache2:apache2 /var/www/html
                
                sudo chown -R apache2:apache2 /var/www/html
                chown: invalid user: ‘apache2:apache2’
                

                Must have a different user for the html server than I'm used to on Debian.

                1 Reply Last reply Reply Quote 0
                • G
                  gjacobse
                  last edited by

                  Started from Zero and and going step by step with this new information. It would have taken ME longer to find and remove all the files and folders from Nextcloud,... so starting from a fresh install was easier and faster.

                  Apache2 is running and confirmed. someone want a rematch on AOE II right now.

                  1 Reply Last reply Reply Quote 1
                  • G
                    gjacobse
                    last edited by

                    Okay - got to this stage:

                    Next we’ll test PHP. Run the following command to create a test file:

                    echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
                    

                    and get:

                    pi:~ $ echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
                    -bash: /var/www/html/phpinfo.php: Permission denied
                    
                    pi:~ $ sudo echo "<?php phpinfo();" >> /var/www/html/phpinfo.php
                    -bash: /var/www/html/phpinfo.php: Permission denied
                    

                    trying

                    sudo chmod -R o+rw /var/www
                    

                    That worked.

                    1 Reply Last reply Reply Quote 1
                    • I
                      iroal
                      last edited by

                      Have it good perfomance?

                      Previous versions of Owncloud were very slow in Raspberry.

                      Regards

                      T 1 Reply Last reply Reply Quote 0
                      • W
                        wirestyle22
                        last edited by wirestyle22

                        I'm willing to bet that even with the Raspberry Pi 3 it's still on the slower side. Glad you got it working @gjacobse

                        1 Reply Last reply Reply Quote 1
                        • T
                          travisdh1 @iroal
                          last edited by

                          @iroal said in Nextcloud Running on Raspian:

                          Have it good perfomance?

                          Previous versions of Owncloud were very slow in Raspberry.

                          Regards

                          Good performance != Raspberry Pi, ever.

                          1 Reply Last reply Reply Quote 1
                          • G
                            gjacobse
                            last edited by

                            I had to step back from this last night before unpacking NC and proceeding with the next step(s).

                            Right now I am at the point of doing the Apache Configuration:


                            On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:

                            Alias /nextcloud "/var/www/nextcloud/"
                            
                            <Directory /var/www/nextcloud/>
                              Options +FollowSymlinks
                              AllowOverride All
                            
                             <IfModule mod_dav.c>
                              Dav off
                             </IfModule>
                            
                             SetEnv HOME /var/www/nextcloud
                             SetEnv HTTP_HOME /var/www/nextcloud
                            
                            </Directory>
                            

                            When I try to do this, I get [error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]

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

                              @gjacobse said in Nextcloud Running on Raspian:

                              I had to step back from this last night before unpacking NC and proceeding with the next step(s).

                              Right now I am at the point of doing the Apache Configuration:


                              On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:

                              Alias /nextcloud "/var/www/nextcloud/"
                              
                              <Directory /var/www/nextcloud/>
                                Options +FollowSymlinks
                                AllowOverride All
                              
                               <IfModule mod_dav.c>
                                Dav off
                               </IfModule>
                              
                               SetEnv HOME /var/www/nextcloud
                               SetEnv HTTP_HOME /var/www/nextcloud
                              
                              </Directory>
                              

                              When I try to do this, I get [error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]

                              @gjacobse said in Nextcloud Running on Raspian:

                              I had to step back from this last night before unpacking NC and proceeding with the next step(s).

                              Right now I am at the point of doing the Apache Configuration:


                              On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:

                              Alias /nextcloud "/var/www/nextcloud/"
                              
                              <Directory /var/www/nextcloud/>
                                Options +FollowSymlinks
                                AllowOverride All
                              
                               <IfModule mod_dav.c>
                                Dav off
                               </IfModule>
                              
                               SetEnv HOME /var/www/nextcloud
                               SetEnv HTTP_HOME /var/www/nextcloud
                              
                              </Directory>
                              

                              When I try to do this, I get [error writing /etc/apache2/site-avialable/nextcloud.conf: no such file or directory]

                              Make sure it's sites-available ... ?

                              G 1 Reply Last reply Reply Quote 1
                              • G
                                gjacobse
                                last edited by

                                ran this thinking it would allow me to create the file

                                sudo chmod -R o+rw /etc/apache2/sites-available/
                                

                                same issue.. unable to create the file

                                1 Reply Last reply Reply Quote 0
                                • G
                                  gjacobse @dafyre
                                  last edited by

                                  @dafyre said in Nextcloud Running on Raspian:

                                  Alias /nextcloud "/var/www/nextcloud/"

                                  <Directory /var/www/nextcloud/>
                                  Options +FollowSymlinks
                                  AllowOverride All

                                  <IfModule mod_dav.c>
                                  Dav off
                                  </IfModule>

                                  SetEnv HOME /var/www/nextcloud
                                  SetEnv HTTP_HOME /var/www/nextcloud

                                  </Directory>

                                  Ah - thanks - didn't catch that.

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    gjacobse
                                    last edited by

                                    Looks like I missed something...

                                    0_1484231937878_2017-01-12 09_38_21-Nextcloud.png

                                    Starting with a simple reboot - then will step backwards

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      travisdh1 @gjacobse
                                      last edited by

                                      @gjacobse said in Nextcloud Running on Raspian:

                                      Looks like I missed something...

                                      0_1484231937878_2017-01-12 09_38_21-Nextcloud.png

                                      Starting with a simple reboot - then will step backwards

                                      Might have to manually install all of those, the meta-package may not be working in Rasbian 😕

                                      G 1 Reply Last reply Reply Quote 0
                                      • G
                                        gjacobse @travisdh1
                                        last edited by

                                        @travisdh1

                                        That is what I am doing now. Thanks to @coliver command:

                                        apt-cache search php
                                        

                                        I see the full context of the module.

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          gjacobse
                                          last edited by

                                          0_1484232978557_2017-01-12 09_56_03-Nextcloud.png

                                          Boom!

                                          1 Reply Last reply Reply Quote 1
                                          • G
                                            gjacobse
                                            last edited by

                                            Think about learning is that you chip away at it,... one problem at a time.

                                            getting a DB error now,

                                            Error while trying to create admin user:
                                            Failed to connect to the database: An ex exception occurred in driver:
                                            SQLSTATE[HY000][2002] Connection refused
                                            

                                            Not sure if I should be using MariaDB or PHP;

                                            Only MySQL/MariaDB is available. Install and activate additional PHP modules to choose other database types
                                            

                                            Probably something rather simple like I need to add the user to the DB or get the correct user/password combo.

                                            coliverC 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post