Results 1 to 1 of 1
  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default apache2 configtest fails

    I am trying to install zencart with the demo package to further cheat on proper configuration.
    I am trying to install in my local environment so I must use virtual hosting because I have another test site installed called zentest.com, which works fine. The one I am trying to install is zendemo.com.
    The installation went fine, my instructions for install in another thread worked.
    What failed is the loopback to my machine.
    Here is my /etc/hosts file:
    127.0.0.1 localhost
    127.0.1.1 crosshair
    127.0.0.1 zentest.com
    127.0.1.1 crosshair.zentest.com crosshair
    127.0.0.1 zendemo.com
    127.0.0.1 crosshair.zendemo.com crosshair

    # The following lines are desirable for IPv6 capable hosts
    ::1 localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    Crosshair is the name of my machine.

    And here is my sites-available zendemo.com.conf:

    <VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com

    ServerAdmin webmaster@localhost
    ServerName zendemo.com
    ServerAlias www.zendemo.com
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf
    </VirtualHost>

    I enabled site via a2ensite zendemo.com and it enabled, apache reloaded, but site does not pull on loopback, it looks for a domain for sale (greed of google), and apache2 configtest fails.
    I am puzzled by these lines in the file: For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    Last edited by ckosloff; 8 May 2023 at 03:00 AM. Reason: typo

 

 

Similar Threads

  1. Curl fails
    By mhess in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2013, 05:04 PM
  2. stylesheet not loading on Apache2+VHost+Ubuntu(11)
    By charlesxiongus in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 6 Feb 2012, 02:32 PM
  3. Setup fails
    By FEQ in forum Installing on a Windows Server
    Replies: 2
    Last Post: 21 Jul 2007, 09:15 AM
  4. Installation fails
    By valentin in forum Installing on a Windows Server
    Replies: 4
    Last Post: 31 Aug 2006, 05:33 PM
  5. install on novell running apache2
    By rivars in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 14 Jun 2006, 03:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR