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

  • Home
  • SEARCH
  • 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 332059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:49:56+00:00 2026-05-12T09:49:56+00:00

I have a Zend Framework project on a local machine, and as recommended its

  • 0

I have a Zend Framework project on a local machine, and as recommended its /public subfolder is made a DocumentRoot in httpd.conf. So I access this app simply with http://localhost.

This new requirement makes me unable to access other
web apps in a former webserver root (which contains a few regular php apps and a couple of zend framework apps).

What configuration should I choose to be able to simultaneously access both ZF root-based apps and other apps like PHPMYADMIN?

  • 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-05-12T09:49:56+00:00Added an answer on May 12, 2026 at 9:49 am

    You’ll probably need to use some kind of VirtualHost

    You have at least two solutions :

    • VirtualHosts based on diferent port numbers
      • For instance, you’d have one site on http://localhost/ (ie, default port = 80)
      • And another one on http://localhost:8001/
      • And another one on http://localhost:8802/
      • And so on
    • VirtualHosts based on different domain-names
      • For instance, you’d have on site on http://localhost/
      • And another one on http://mytestwebsite/

    In the second case (the solution I always use), you will have to edit your “hosts” file, so “mytestwebsite” is an alias to your local machine — which IP address is 127.0.0.1

    Under windows, this file is located in C:\WINDOWS\system32\drivers\etc

    On Linux, it’s in /etc/

    You’d have to add a line like these ones :

    127.0.0.1       localhost
    127.0.0.1       mytestwebsite
    

    Then, in the Apache configuration, you need to create one VirtualHost per site. Something like this, I suppose :

    <VirtualHost *>
        ServerName      mytestwebsite
        DocumentRoot /home/squale/developpement/tests
        <Directory /home/squale/developpement/tests>
            Options Indexes FollowSymLinks MultiViews +SymLinksIfOwnerMatch
            AllowOverride All
        </Directory>
    </VirtualHost>
    
    <VirtualHost *>
        ServerName      myothertestwebsite
        DocumentRoot /.../myothertestwebsite
        <Directory /.../myothertestwebsite>
            Options Indexes FollowSymLinks MultiViews +SymLinksIfOwnerMatch
            AllowOverride All
        </Directory>
    </VirtualHost>
    

    (Needs tunning / configuration, of course)

    And you’ll also probably need some directive like this one :

    NameVirtualHost *
    

    Well, this might not be the entire solution (that one depends on your server / applications) ; but I hope these few pointers will help you get to it !

    If you need more help, the keyword is “VirtualHost” 😉

    Have fun !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Zend Framework project, I have a form that I am testing. In
I have a zend framework project with 2 modules - admin and default. the
I have PHP project and I am using Zend Framework. There is a library
I have a Zend Framework application structure as below: /application /library /Zend /Core /Filter
The Zend Framework based site I have been working on is now being migrated
I have been using the Zend Framework with an MVC configuration, read about Ruby
I am using the Zend Framework. I have a controller named 'UserController' that has
What are some of the ways you have implemented models in the Zend Framework?
All, I have a PHP website written in Zend Framework and MVC. Most of
I am working on a project using zend framework, php, mysql on ubuntu. I

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.