hi all,
System :
Linux XXXXXXXXX 2.4.21-37.0.1.EL #1 Wed Jan 11 18:52:43 EST 2006 i686
i686 i386 GNU/Linux
Plesk 7.5.4 Reloaded
PHPWiki phpwiki-1.3.11p1tarball from sf.net
Relevant RPMS:
php-4.3.2-26.ent
php-imap-4.3.2-26.ent
php-ioncube-loader-1.0-rhel3.build051222.05
php-ldap-4.3.2-26.ent
php-mysql-4.3.2-26.ent
php-pgsql-4.3.2-26.ent
php-xslt-1.0-0
PEAR:
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.1 stable
Auth_SASL 1.0.1 stable
Cache 1.5.4 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
HTTP 1.4.0 stable
HTTP_Request 1.3.0 stable
Mail 1.1.9 stable
Net_SMTP 1.2.8 stable
Net_Socket 1.0.6 stable
Net_URL 1.0.14 stable
PEAR 1.4.6 stable
XML_Parser 1.2.7 stable
XML_RPC 1.4.5 stable
libdbi-dbd-mysql-0.6.5-5
mysql-3.23.58-16.RHEL3.1
mysql-devel-3.23.58-15.RHEL3.1
mysql-server-3.23.58-16.RHEL3.1
php-mysql-4.3.2-26.ent
PHP Safe mode : off.
PHP Error level = E_ALL
PHP Error Log = true
----
Issue: after configuring phpwiki with the configurator, loading
[hostname]/wiki produces no output whatsoever. No error in error logs.
No contacting the DB at all (watching mysql query log)
Running (from memory)
php -f < index.php
from the cmd line in a term , as root, populated the DB with pgsrc as it
should.
after a very interesting trip into the guts of phpwiki, i realised the
culprit was the call to pear's DB.php in lib/WikiDB/backend/PearDB.php ,
@require_once('DB/common.php');
Removing the @ showed the following in my error log:
---
Feb 20 00:03:53 sigma httpd: PHP Fatal error: wikidb_backend_peardb():
Failed opening required 'DB/common.php'
(include_path='/home/httpd/vhosts/xxxx/subdomains/yyy/httpdocs/wiki:/home/httpd/vhosts/xxxx/subdomains/yyy/httpdocs/phpwiki-1.3.11p1:.:/usr/share/pear:/home/httpd/vhosts/xxx/subdomains/yyy/httpdocs/phpwiki-1.3.11p1/lib/pear:/home/httpd/vhosts/xxxsubdomains/web20/httpdocs/wiki/lib/pear')
in /home/httpd/vhosts/xxx/subdomains/yyy/httpdocs/wiki/lib/Wik
---
include path in my config.ini includes /usr/share/pear.
Anyway, my commenting out that initial call to look for the PEAR file,
it simply did a silent fallback to the DB.php included with phpwiki and
everything seems to be sorted. Please note that , although this should
be the default fallback, the script was FAILING on that first
require_once line , silently, and no output whatsover generated.
Is there something obvious i'm missing ? Something wrong with my setup?
(I understand the issue is that the php instance in my subdomain
couldn't locate the pear files , although it was the path was defined in
the include path setting....)
I can provide other info as needed for proper documentation / fix.
Regards,
Beto
|