I’ve installed nextcloud on fedora server, but don’t know how to proceed to get it to run. I added http service to the firewall, started httpd and created a symlink for nextcloud-access.conf.avail as instructed. That allows me to open a nextcloud page at server/nextcloud with this content:
Error
Configuration was not read or initialized correctly, not overwriting /usr/share/nextcloud/config/config.php
I understand that the installation wizard should be run on localhost, however, my server is headless. Can I allow remote access somehow? (I’m on a local network)
If this is not (easily) possible, I’ve heard about occ. That should be available at /var/www/html/nextcloud/occ, but in my case it isn’t. Where can I find occ on fedora?
occ would be in the Nextcloud files, and you run it directly via php.
You should be able to run the setup wizard from any browser that can reach the site, so I feel like you have some other problem. What do your permissions look like in /var/www/html?
It seems your Nextcloud installation path is /usr/share/ and not /var/www
in the /usr/share/Nextcloud there is a folder called occ:
/usr/share/nextcloud/occ
It is this path you needs to use instead. But it seems you ahs to go through your installation one more time, and ensure that your webserver and/or php-fpm is pointing at the right folder. If you have configured the document root to be: /var/www/
It will never load nextcloud, as that one is located in /usr/share (accroding to your error).
apache (httpd) and php was installed as a dependency for nextcloud. I haven’t configured anything besides the symlink above.
If I have done anything wrong, it should be in the commands above.
What you mean by go through the installation one more time? Reinstalling the package?
I have not configured the webserver nor php-fpm to point anywhere (I don’t even know how to do that). Should I configure them to point somewhere? How?
Opening http://myserver gives me some basic fedora page, opening http://myserver/nextcloud gives me a page with the nextcloud logo and the error text in my first post. Since I actually can open something nextcloud-ish, I feel the webserver is actually pointing correctly.
Oh, I did find occ in /usr/share/nextcloud but haven’t tried to run it yet because it seems like I should be able to run the installation wizard and there seems to be something wrong.
Yes it should. However many factors on Linux can have an influence. Like in which context you did commands and such. Never the less, it seems that the entire Nextcloud library is owned by root. You will need to change the owner - recursively as well - to the webserver/PHP user.
Several things also looks like it is a bit more complex than I would anticipate. The config folder is a symling to another location. Most installs would have it in same path as rest.
All the Nextcloud server files (the application itself, which Apache and PHP needs to execute) is in your /usr/share/nextcloud path. So this is the documentroot of your nextcloud virtual host configuration for your apache config.