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 6654131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:21:12+00:00 2026-05-26T01:21:12+00:00

Is there a problem with a Zend framework site and windows web hosting? The

  • 0

Is there a problem with a Zend framework site and windows web hosting?

The web hosting guy at the company I work for said that there is a problem and the site will only work on a linux based hosting. He gave me the credentials and told me to try.

PHP5 using Zend framework and with some modifications on the index.php in the wamp server. (I programmed it on the wamp server 2 on my pc). Zend Studio if it is important.

  • 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-26T01:21:12+00:00Added an answer on May 26, 2026 at 1:21 am

    ZF will run just fine on Windows. You don’t even have to have your index.php file in the “public” directory.

    If your project structure looks like the following and their Windows hosting uses Apache you can just rename your public folder to htdocs (common apache public folder):

    -- application/
    -- library/
    -- public/
    ---- index.php
    

    Your host may not be willing to alter certain settings for public folders because they have an automated script that does it for them and makes it difficult to modify it per account, but you can also edit the index.php file to fit any structure.

    The stock index.php file looks like this:

    <?php
    // Define path to application directory
    defined('APPLICATION_PATH')
        || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
    
    // Define application environment
    defined('APPLICATION_ENV')
        || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
    
    // Ensure library/ is on include_path
    set_include_path(implode(PATH_SEPARATOR, array(
        realpath(APPLICATION_PATH . '/../library'),
        get_include_path(),
    )));
    
    /** Zend_Application */
    require_once 'Zend/Application.php';
    
    // Create application, bootstrap, and run
    $application = new Zend_Application(
        APPLICATION_ENV,
        APPLICATION_PATH . '/configs/application.ini'
    );
    $application->bootstrap()
                ->run();
    

    If you just change the defines for APPLICATION_PATH and the library folder in the set_include_path, then you should have no problem using ZF with your host’s stock settings.

    The default path assumes your public directory sits in the same folder as your application and library folders, but this is changed easily by editing the paths above.

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

Sidebar

Related Questions

Currently I'm develping a web application using Zend framework. My problem is that I
Possible Duplicates: Is there a problem that has only a recursive solution? Can every
Is there a problem with committing my zend framework code on googlecode (specifically my
I am developing a web app using zend framework and the problem is about
Problem: There are a bunch of .lnk files on the C drive that point
Problem There are data gaps that need to be filled. Would like to avoid
Here's my problem: there's an internal issue tracking system that has a nice summary
I have the following problem with Zend tool (component of Zend Framework) When I
Using Zend Framework, is there a way to pass multiple conditions to an update
I'm currently working on a build system in Phing that takes a Zend Framework

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.