Is it possible to install two instances of PMF on one site?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
skysaw
Posts: 21
Joined: Wed Jan 04, 2006 7:56 am

Is it possible to install two instances of PMF on one site?

Post by skysaw »

If I have one instance of PMF in a subdirectory:

www.mysite.com/subfolder1/PMFinstance1/

is it possible for me to install another?

www.mysite.com/subfolder2/PMFinstance2/

There would of course be a separate database with a different name.

I would like to tweak one of the instances to serve as a kind of CMS lite in one specific area of a client's site. I've already tweaked it a bit to serve as a Q&A interface (that's what I'm calling "PMFinstance1"), rather than a strict FAQ.

It seems to me that a second install ought to be possible, judging from my work so far on "PMFinstance1" on my localhost. But I don't know enough about PHP, mySQL, or server behavior to know if there might be interference between the two installations, once it's set up online.

Thanks,

Ed
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this is possible. You can even install various phpMyFAQ installations in one database with the table prefix.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
skysaw
Posts: 21
Joined: Wed Jan 04, 2006 7:56 am

And the server?

Post by skysaw »

Thanks for the quick reply, Thorsten?

Do you know of any possible server issues? I can't give you any configuration details right now.

Ed
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I don't know about any issues about that. :-)

On my localhost system I have about ten parallel phpMyFAQ installtions.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
skysaw
Posts: 21
Joined: Wed Jan 04, 2006 7:56 am

Post by skysaw »

Thanks again, Thorsten. Forgot to ask, in response to your first reply:

Using the table prefix method with a single database, would I be able to have different, mutually exclusive categories display in each "area"? Would I be able to have different templates (e.g., two versions of main.tpl)?

Even if I could do these things, would it be more trouble than building a separate database? "Table prefix" sounds like I'm going to have to manipulate mySQL more than I may be capable of.

Ed
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,
skysaw wrote:Using the table prefix method with a single database, would I be able to have different, mutually exclusive categories display in each "area"? Would I be able to have different templates (e.g., two versions of main.tpl)?
yes and yes. You'll run two phpMyFAQ installations in two different folders in one database.
skysaw wrote:Even if I could do these things, would it be more trouble than building a separate database? "Table prefix" sounds like I'm going to have to manipulate mySQL more than I may be capable of.
No, it's your choice. The table prefix is for people who want to use more than one phpMyFAQ installation but can't use more than one database.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply