How to Install Nextcloud on Debian 12 -> problem showing the nextcloud install page

Discussion in 'HOWTO-Related Questions' started by vikozo, Aug 16, 2023.

  1. vikozo

    vikozo New Member

    Hallo
    i have followed this tutorial

    [​IMG]
    How to Install Nextcloud on Debian 12
    This tutorial will show you how to install Nextcloud on a Debian 12 server. You will install Nextcloud with Apache2 web server, MariaDB server, and PH...
    www.howtoforge.com

    have done on the server in ispconfig DNS als A record 10.18.14.178 nxtcld-04


    at the point where it show the apache2 conf file i have

    1 <VirtualHost *:80>
    2 ServerName nxtcld-04.kozo.ch
    3 DocumentRoot /var/www/nextcloud/
    4
    5 # log files
    6 ErrorLog /var/log/apache2/files.kozo.ch-error.log
    7 CustomLog /var/log/apache2/files.kozo.ch-access.log combined
    8
    9 <Directory /var/www/nextcloud/>
    10 Options +FollowSymlinks
    11 AllowOverride All
    12
    13 <IfModule mod_dav.c>
    14 Dav off
    15 </IfModule>
    16
    17 SetEnv HOME /var/www/nextcloud
    18 SetEnv HTTP_HOME /var/www/nextcloud
    19 </Directory>
    20 </VirtualHost>

    sudo systemctl restart apache2

    http://nxtcld-04.kozo.ch/
    the page is only showing the default homepage of Apache2 Debian Default Page

    what is wrong with my conf file?
    have a nice day
    vinc
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you followed the tutorial, including this part
    Code:
    sudo a2ensite nextcloud.conf
    sudo apachectl configtest
    If there are errors in the conf, configtest shows them.
    (please post code and listings in CODE tags).
    Then restart apache so the new virtualhost takes effect
    Code:
    systemctl restart apache2
     
  3. vikozo

    vikozo New Member

    @Taleman thanks for your feedback
    yes i have done so
    Code:
    <VirtualHost *:80>
        DocumentRoot /var/www/nextcloud/
        ServerName nxtcld-04.kozo.ch
    
        # log files
        ErrorLog /var/log/apache2/files.hwdomain.io-error.log
        CustomLog /var/log/apache2/files.hwdomain.io-access.log combined
    
        <Directory /var/www/nextcloud/>
            Options +FollowSymlinks
            AllowOverride All
    
            <IfModule mod_dav.c>
                Dav off
            </IfModule>
    
            SetEnv HOME /var/www/nextcloud
            SetEnv HTTP_HOME /var/www/nextcloud
        </Directory>
    </VirtualHost>
    Code:
    root@nxtcld-04:/etc/apache2/sites-available#  a2ensite nextcloud.conf
    Site nextcloud already enabled
    root@nxtcld-04:/etc/apache2/sites-available# apachectl configtest
    Syntax OK
    root@nxtcld-04:/etc/apache2/sites-available# systemctl restart apache2
    root@nxtcld-04:/etc/apache2/sites-available# 
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you have other vhosts on this server in Apache that use an IPv4 address instead of * for the IPv4 address?
     
  5. vikozo

    vikozo New Member

  6. vikozo

    vikozo New Member

    In
    /etc/apache2/sites-available
    have been 000-default and default-ssl, i renamed both then it worked
     

Share This Page