NextCloud can't seem to get it set up in Apache2

Discussion in 'Apache' started by JessieJDX1, Sep 6, 2019.

  1. #2
    // Lines added to the /etc/apache2/sites-available/nextcloud.conf

    < virtualhost *:80>
    ServerName jes-linux.nextcloud.io
    Documentroot /var/www/html/nextcloud
    < /virtualhost>

    // Commands used for setting up apache2 using terminal commands

    root@jes-linux:~# nano /etc/apache2/sites-available/nextcloud.conf
    root@jes-linux:~# systemctl restart apache2
    root@jes-linux:~# ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
    root@jes-linux:~# a2enmod rewrite
    Enabling module rewrite.
    To activate the new configuration, you need to run:
    systemctl restart apache2
    root@jes-linux:~# systemctl restart apache2
    Job for apache2.service failed because the control process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xe" for details.

    When /etc/apache2/sites-available/nextcloud.conf and /etc/apache2/sites-enabled/nextcloud.conf
    are removed apache2 will restart with no problems.

    Linux is new to me. jes@jes-linux is my server name localy.
    journalctl -xe points to line 225 as failing, which is a reference to the nextcloud.conf
     
    JessieJDX1, Sep 6, 2019 IP
  2. JessieJDX1

    JessieJDX1 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    My grandson ended up helping me. The install example is full of syntax errors. (https://www.linuxhelp.com/how-to-install-nextcloud-on-linux-mint-18-3). virtual host should be
    (
    <VirtualHost *:80>
    ServerName jes-linux.nextcloud.io
    DocumentRoot /var/www/html/nextcloud
    </VirtualHost>
    )
    I also had to add a line to the /etc/host file.
    (
    127.0.0.1 localhost
    127.0.1.1 jes-linux
    127.0.0.1 jes-linux.nextcloud.io /* This is the line I added to get the nextcloud window. */

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    )

    Apparently these guys were working off a working system and didn't have to wory about the syntax.
    If this helps great.
     
    JessieJDX1, Sep 8, 2019 IP