We need to be able to have multiple PHP-based web applications (using Apache Virtual hosts) outside the document root of XAMPP.
http://app1 => c:\web-one\app1\htdocs
http://app2 => c:\web-two\app2\htdocs
(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:
Options Indexes +FollowSymLinks Includes ExecCGI
Allow from all
php_value include_path ".;c:\web-one\app1\htdocs\app1;c:\web-one\app1\htdocs\app1\class"
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.