[how to] use phplist with two sites on the same server

Solutions for other phpList version 2 users
Forum rules
Please do not ask questions here, this is for Solutions you have discovered or come across.

[how to] use phplist with two sites on the same server

Postby briandunning » 11:53pm, Thu 22 Feb, 2007

I want to use this on two different sites on the same server. Preferably sharing the same database. But all different domains, different subscribe pages, etc. Is this possible?
briandunning
phpLister
 
Posts: 13
Joined: 10:13pm, Thu 22 Feb, 2007

Postby Dragonrider » 7:04pm, Fri 23 Feb, 2007

Yes!

Install the two versions of phplist into two different subfolders, eg: www.yourfirstsite.com/lists and www.yourothersite.com/lists and when you come to install them, set the database access as normal, but change the phplist prefix, for the database, to something specific to each site.
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Postby briandunning » 7:10pm, Fri 23 Feb, 2007

So, two separate databases then?
briandunning
phpLister
 
Posts: 13
Joined: 10:13pm, Thu 22 Feb, 2007

Postby Dragonrider » 8:34pm, Fri 23 Feb, 2007

briandunning wrote:So, two separate databases then?


That depends on how you define a database.

If you need to use two seperate MySQL databases, then not necessarily, though you can.

If you want to offer two different LISTS, or Newsletters or whatever you want to call them, then use one database, but set up two lists within one installation of phpList.

If you want to use phpList over two different sites, then you can use one MySQL database, but using different prefixes in the installation process.

Does that help?
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Postby briandunning » 9:00pm, Fri 23 Feb, 2007

I see what you mean. Basically it's got to be separate sets of tables if it needs to run on two different domains.
briandunning
phpLister
 
Posts: 13
Joined: 10:13pm, Thu 22 Feb, 2007

Postby Dragonrider » 9:07pm, Fri 23 Feb, 2007

briandunning wrote:I see what you mean. Basically it's got to be separate sets of tables if it needs to run on two different domains.

Yes, because otherwise, apart from being downright confusing running two lists for two sites, on the same installation of phplist, you're going to have to rewrite the from email, the domain, the sender, the headers etc each time to send an email from the other site....

I have two installations of phpList running on my webspace. One for my Gardeners' site and this uses my gardeners MySQL database, and the other for a Musical Festival website which uses the festivals' MySQL database.

I did start off by having a lists MySQL database as well (think I get 20 with my webspace package) and simply used different database prefixes for the two phplist installations.

After a while, I decided to move the data into the actual databases and also the installations to within the revelant folders and subfolders, but that's another story!
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Postby briandunning » 9:12pm, Fri 23 Feb, 2007

Rock, thanks a lot. :)
briandunning
phpLister
 
Posts: 13
Joined: 10:13pm, Thu 22 Feb, 2007


Return to Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: Google [Bot] and 3 guests