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
Bookmarks