Web apps outside XAMPP document root

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Web apps outside XAMPP document root

Postby RiRL » 26. May 2010 18:37

We need to be able to have multiple PHP-based web applications (using Apache Virtual hosts) outside the document root of XAMPP.

For example:
http://app1 => c:\web-one\app1\htdocs
http://app2 => c:\web-two\app2\htdocs
etc

(note: the c:\web-one and c:\web-two directories, may or may not be the same directory...)
These directories represent different levels of promotion across the development life-cycle, for multiple applications.

Another requirement, we are trying to refactor PHP to fix this issue, is that the PHP code uses hardcoded resources
that refer to things like DB connection parameters, so the php includes cannot (in general) but the same of any of
applications or subsets, since there are commonly named PHP with these values hardcoded.

Also, we would like to be able to share certain PHP classes between related applications (c:\web-one\app1\htdocs and c:\web-one\app3\htdocs)
but would also need to have unique PHP classes.

Can someone detail or provide a reference or guidance to how to accomplish this?

I have tried certain things with virtual hosts and etc under Apache and have had some success, but its not working fully.
In particular, for example: if I enter http://app1 then a '404' error appears and the URL becomes, http://app1/xampp.

My virtual setup looks something like:
<VirtualHost *:80>
DocumentRoot c:\web-one\app1\htdocs
ServerName app1
<Directory "c:\web-one\app1\htdocs">
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
php_value include_path ".;c:\web-one\app1\htdocs\app1;c:\web-one\app1\htdocs\app1\class"
</Directory>
</VirtualHost>



Like I say, I googled and search this forum quite a bit, and have incorporated a number of ideas.

I guess, I'm at the last mile....

Thanks for any help.
RiRL
 
Posts: 7
Joined: 17. December 2009 01:40

Re: Web apps outside XAMPP document root

Postby Nobbie » 26. May 2010 20:26

RiRL wrote:Can someone detail or provide a reference or guidance to how to accomplish this?


Yes, of course.

What is your budget for that kind of extensive professional support?
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 58 guests