0

I'm trying to install KnowledgeTree Community Edition on my CentOS VPS. One of the requirements for this was ZendServer - Which I had to install via their universal installer as installing via YUM was just straight out failing. I assume due to CPanel...

Anyway, I got ZendServer installed and then downloaded the source of KnowledgeTree and dumped it in my webroot. When trying to run the web installer, however, I get:

Missing required extension: XMLRPC

ZendServer reports XMLRPC is turned on. I've downloaded, via YUM, xmlrpc and php-xmlrpc. I can't get this error to go away.

I don't think it's necessarily got anything to do with KnowledgeTree. According to Google, I'm the only person having this issue. So how can I get XMLRPC working on PHP? Despite the fact ZendServer already thinks it is working...

Charles
  • 50,943
  • 13
  • 104
  • 142
dave
  • 7,717
  • 19
  • 68
  • 100

1 Answers1

0

Freshly-installed PHP extension packages won't be recognized by the process running PHP (usually a web server) until it is restarted/bounced/whatnot.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • I just stopped ZendServer, restarted Apache via CPanel and then started ZendServer again. It's still reporting 'Missing required extension: XMLRPC' – dave Jan 18 '10 at 02:24
  • Did you install CPanel's php-xmlrpc package? Do `phpinfo()` or `php -m` list the xmlrpc module? – Ignacio Vazquez-Abrams Jan 18 '10 at 02:28
  • Nah, it's not showing 'xmlrpc'. I installed php-xmlrpc via SSH. Should I remove that (via YUM) and install it via CPanel? – dave Jan 18 '10 at 02:32
  • I don't know all of CPanel's internals. you can run `rpm -qa '*php*'` to list all installed PHP packages, and then extrapolate the relevant package name to install from that. – Ignacio Vazquez-Abrams Jan 18 '10 at 02:35
  • CPanel is reporting XMLRPC and I just installed XMLRPC2 (via CPanel) but `php -m` isn't showing XMLRPC :/ – dave Jan 18 '10 at 02:49
  • The `php` executable may be using different modules from the php running in the web server. Trust the web server if it's what you need. – Ignacio Vazquez-Abrams Jan 18 '10 at 02:56
  • But XMLRPC isn't being reported as a loaded module in the output of phpinfo(). It only shows `xmlrpc_error_number` and `xmlrpc_errorserrors` under Core Configuration. The only place where XMLRPC is reported to be working is ZendServer. KnowledgeTree is still reporting it's missing >. – dave Jan 18 '10 at 02:58
  • ... Okay, I admit that I'm stumped then. Perhaps your web server isn't using CPanel's PHP after all... – Ignacio Vazquez-Abrams Jan 18 '10 at 03:01
  • Any ideas on what I can do to check/solve this? Can I check for multiple instances of PHP? Getting XMLRPC installed is proving to be a PITA – dave Jan 18 '10 at 03:13
  • Unfortunately nothing in `phpinfo()` indicates which one is being used. You could try sifting through `rpm -qa '*php*'`, but removing the wrong one may break CPanel. – Ignacio Vazquez-Abrams Jan 18 '10 at 03:20
  • The only output I receive from `rpm -qa '*php*'` is `php-common-5.1.6-24.el5_4.5`, `php-xmlrpc-5.1.6-24.el5_4.5` o.0 – dave Jan 18 '10 at 03:31
  • I'm thinking I'll need to recompile PHP to include '--with-xmlrpc' or whatever the flag is... But how do I go about doing this? Will it break CPanel/Webhost Manager? – dave Jan 18 '10 at 04:06