diff options
Diffstat (limited to 'debian/examples')
-rw-r--r-- | debian/examples/apache2.conf | 54 | ||||
-rw-r--r-- | debian/examples/config.php | 32 | ||||
-rw-r--r-- | debian/examples/lighttpd.conf | 1 |
3 files changed, 87 insertions, 0 deletions
diff --git a/debian/examples/apache2.conf b/debian/examples/apache2.conf new file mode 100644 index 0000000..9a8fe5a --- /dev/null +++ b/debian/examples/apache2.conf @@ -0,0 +1,54 @@ +# Note: order matters +Alias /phpbb/images /var/lib/phpbb3/images +Alias /phpbb /usr/share/phpbb3/www + +<Directory /usr/share/phpbb3/www/> + <IfModule mod_php5.c> + php_flag register_globals off + </IfModule> + + Options -Indexes +FollowSymlinks + + DirectoryIndex index.php + + <IfVersion >= 2.3> + Require all granted + </IfVersion> + <IfVersion < 2.3> + AllowOverride None + order allow,deny + allow from all + </IfVersion> +</Directory> +<Directory /var/lib/phpbb3/images> + <IfVersion >= 2.3> + Require all granted + </IfVersion> + <IfVersion < 2.3> + AllowOverride None + order allow,deny + allow from all + </IfVersion> +</Directory> + +### Multisite examples (see README.multiboard for details) + +# For a second board on the same server using aliases: +# +#Alias /second_board/images /var/lib/phpbb3/images ### create! +#Alias /second_board /usr/share/phpbb3/www +#<Location /second_board> +# php_value auto_prepend_file /etc/phpbb3/alternative_config.php +#</Location> + +# For virtual host: +#<VirtualHost *:80> +# # For using an alternative database (for multiple boards for example) +# php_value auto_prepend_file /etc/phpbb3/virtualhost_config.php +# +# ServerName forum.example.com +# DocumentRoot /usr/share/phpbb3/www +# # You may need to workaround the global /images/ alias in your apache +# # configuration, your mileage may vary +# Alias /images /var/lib/phpbb3/images +#</VirtualHost> diff --git a/debian/examples/config.php b/debian/examples/config.php new file mode 100644 index 0000000..59dffa3 --- /dev/null +++ b/debian/examples/config.php @@ -0,0 +1,32 @@ +<?php + +// +// phpBB 3.x configuration file +// + +/* + The Database Management System to use + Any of: mysql, postgres, sqlite + Other DBMSs not supported by Debian's dbconfig-common: mysql4, 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'; + +/* + In $dbhost, 'localhost' means local UNIX socket connection rather than TCP/IP + to localhost. If you want the latter, write 127.0.0.1 or the equivalent of + localhost.localdomain +*/ +$dbhost = 'localhost'; +$dbname = 'phpbb'; +$dbuser = 'phpbb'; +$dbpasswd = ''; + +$table_prefix = 'phpbb_'; +$acm_type = 'file'; + +$url_forum = 'my.board'; + +define('PHPBB_INSTALLED', true); diff --git a/debian/examples/lighttpd.conf b/debian/examples/lighttpd.conf new file mode 100644 index 0000000..4bad866 --- /dev/null +++ b/debian/examples/lighttpd.conf @@ -0,0 +1 @@ +alias.url += ("/phpbb/" => "/usr/share/phpbb3/www/") |