Koozali.org: home of the SME Server

Mediawiki with PwAuthPlugin

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Mediawiki with PwAuthPlugin
« on: March 15, 2012, 04:27:46 AM »
I am trying to get MediaWiki to work with local user accounts using the PwAuthPlugin on my SME8 server.

However, this plugin errors with the call to the posix function:

Code: [Select]
PHP Fatal error:  Call to undefined function posix_getpwnam() in /home/e-smith/files/ibays/wiki/html/extensions/PwAuthPlugin.php on line 60
It appears that php-process needs to be installed to enable the posix functions.

I tried following the instructions in http://wiki.contribs.org/PHPki where it is suggested to install php-process from smedev with

 
Code: [Select]
yum --enablerepo=smedev install php-process
but this ends up in an unresolved dependency that seems to be a loop:

 
Code: [Select]
Resolving Dependencies
 --> Running transaction check
 ---> Package php-process.i386 0:5.3.3-1.el5.sme.6 set to be updated
 --> Processing Dependency: php-common = 5.3.3-1.el5.sme.6 for package: php-process
 --> Finished Dependency Resolution
 php-process-5.3.3-1.el5.sme.6.i386 from smedev has depsolving problems
   --> Missing Dependency: php-common = 5.3.3-1.el5.sme.6 is needed by package php-process-5.3.3-1.el5.sme.6.i386 (smedev)
 Error: Missing Dependency: php-common = 5.3.3-1.el5.sme.6 is needed by package php-process-5.3.3-1.el5.sme.6.i386 (smedev)

but php-common seems to be installed:

Code: [Select]
# rpm -q php-common
 php-common-5.3.3-1.el5.sme.3
although I am not sure what the distinction between the 3 and the 6 at the end of the package name. At least yum seems to think they are same.

Also when I do:

 
Code: [Select]
yum install php-process
I get

 
Code: [Select]
Resolving Dependencies
 --> Running transaction check
 ---> Package php53-process.i386 0:5.3.3-5.el5 set to be updated
 --> Processing Dependency: php53-common = 5.3.3-5.el5 for package: php53-process
 --> Running transaction check
 ---> Package php53-common.i386 0:5.3.3-5.el5 set to be updated
 --> Processing Conflict: php53-common conflicts php-common
 --> Finished Dependency Resolution
 php53-common-5.3.3-5.el5.i386 from base has depsolving problems
   --> php53-common conflicts with php-common
 Error: php53-common conflicts with php-common

Anybody any thoughts? And why are there php53 packages in the contribs repo?

Adelaide - Australia

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: Mediawiki with PwAuthPlugin
« Reply #1 on: March 19, 2012, 06:46:06 PM »
Having the same problem. entered bug http://bugs.contribs.org/show_bug.cgi?id=6875

Check the bug. The answer solved my problem.  :-)
« Last Edit: March 21, 2012, 12:53:14 PM by crazybob »
If you think you know whats going on, you obviously have no idea whats going on!

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: Mediawiki with PwAuthPlugin
« Reply #2 on: April 11, 2012, 03:28:34 PM »
Check the bug. The answer solved my problem.  :-)

Thanks crazybob! I used yum --enablerepo=smedev install php-process-5.3.3-1.el5.sme.3 and after a web server restart, the PwAuthPlugin.php plugin jumped to life.

Cheers,

Marco
Adelaide - Australia