I am trying to install Nextcloud with postgresql, apache and php. Follow the Official Nexcloud doc I can run apache ok, postgresql ok and php ok. But when try to access the web: http://10.1.1.2 it shows this
Since you installed nextcloud manually following nextcloud documentation, you’ll have to do <everything> described in the documentation to install and configure.
The question is… do you really want to continue what you’re doing? Although you’ve done quite a bit, there are still some small details you still need to do.
One fairly large possible issue is that although you’ve been posting your Apache server configuration and status, you haven’t posted anything about what you’ve done to set up your PostGreSQL and whether you’'ve enabled the server to start and start on bootup.
In fact, setting up PostGreSQL isn’t even in the nextcloud documentation you’re following (Is there other documentation you’re using besides what you posted?).
My advice is…
Unless what you’re doing is for self-education, a more practical approach is to remove what you’ve installed and start over installing using the openSUSE packages.
I do not want to install by opensuse nextcloud package because it installs mysql. Yes, I kow that is easy way to install it. The official nextcloud doc preffer mysql too but, I want to install postgres that the doc says is possible use it, so I am trying to read some blogs, home pages, foruns that choose postgres + nextcloud. Other easy way to install it is by: snap mode but, it installs mysql. Some days I am trying to install with postgres. With mysql on opensuse in other moment its works fine, but I preffer postgresql
1 - update system
2 - install postgresql - start service - enable at boot system
3 - Postgresql - create user - create database - alter databese to user - Grant all previleges on database to user
4 - install apache and php7 dependencies:
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
;env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp
describes numerous options and configurations…
One that jumps out at me that’s not mentioned in your install is to be certain Apache’s own WebDAV is disabled because Nextcloud has its own WebDAV…
Also, for what you’re describing you’re seeing, I’m guessing for some reason your PHP isn’t working so you’re seeing the download page file instead of the rendered page. Maybe doublecheck your a2enmod?