Package: phpbb3
Version: 3.0.7-PL1-4
Severity: normal
When trying to install virtualhost-based multiboards, the /install-XXX
path doesn't work. PHP returns the following error:
===========
PHP Fatal error: require(): Failed opening required
'./../includes/functions.php' (include_path='.:/usr/share/php:/usr/share/pear')
in /usr/share/phpbb3/install/index.php on line 155
===========
It appears that Apache or PHP is following the symlink when loading the
file, and thus can't trace back up to the parent folder to find the
includes.
My virtualhost config looks like this:
=============
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName board1.example.com
ServerAlias www.board1.example.com
DocumentRoot /usr/share/phpbb3/www
php_value session.save_path "/tmp/php5/board1.example.com"
php_value session.gc_probability 1
php_value auto_prepend_file /etc/phpbb3/board1.example.com.inc.php
</VirtualHost>
=============
And the auto_prepend_file looks like this:
=============
$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 = 'database.example.com';
$dbname = 'board1';
$dbuser = 'board1';
$dbpasswd = 'password';
$table_prefix = 'phpbb_';
$acm_type = 'file';
define('PHPBB_INSTALLED', true);
=============
I don't know if there's some setting that could be set in PHP or Apache to make
this work. The only other option I see is to patch the files in install/ so
that they include the www/ path part.
Cheers,
Eric Gerlach
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages phpbb3 depends on:
ii apache2 2.2.16-6+squeeze3 Apache HTTP Server metapackage
ii apache2-mpm-prefork [h 2.2.16-6+squeeze3 Apache HTTP Server - traditional n
ii dbconfig-common 1.8.46+squeeze.0 common framework for packaging dat
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii libapache2-mod-php5 5.3.3-7+squeeze3 server-side, HTML-embedded scripti
ii mysql-client 5.1.49-3 MySQL database client (metapackage
ii mysql-client-5.1 [mysq 5.1.49-3 MySQL database client binaries
ii php5 5.3.3-7+squeeze3 server-side, HTML-embedded scripti
ii php5-cli 5.3.3-7+squeeze3 command-line interpreter for the p
ii php5-gd 5.3.3-7+squeeze3 GD module for php5
ii php5-mysql 5.3.3-7+squeeze3 MySQL module for php5
ii ucf 3.0025+nmu1 Update Configuration File: preserv
Versions of packages phpbb3 recommends:
ii php5-imagick 3.0.0~rc1-1 ImageMagick module for php5
ii postfix [mail-transport 2.7.1-1+squeeze1 High-performance mail transport ag
Versions of packages phpbb3 suggests:
ii mysql-server 5.1.49-3 MySQL database server (metapackage
ii mysql-server-5.1 [mysql-serve 5.1.49-3 MySQL database server binaries and
pn phpbb3-l10n <none> (no description available)
-- debconf information:
phpbb3/database-type: mysql
phpbb3/mysql/admin-user: root
phpbb3/remote/host:
phpbb3/admin-pass-ask:
phpbb3/db/basepath:
phpbb3/httpd: apache2
phpbb3/db/app-user: phpbb3
phpbb3/remove-error: abort
phpbb3/admin-pass-mismatch:
phpbb3/dbconfig-reinstall: false
phpbb3/db/dbname: phpbb3
phpbb3/install-error: abort
phpbb3/upgrade-backup: true
phpbb3/admin-pass-requirements:
phpbb3/dbconfig-upgrade: true
phpbb3/purge: false
phpbb3/dbconfig-install: true
phpbb3/mysql/method: unix socket
phpbb3/missing-db-package-error: abort
phpbb3/pgsql/changeconf: false
phpbb3/remote/newhost:
phpbb3/pgsql/manualconf:
phpbb3/dbconfig-remove:
phpbb3/internal/reconfiguring: false
phpbb3/internal/skip-preseed: false
phpbb3/admin-pass-generated:
phpbb3/pgsql/authmethod-user:
phpbb3/upgrade-error: abort
phpbb3/pgsql/admin-user: postgres
phpbb3/remote/port:
phpbb3/pgsql/authmethod-admin: ident
phpbb3/pgsql/no-empty-passwords:
phpbb3/passwords-do-not-match:
phpbb3/pgsql/method: unix socket
--
Eric Gerlach
IT Manager | Federation of Students | University of Waterloo
(P) 519-888-4567 x 36329 | [email protected]
http://twitter.com/uwfeds | http://feds.ca
To Serve, Empower and Represent the Undergraduate Students of the University of
Waterloo
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]