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

Ask A Question

Stats

  • Questions 310k
  • Answers 310k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A working way to save/open OBML files on your PC… May 13, 2026 at 10:05 pm
  • Editorial Team
    Editorial Team added an answer I believe it is in the Visual Studio User Solution… May 13, 2026 at 10:05 pm
  • Editorial Team
    Editorial Team added an answer The solution is to use a little bit of functional… May 13, 2026 at 10:05 pm

Related Questions

I've written several Web MVC apps but never before in PHP, and I'm trying
I'm working on a project that requires a fair bit of inserting/updating rows in
I'm going to start a project using a Zend Framework MVC implementation. How do
I've done most of my coding on smaller projects for myself and classes, and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.