Mediawiki + OpenID on fedora 9


I've been looking at OpenID under fedora more closely and found that the php-pear-Auth-OpenID package is maintained by Axel Thimm. I also found that there are bugreports running aginst this package and that the last mail related to one of those bugs was sent today.

This mail contains a link to the source RPM and specfile, which is reason enough for me to give it a go.


First, build and install php-pear-Auth-OpenID


yum install rpm-build php-pear php-bcmath php-pear-Net-Curl
mkdir -p /usr/src/redhat

cd /tmp
wget http://dl.atrpms.net/all/php-pear-Auth-OpenID-2.1.1-5.src.rpm
rpm -i php-pear-Auth-OpenID-2.1.1-5.src.rpm

cd /usr/src/redhat/SPECS/
rpmbuild -ba php-pear-Auth-OpenID.spec

rpm -i ../RPMS/noarch/php-pear-Auth-OpenID-2.1.1-5.fc9.noarch.rpm


Make some forgotten symlink...

ln -s /usr/share/pear/Auth_OpenID/ /usr/share/pear/Auth


Next, install mediawiki-openid from ATrpms


(cat <<EOF;
[atrpms]
name=Fedora Core \$releasever - \$basearch - ATrpms
baseurl=http://dl.atrpms.net/f\$releasever-\$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
EOF
) > /etc/yum.repos.d/atrpms.repo

yum install mediawiki-openid


Finally, set up mediawiki-openid

ln -s /usr/share/mediawiki/extensions/ /var/www/wiki/
mysql wikidb < /usr/share/doc/mediawiki-openid-0.8.2/openid_table.sql
echo 'require_once("$IP/extensions/OpenID/OpenID.setup.php");' >> /var/www/wiki/LocalSettings.php


And the result ? It doesn't work ! How exciting

I keep getting errors like these:

[Tue Jul 22 15:59:58 2008] [error] [client 172.16.1.2] PHP Warning: Missing argument 2 for OpenIDArticleViewHeader() in /usr/share/mediawiki/extensions/OpenID/OpenID.setup.php on line 168
[Tue Jul 22 15:59:58 2008] [error] [client 172.16.1.2] PHP Warning: Missing argument 3 for OpenIDArticleViewHeader() in /usr/share/mediawiki/extensions/OpenID/OpenID.setup.php on line 168
[Tue Jul 22 15:59:58 2008] [error] [client 172.16.1.2] PHP Fatal error: Call to undefined function wfLoadExtensionMessages() in /usr/share/mediawiki/extensions/OpenID/OpenID.setup.php on line 153