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

    Nextcloud pretty URLs

    Scheduled Pinned Locked Moved IT Discussion
    5 Posts 3 Posters 1.2k 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.
    • DonahueD
      Donahue
      last edited by

      I tried enabling the pretty URLs in Nextcloud, but I think there is a step that is different. I was following this manual.

      This line does not work when following @JaredBusch's tutorial.

      sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
      

      I think part of it is that the user name should be apache, but when I try that I get this:

      [root@localhost ~]# sudo -u apache php /var/www/nextcloud/occ maintenance:update:htaccess
      Could not open input file: /var/www/nextcloud/occ
      

      I am guessing something is different between the install I did following the instructions, and what nextcloud assumes. I think it probably has something to do with this:

      mod_env and mod_rewrite must be installed on your webserver and the .htaccess must be writable by the HTTP user.
      
      1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by scottalanmiller

        @Donahue said in Nextcloud pretty URLs:

        This line does not work when following @JaredBusch's tutorial.

        sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
        

        This is Debian/Ubuntu. You found that exact line in my tutorial?

        @Donahue said in Nextcloud pretty URLs:

        I think part of it is that the user name should be apache, but when I try that I get this:

        [root@localhost ~]# sudo -u apache php /var/www/nextcloud/occ maintenance:update:htaccess
        

        This is Fedora/RHEL, but you have the base path wrong. Fedora/RHEL uses /var/www/html as the root web directory for apache.

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

          @JaredBusch said in Nextcloud pretty URLs:

          @Donahue said in Nextcloud pretty URLs:

          This line does not work when following @JaredBusch's tutorial.

          sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
          

          This is Debian/Ubuntu. You found that exact line in my tutorial?

          This was in the nextcloud instructions.

          @Donahue said in Nextcloud pretty URLs:

          I think part of it is that the user name should be apache, but when I try that I get this:

          [root@localhost ~]# sudo -u apache php /var/www/nextcloud/occ maintenance:update:htaccess
          

          This is Fedora/RHEL, but you have the base path wrong. Fedora/RHEL uses var/www/html as the root web directory for apache.

          I figured it was something like that. I tried this and it seemed to work, although the URLs still arent shorter.

          [root@localhost ~]# sudo -u apache php /var/www/html/nextcloud/occ maintenance:update:htaccess
          The current PHP memory limit is below the recommended value of 512MB.
          .htaccess has been updated
          
          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Donahue
            last edited by

            @Donahue said in Nextcloud pretty URLs:

            when I try and go to the site, which I am trying to get to https://files.domain.local, I want that to bring up the nextcloud stuff. But it currently brings up the fedora test page. How do I disable the test page and make NC accessible from that URL?

            That's a totally different issue that you are discussing in this thread. I will fork that for you.

            1 Reply Last reply Reply Quote 0
            • DonahueD
              Donahue
              last edited by

              oh, I thought it was the same thing.

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