[phpBB] svn: r50 - in trunk/phpbb2: . examples

jeroen at wolffelaar.nl jeroen at wolffelaar.nl
Sun Feb 8 16:32:01 CET 2004


Author: jeroen
Date: 2004-02-08 16:31:03 +0100 (Sun, 08 Feb 2004)
New Revision: 50

Added:
   trunk/phpbb2/examples/
   trunk/phpbb2/examples/config.php
Modified:
   trunk/phpbb2/README.Debian
   trunk/phpbb2/UPGRADING.Debian
   trunk/phpbb2/config.php
   trunk/phpbb2/install
   trunk/phpbb2/phpbb2-conf-mysql.postinst
   trunk/phpbb2/phpbb2.postinst
Log:
Improved documentation on installation and upgrading


Modified: trunk/phpbb2/README.Debian
===================================================================
--- trunk/phpbb2/README.Debian	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/README.Debian	2004-02-08 15:31:03 UTC (rev 50)
@@ -14,8 +14,8 @@
 2) A correctly configured webserver
 3) Edit your site-specific parameters in the board config
 
-Steps 1 and 3 can be done automatically upon installing. The configuration
-will be saved in /etc/phpbb2
+Steps 1 and 3 can be done automatically, install phpbb2-conf-mysql for the
+if you want to use a MySQL database as backend.
 
 This is a short pointwise howto for step 1, in case you want to it yourself
 (or want to do it on a non-standard way)
@@ -28,7 +28,8 @@
   SELECT/INSERT/UPDATE/DELETE rights for the phpbb database (rights to
   alter the tables is not needed)
 - Add the correct server-details and user-credentials in
-  /etc/phpbb2/config.php
+  /etc/phpbb2/config.php (see /usr/share/doc/phpbb2/examples/config.php for an
+  example)
 
 For the webserver, the php files are in /usr/share/phpbb2, use the apache
 config snippet in /etc/phpbb2/apache.conf if you have an apache flavour

Modified: trunk/phpbb2/UPGRADING.Debian
===================================================================
--- trunk/phpbb2/UPGRADING.Debian	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/UPGRADING.Debian	2004-02-08 15:31:03 UTC (rev 50)
@@ -1,2 +1,2 @@
-TODO: Information about transferring current forums/users/posts to a new
-installation if you've installed phpbb manually before.
+Upgrading from non-Debian installed versions of phpbb is currently not
+supported.

Modified: trunk/phpbb2/config.php
===================================================================
--- trunk/phpbb2/config.php	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/config.php	2004-02-08 15:31:03 UTC (rev 50)
@@ -14,6 +14,13 @@
 */
 
 if (!defined('PHPBB_INSTALLED')) {
+	if (!file_exists('/etc/phpbb2/config.php')) {
+		die("You need to install a configuration file in
+		<tt>/etc/phpbb2/config.php</tt> to tell phpbb where its database can
+		be found. Install phpbb2-conf-mysql to have a database setup
+		automatically, or see <tt>/usr/share/doc/phpbb2/README.Debian</tt> for
+		information on how to make one yourself.");
+	}
 	require '/etc/phpbb2/config.php';
 	if (!defined('PHPBB_INSTALLED')) {
 		die("Config file incorrect - see 

Added: trunk/phpbb2/examples/config.php
===================================================================
--- trunk/phpbb2/examples/config.php	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/examples/config.php	2004-02-08 15:31:03 UTC (rev 50)
@@ -0,0 +1,20 @@
+<?php
+ 
+//
+// phpBB 2.x configuration file
+//
+  
+// Any of: mysql, mysql4, postgres, mssql, oracle, msaccess, mssql-odbc
+// Note: use mysql4 only to enable transaction support, which you must enable
+// in MySQL first. 'mysql' works fine with MySQL 4.x.
+$dbms = 'mysql';
+   
+$dbhost = 'localhost';
+$dbname = 'phpbb2';
+$dbuser = 'phpbb2';
+$dbpasswd = '';
+    
+$table_prefix = 'phpbb_';
+	 
+define('PHPBB_INSTALLED', true);
+

Modified: trunk/phpbb2/install
===================================================================
--- trunk/phpbb2/install	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/install	2004-02-08 15:31:03 UTC (rev 50)
@@ -1,4 +1,5 @@
 debian/build/phpBB2/{admin,db,images,includes,language,templates,*.{php,inc}} /usr/share/phpbb2
 debian/config.php /usr/share/phpbb2
 debian/build/phpBB2/install/schemas /usr/share/doc/phpbb2
+debian/examples /usr/share/doc/phpbb2
 debian/apache.conf /etc/phpbb2

Modified: trunk/phpbb2/phpbb2-conf-mysql.postinst
===================================================================
--- trunk/phpbb2/phpbb2-conf-mysql.postinst	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/phpbb2-conf-mysql.postinst	2004-02-08 15:31:03 UTC (rev 50)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # postinst script for phpbb2
 # By Jeroen van Wolffelaar <jeroen at wolffelaar.nl>
 

Modified: trunk/phpbb2/phpbb2.postinst
===================================================================
--- trunk/phpbb2/phpbb2.postinst	2004-02-08 14:50:39 UTC (rev 49)
+++ trunk/phpbb2/phpbb2.postinst	2004-02-08 15:31:03 UTC (rev 50)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # postinst script for phpbb2
 # By Jeroen van Wolffelaar <jeroen at wolffelaar.nl>
 





More information about the phpBB-l mailing list