%META:TOPICPARENT{name="Ods"}%
%TOC%
---++What is phpBB?
phpBB is the most famous Open Source product for online forums. Here you can find instructions how to use Virtuoso Database for hosting phpBB tables, and use it as Application Server with php hosting.
---+++Install VAD
1. Start virtuoso db using the hosting_php.so ( .dll for win users). In oder to use this plugin, it needs to be included in your virtuoso ini file as follows:
...
[Plugins]
# for ex. here the location of the plugins is the plugin folder
LoadPath = ./plugin
...
Load6 = Hosting,hosting_php.so
...
* Notes: Make sure you have the following line in your virtuoso.ini section [Parameters] (for instance that is used for phpBB database). If not set phpBB would not work correct with the Virtuoso DB:
PrefixResultNames = 0
1. Setup "Local Virtuoso" DSN (note the empty space in the name!) in order to access any of the application URLs.
* For windows users, please perform the following steps:
1. Go to Start >> Settings >> Control Panel >> Administrative Tools >> Data Sources (ODBC)
1. Go to tab "User DSN" and click "Add"
1. Select the "OpenLink Virtuoso (version)" driver and click "Finish"
1. Enter "Name": Local Virtuoso
1. Enter "Description": My Local Virtuoso
1. For "Server", enter your Virtuoso's hostname and ISQL port, e.g., localhost:1116
1. Click "Next"
1. Enter a username for "Login ID", e.g., dba
1. Enter the user's "Password". For dba, the default password is dba
.
1. Click "Next"
1. Click "Finish".
1. Installing packages:
1. Using ISQL:
1. Install the ODS ods_framework_dav.vad package:
DB.DBA.VAD_INSTALL('tmp/ods_framework_dav.vad',0);
1. Install the phpBB3 phpBB3_fs.vad package:
SQL> DB.DBA.VAD_INSTALL('tmp/phpBB3_fs.vad',0);
1. Using Conductor UI:
* For more information see [[OdsIntegrationphpBBInstallCond][here]].
---+++RDF View Scripts
* You can find the phpBB3 RDF Views scripts[[VirtRDFViewPHPBB3][here]]. Note that they are included in the phpBB3 package.
---+++Configuration
1. In case you want to change the dba password, you need to locate the file below in your FS and change the $dbpasswd value:
vad\vsp\phpBB3\config.php
* Important: In the config.php file leave the tables prefix to default "phpbb_" as well as $dbuser.
---+++phpBB3 Administration
* For more information see [[OdsIntegrationphpBBAdm][here]] .
---+++phpBB3 and ODS Newsgroups
1. Install the ODS Discussion ods_discussion_dav.vad package. For ex. from ISQL:
SQL>DB.DBA.VAD_INSTALL('tmp/ods_discussion_dav.vad',0);
1. phpBB-news-create_procedures.sql: create procedures which are needed later:
isql localhost:1116 dba dba phpBB-news-create_procedures.sql
1. phpBB-news-fill_tables.sql: modifies the phpBB tables and fills them with data from Virtuoso News tables and ODS tables:
isql localhost:1116 phpBB-news-fill_tables.sql
1. phpBB-news-create_triggers.sql
: creates the triggers which will sync the data between phpBB and Virtuoso news tables:
isql localhost:1116 phpBB-news-create_triggers.sql
1. In order to make new news groups or to subscribe to other servers you should use the admin or Conductor UI:
1. From ISQL install the Conductor conductor_dav.vad package:
DB.DBA.VAD_INSTALL('tmp/conductor_dav.vad',0);
1. Go to http://host:port/conductor
*
1. Login as dba and go to NNTP:
*
1. Enter Server Address, port and if needed user name and password and click the button "Add".
*
1. Click the server address link
*
1. Click the "Subscribe to newsgroups" link.
*
1. Click the Subscribe link for Group name
*
1. As result the group will be shown in the list of "Subscribed groups for ..." Click its Newsgroup name link.
*
1. As result will be shown the page with information about the newsgroup and the messages that have been retrieved.
*
1 Register in ODS. Then with the created account you will be able to log in at phpBB3 UI:
1. Go to http://host:port/ods
*
1. Click the "Sign Up" link
1. Enter in the shown form Login Name, etc, and click the "Sign Up" button.
*
1. Access the phpBB3 home page: http://host:port/phpBB3
*
1. Click the Login link and enter the user name and pwd you have entered when registering in ODS:
*
1. As result you will be successfully logged in to the phpBB3 UI.
*
1. Click the link of the forum with name "Your first forum".
*
1. Click the "new topic" button
*
1. Enter in the form in the Subject and text-area fields some values and click the "Submit" button.
*
1. As result your topic will be created.
*
---++++Newsgroup support available
In case you have installed the ODS Discussion ods_discussion_dav.vad package, executed the 3 files as described above and added a newsgroup from Conductor, then:
1. Access the phpBB3 home page: http://host:port/phpBB3:
*
1. As result will be shown the phpBB3 UI with list of the subscribed for NewsGroups. Click the Login link and enter the user name and pwd you have entered when registering in ODS:
*
1. As result you will be successfully logged in to the phpBB3 UI.
*
1. Click on the newsgroup name link.
*
1. As result will be shown the posts for this newsgroup. Click the "Post a new topic" link.
1. Enter in the form in the Subject and text-area fields some values and click the "Submit" button.
*
1. As result your topic will be created.
*
1. You can view your post also from the ODS UI:
1. Go to http://host:port/ods and login as ODS user.
*
1. Go to ODS->Discussions
*
1. Click the link "Discussions"
*
1. Click the link "List" for the newsgroup you have posted your message to.
*
1. Click the Read link for your message shown at the top of the messages list.
1. As result your message details will be shown.
*
---+++URI Schemes
http:///phpBB3/user/
---++Download
* You can download the phpBB3 VAD package from [[http://download.openlinksw.com/packages/5.0/virtuoso/phpBB3_fs.vad][here]].
---++References
---+++See Also
* [[PHPBB3SIOCRef][phpBB 3 SIOC Reference]]
---+++Related
* [[http://my-movies.s3.amazonaws.com/Virtuoso_PHPBB3_Vista_Linked_Data_Demo.mov.zip][Windows Vista (x64) Virtuoso Installation Movie]]
* [[http://my-movies.s3.amazonaws.com/Virtuoso_PHPBB3_MacOSX_Linked_Data_Demo.mov.zip][Mac OS X (x64 & Universal binary) Virtuoso Installation Movie]]
* [[http://my-movies.s3.amazonaws.com/Virtuoso_PHPBB3_EC2_AMI_Linked_Data_Demo.zip][Virtuoso EC2 Cloud Edition Installation Movie]]
CategorySPARQL CategorySIOC CategoryODS CategoryWebSite CategoryphpBB