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.8k 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.
    • 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.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    coliver @gjacobse
                    last edited by

                    @gjacobse said in Nextcloud Running on Raspian:

                    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.

                    PHP is a web display language so the choice is just MariaDB. I think you can use PostgreSQL as well.

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

                      @coliver said in Nextcloud Running on Raspian:

                      @gjacobse said in Nextcloud Running on Raspian:

                      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.

                      PHP is a web display language so the choice is just MariaDB. I think you can use PostgreSQL as well.

                      Thank you.. and you are right,.. It's been a while since I have done much web work..

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

                        Well - this could be the reason:

                        pi@nextCloud:~ $ sudo systemctl is-active mariadb.service
                        unknown
                        pi@nextCloud:~ $ sudo systemctl restart mariadb.service
                        Failed to restart mariadb.service: Unit mariadb.service failed to load: No such file or directory.
                        
                        

                        No - wait,.. I realize now that it could be running MySQL - ....

                        1 Reply Last reply Reply Quote 0
                        • C
                          coliver
                          last edited by

                          Make sure you run mysql_sercure_installation after installing MariaDB.

                          G 1 Reply Last reply Reply Quote 2
                          • C
                            coliver
                            last edited by

                            MariaDB is the default MySQL server for Debian and most modern Linux distributions. You actually have to, generally, add a new repo to pick up MySQL.

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

                              @coliver said in Nextcloud Running on Raspian:

                              Make sure you run mysql_sercure_installation after installing MariaDB.

                              pi@nextCloud:~ $ mysql -v
                              -bash: mysql: command not found
                              pi@nextCloud:~ $ mysql
                              -bash: mysql: command not found
                              
                              C 1 Reply Last reply Reply Quote 0
                              • C
                                coliver @gjacobse
                                last edited by

                                @gjacobse said in Nextcloud Running on Raspian:

                                @coliver said in Nextcloud Running on Raspian:

                                Make sure you run mysql_sercure_installation after installing MariaDB.

                                pi@nextCloud:~ $ mysql -v
                                -bash: mysql: command not found
                                pi@nextCloud:~ $ mysql
                                -bash: mysql: command not found
                                
                                sudo apt-get install mariadb-server
                                
                                G 1 Reply Last reply Reply Quote 1
                                • G
                                  gjacobse @coliver
                                  last edited by

                                  @coliver said in Nextcloud Running on Raspian:

                                  @gjacobse said in Nextcloud Running on Raspian:

                                  @coliver said in Nextcloud Running on Raspian:

                                  Make sure you run mysql_sercure_installation after installing MariaDB.

                                  pi@nextCloud:~ $ mysql -v
                                  -bash: mysql: command not found
                                  pi@nextCloud:~ $ mysql
                                  -bash: mysql: command not found
                                  
                                  sudo apt-get install mariadb-server
                                  

                                  I actually just did that with mysql-server....

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