Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:22:43+00:00 2026-06-09T22:22:43+00:00

I am having trouble getting a virtual server up and running with ZEND. I

  • 0

I am having trouble getting a virtual server up and running with ZEND. I have followed the installer and set up a project in my C:/ drive. However, the browser will not pick up the site.

I changed the appache config file to uncomment the following line.

# Virtual hosts

 Include conf/extra/httpd-vhosts.conf

I changed the vhosts.conf file with the following code based on the quickstart information included on the zend website. The project folders are located at C:\zendProject\quickstart\public

<VirtualHost *:8080>
    ServerName local
    DocumentRoot /zendProject/quickstart/public

    SetEnv APPLICATION_ENV "development"

    <Directory /zendProject/quickstart/public>
       DirectoryIndex index.php
       AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    </VirtualHost>

I then changed the hosts file to read with the following lines.

127.0.0.1 localhost

127.0.0.1 local

::1 localhost

I then restarted the appache server using the vista services manager. I checked the basic webpage for the ZEND control panel and this is working so the server is definately operational, but I get a message saying that the browser cannot connect to local.

Does anyone know what I am doing wrong?

I just looked through the error logs and found the following entry – not sure if this helps
[Sun Aug 19 12:05:38 2012] [warn] NameVirtualHost *:8080 has no VirtualHosts

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:22:45+00:00Added an answer on June 9, 2026 at 10:22 pm

    you can pretty much use any port you want with a vhost just make sure you have a line like:
    NameVirtualHost *:80 somewhere in the vhost document. This line specifies the port apache looks at for routing. Most of the prebuilt servers (WAMP, Xampp, Zend Server) will come with a template httpd-vhosts.conf that usually includses this line. Sometimes it is still commented, either way make sure it is there and uncommented and reflects the port you want to use.

    Also if you are using Zend Framework MVC projects in a vhost you want to FollowSymlinks

    Here is complete example of a working httpd-vhosts.conf:

    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    #
    # Please see the documentation at 
    # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    #
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    #
    # Use name-based virtual hosting.
    #
    NameVirtualHost *:80
    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    #
    <VirtualHost *:80>
        DocumentRoot "C:\Zend\Apache2/htdocs"
        ServerName localhost
    </VirtualHost>
    <VirtualHost *:80>
        DocumentRoot "E:\www\home-local\public"
        ServerName home.local
        ErrorLog "E:\www\home-local\logs\error.log"
        <Directory "E:\www\home-local" >
            Options Indexes FollowSymLinks
            AllowOverride all
            Order deny,allow
            Allow from all
        </Directory>   
    </VirtualHost>
    

    This is the httpd-vhosts.conf provided Zend Server CE as modified for my dev environment.

    A few more notes.

    • If you wish to use the localhost, make sure you add it to your vhosts file and make it the first vhost
    • if you have more then one directory that hosts sites you can put the directory definition in your vhost, in fact it’s helpful to apply strict access to the top level directories and only loosen what you need to in the vhosts
    • As always make sure you remember to make sure that mod_rewrite is uncommented:
      LoadModule rewrite_module modules/mod_rewrite.so
    • Always restart Apache after making any changes to httpd.conf or http-vhosts.conf
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble getting the server to recognize a JSON POST request since I
Having trouble getting my local IIS7 running C # MVC app to connect to
I am having trouble getting my chat application working correctly. I have 2 textbox's,
I'm having trouble getting Selenium to see sites hosted on a virtual machine. The
Ngigx + PHP-FPM setup and working in root-directory, but I'm having trouble getting virtual
We're having trouble getting Forms Authentication to work with a virtual directory in IIS.
I'm having trouble getting the following to work in SQL Server 2k, but it
I am having trouble setting up a Fluent NHibernate HasMany collection. I have set
Having trouble getting the django-socialregistration app running properly. We were able to get the
I am having some trouble setting the DJANGO_SETTINGS_MODULE for my Django project. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.