ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. sopdahl
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    sopdahl

    @sopdahl

    1
    Reputation
    142
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    sopdahl Unfollow Follow

    Best posts made by sopdahl

    • RE: Install Nextcloud 13.0.0 on Fedora 27

      Very nice! I've done this before on Fedora 23 with OwnCloud, but the procedure was confusing.

      I wanted to add something for users who might have an issue like I did. I have a separate physical disk I wanted to setup for the data disk, but found myself running through most of your procedure without having setup or mounted the disk. I took your advice and used the default /var/www/html/nextcloud/data path.

      At the NextCloud wizard, I received a "can't read or write into the data directory" message. I knew it had something to do with permissions. First, I had to re-issue the chown apache:apache -R /var/www/html/nextcloud command because once the disk was mounted the data folder reverted back to root:root - that's a given. But the same error came up. So, I figured it was SELINUX and I re-ran the selinux_config.sh script, which gave me an error for each folder saying it was already defined. Even so, I tried NextCloud again and had the same data directory error.

      A little poking around and I found this out: you have 2 commands in SELINUX: "semanage fcontext" and "restorecon" ...
      The "already defined" error was coming from the semanage fcontext command, so I read a bit about restorecon and discovered that if you add an "-F" parameter, it will force the command rather than bypass it if it's already been run. There is no error from restorecon, it just silently doesn't work. Adding the -F parameter worked: restorecon -R -F ${ocpath}/data.

      Thank you, I have a nicely running NextCloud system now!

      posted in IT Discussion
      S
      sopdahl

    Latest posts made by sopdahl

    • RE: Install Nextcloud 13.0.0 on Fedora 27

      Very nice! I've done this before on Fedora 23 with OwnCloud, but the procedure was confusing.

      I wanted to add something for users who might have an issue like I did. I have a separate physical disk I wanted to setup for the data disk, but found myself running through most of your procedure without having setup or mounted the disk. I took your advice and used the default /var/www/html/nextcloud/data path.

      At the NextCloud wizard, I received a "can't read or write into the data directory" message. I knew it had something to do with permissions. First, I had to re-issue the chown apache:apache -R /var/www/html/nextcloud command because once the disk was mounted the data folder reverted back to root:root - that's a given. But the same error came up. So, I figured it was SELINUX and I re-ran the selinux_config.sh script, which gave me an error for each folder saying it was already defined. Even so, I tried NextCloud again and had the same data directory error.

      A little poking around and I found this out: you have 2 commands in SELINUX: "semanage fcontext" and "restorecon" ...
      The "already defined" error was coming from the semanage fcontext command, so I read a bit about restorecon and discovered that if you add an "-F" parameter, it will force the command rather than bypass it if it's already been run. There is no error from restorecon, it just silently doesn't work. Adding the -F parameter worked: restorecon -R -F ${ocpath}/data.

      Thank you, I have a nicely running NextCloud system now!

      posted in IT Discussion
      S
      sopdahl