Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Mike Scheuing on February 24, 2003, 07:53:29 PM
-
Hi!
I followed Dan Brown's excellent instructions on how to install phpBB2 on my SME 5.6 installation and it works fine. The quetions is, how do I configure it so that each virtual domain has its own, unique bulletin board? I am currently running 4 virtual domains and they all have needs for their own distinct board.
Any help is appreciated.
Thanks!
Mike
Dan's How-To: http://www.familybrown.org/howtos/phpbb2-howto.html
-
Just create a different database for each phpBB installation. For instance;
domain1.com uses domain1 database and password
domain2.com uses domain2 database and password
simple really. I run several domains all with phpBB.
Hope I made sense :-)
-
Yep, you can create separate databases for each domain. I'd also create separate database users for each one. Something like this:
mysql> CREATE DATABASE domain1;
Query OK, 1 row affected (0.10 sec)
mysql> GRANT ALL PRIVILEGES ON domain1.* TO phpbb1@localhost IDENTIFIED BY
'phpbbpassword1';
Query OK, 0 rows affected (0.16 sec)
mysql> CREATE DATABASE domain2;
Query OK, 1 row affected (0.10 sec)
mysql> GRANT ALL PRIVILEGES ON domain2.* TO phpbb2@localhost IDENTIFIED BY
'phpbbpassword2';
Query OK, 0 rows affected (0.16 sec)
...etc.
You'd also need to install each copy of phpbb into its own /opt/ directory, and modify the httpd.conf templates accordingly. At least, that'd be my guess--I haven't tried it yet, as I haven't needed to.
-
Dan,
I am going to install 2 forums, one in the primary domain and the second in a virtual domain. I understand that I need 2 installs in 2 different /opt directories such as:
/opt/phpBB2_primary_domain
/opt/phpBB2_virtual_domain
I am unclear on how to modify the httpd.conf custom template to tell it that primarydomain.com/phpBB2 uses /opt/phpBB2_primary_domain and to redirect virtualdomain.com/phpBB2 to use /opt/phpBB2_virtual_domain.
Does my 93phpBB file needs another Alias line or do I need to create 94phpBB for the virtual domain? Or are the virtual domains configured elsewhere?
What should that Alias line read? (in other words how do I re-direct a virtual domain directory)? Or do I just not understand this and I have it all wrong?
P.S. Is there a spacific reason why phpBB2 is installed into the /opt directory and not in the /html or perhaps even in a virtual domain's ibay /html directory?
Thanks,
Paul