Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Multiple local php test servers in CS4 ?

New Here ,
Jul 17, 2009 Jul 17, 2009

Copy link to clipboard

Copied

Can you have multiple php test servers on your local site ?  I am working on a number of sites all in phptesting in xampp/htdocs.  Issue is with multiple sites in this folder...some of them large...recreate cache is a common as I work on a number of individual sites/folders and with all these sites in one php testing folder...there is a pretty good delay while cache is updated.  Can I put certain sites in a second or additional additional testing server in xampp/htdocs ?

Thanks, TR

TOPICS
Server side applications

Views

423
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 18, 2009 Jul 18, 2009

Copy link to clipboard

Copied

LATEST

Thread moved to the appropriate forum: Dreamweaver Application Development.

The normal way to deal with multiple PHP sites is to create a subfolder for each site in htdocs. However, the disadvantage of this is that the site root is no longer in the server root, but one level down. This means you cannot use links relative to the site root. However, it works fine if you stick with links relative to the document.

The alternative is to set up virtual hosts. This involves editing the Apache configuration files and a Windows file called hosts. There's a tutorial on my site explaining how to create virtual hosts. It was written for a standard installation of Apache, but you should be able to adapt it easily to work with XAMPP.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines