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
Copy link to clipboard
Copied
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.