Click to See Complete Forum and Search --> : 2 versions of a project, 1 machine


Anon
08-08-2000, 08:06 PM
Hi,

I use php/mysql for my current project (basically website navigation with sessions). Is it possible to have 2 versions of my project on one machine without having to install and build 2 instances of php and mysql? That is,

1) Is it possible to setup mysql to run multiple daemons against different databases?

2) Is it possible to have one instance of the php software look at different include paths?

Could someone point me in the right direction? I'm on a Solaris 2.6, using apache 1.3.12, php-4.0.1p2, mysql3.22-32

TIA,
Thai

Anon
08-09-2000, 01:41 PM
1 mysql daemon, 2 databases (just connect to a different database)
2 we use <project>/public_html and </project>/php,
so in our httpd.conf file there's a line for:
php_value include_path .:<root path to <project>>/php

if ya see what I mean.

Russ
Cowboyz.com

Anon
08-09-2000, 03:35 PM
First of all, thanks for replying. However, since I run php as a cgi I'm not sure if that's why the suggestion didn't work...

So...I tried adding this to the bottom of my httpd.conf file:

php3_include_path .:<root path to project>/php

and got the a syntax error and the following when I ran apachectl configtest:

Invalid command 'php3_include_path', perhaps mis-spelled or defined by a module not included in the server configuration

Any solutions to this?

Thanks,
T.

Anon
07-31-2002, 04:58 PM
Hello,
u can do this with the help of two database
use two diffrent local.inc.php for both database it will act as two vir. for your project