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
How did you install nextcloud? Did you install it via YaST and get the openSUSE version or did you get it directly from nextcloud?
The reason is that if you instal the openSUSE version via YaST it puts a configuration file in as /etc/apache2/conf.d/nextcloud.conf.
I have two systems running nextcloud one is installed manually and the other via YaST. On the manually installed one I simply have this:
Alias /nextcloud /srv/www/htdocs/sites/xxxxxxxxx.net/nextcloud
<Directory /srv/www/htdocs/sites/xxxxxxxxx.net/nextcloud>
Options +FollowSymlinks
AllowOverride All
</Directory>
in the virtual host file and followed the nextcloud documentation.
I also have the following in /etc/apache2/conf.d/mod_php7.conf
I installed nextcloud manually trying to follow nextcloud documentation with postgresql + php-fpm + apache
Ow, I will try to follow mode_php_7.conf. This part I do not config.
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
My steps:
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:
vi /etc/php7/fpm/php-fpm.d/www.conf
and uncomment:
; 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
Thx for sharing and @JulianaB contribution could be invaluable if as she says has a manually installed instance running (has gone through the work comparing to a YaST installed instance).
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?