Installing and upgrading help

Apache Friends php.ini need to use code for xmlrpc/php

 
Picture of Rex Mueller
Apache Friends php.ini need to use code for xmlrpc/php
 
I am the Unix admin for our entity,
I am using Apache Friends on Fedora FC9, for moodle, Our moodle admin wants to be able to crosswalk course permissions between instances of moodle on the same box.

She indicated we need the extension=php_xmlrpc in the php.ini

the instructions on your site assumes a standard Fedora installation of Apache/PHP/Mysql. ApacheFriends has a different structure .. the /opt/lampp/etc/php.ini is where the php.ini file exists. The trick now is HOW to I make sure my PHP under apachefriends finds the correct xmlrpc object file?

Any one with that experience I'd appreciate the insight.




 
Average of ratings: -
Picture of Rex Mueller
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
I found the resolution by trial for anyone else using apachefriends.

do the yum install xmlrpc

then copy the xmlrpc.so from

/usr/lib/php/modules/xmlrpc.so

TO

/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/xmlrpc.so


(or what ever your default extensions directory is.)



Then add the line
extension="xmlrpc.so"

to the /opt/lampp/etc/php.ini
 
Average of ratings: -
Picture of Richard Enison
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
RM and Moodle/PHP/Apache fans everywhere,

I would only add that the default extensions directory should be the one identified in php.ini by the extension_dir setting.

RLE
 
Average of ratings: -
Picture of Jose Antonio M M
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
Hello. I have just followed your instructions but when I restart lampp in Ubuntu 9.04 I get the following message in the terminal:

PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/xmlrpc.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/xmlrpc.so: wrong ELF class: ELFCLASS64 in Unknown on line 0

I do have the directory you mention: /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613 ahd have copied the xmlrpc.so there. But in php.ini I find:
; Directory in which the loadable extensions (modules) reside.
;extension_dir = /opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/
;extension_dir = /opt/lampp/lib/php/extensions/no-debug-non-zts-20040412/

I have tried adding the name of my direction (with and without semicolon) but I still get the same output, so I guess the problem has to do with that ELF class which I don't know what it is.

Could anybody please help?

Thanks,
 
Average of ratings: -
Picture of Jose Antonio M M
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
I keep trying to solve this issue with xmlrpc. The only step I didn't follow from the above instructions is that I copied the xmlrpc from /usr/lib/php5/20060613 because I don't have a php folder in the lib directory.

I attach a screenshot of the different packages Synaptic offers to install. I chose php5-xmlrpc. I must also say I am running Ubuntu 9.04 64-bit.

I don't think there is anything on this topic in the Moodle documentation. I would appreciate your help. Thanks,

jmm

 
Average of ratings: -
Head
Re: Apache Friends php.ini need to use code for xmlrpc/php
Particularly helpful MoodlersPlugin developersTesters
How have you installed PHP5 on your ubuntu box?

Did you use Synaptic?

Jon
 
Average of ratings: -
Picture of Jose Antonio M M
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
Yes, I used Synaptic and copied the resulting xlmprpc.so following the process described in my 2 posts above and the previous post with the instructions I followed. Afterwards, I uninstalled again apache2 and php5-xlmrpc via Synaptic because I use Lampp.

I still cannot get it to work. Thanks for your interest,
 
Average of ratings: -
Head
Re: Apache Friends php.ini need to use code for xmlrpc/php
Particularly helpful MoodlersPlugin developersTesters
Jose,

If you are using Ubuntu, why are you following instructions and settings for Fedora? There are some very good documentation pages on installing with Ubuntu here: http://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu

Jon
 
Average of ratings: -
Picture of Jose Antonio M M
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
It may be good, Jon, but for testing purposes I use Lampp, as many others (1/2 million monthly downloads). Neither apachefriends.org nor moodle.org has any documentation on how to add xmlrpc to Lampp. And it is frustrating. But thanks for your attention,

Jose
 
Average of ratings: -
Head
Re: Apache Friends php.ini need to use code for xmlrpc/php
Particularly helpful MoodlersPlugin developersTesters
But if you use Ubuntu you can test on the a standard LAMP stack (installed as described in the docs) in under half an hour...

Why make it more complicated than it need be?
 
Average of ratings: -
Picture of Jose Antonio M M
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
You are probably right. Therefore I have installed the LAMP stack and it works without problems.

Then I needed to migrate my moodle site:

sudo cp -p -R /opt/lampp/htdocs/moodle /var/www

sudo cp -p -R /opt/lampp/moodledata /var/moodledata

sudo cp -p -R /opt/lampp/var/mysql/moodle /var/lib/mysql

sudo /etc/init.d/apache2 restart

And it doesn't work! I am sorry but can you offer any help?

jmm
 
Average of ratings: -
Head
Re: Apache Friends php.ini need to use code for xmlrpc/php
Particularly helpful MoodlersPlugin developersTesters
The last copy (the mysql one) will not work. You need to dump the old mysql database then create a new mysql database and restore your dump to it...
 
Average of ratings: Useful (1)
Picture of Jose Antonio M M
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
Ok. Done and finally working. Thanks so much!
 
Average of ratings: -
Head
Re: Apache Friends php.ini need to use code for xmlrpc/php
Particularly helpful MoodlersPlugin developersTesters
No problem. Glad you have it all working now.

Jon
 
Average of ratings: -
Picture of UTEA Project
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
Hi!

I've got a similar problem. Exactly with XAMPP >1.6: php5-xmlrpc package (.so), php 5.3, Ubuntu Karmic Koala.

Anyone has arrived a solution without discarting XAMPP? I have no experience with LAMP stack and I'd like keep using those facilities.

Thanks in advance!


 
Average of ratings: -
Picture of Howard Miller
Re: Apache Friends php.ini need to use code for xmlrpc/php
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers
I have to say it's mad running Moodle under XAMPP on Ubuntu Karmic. It would probably have taken you less time to figure it out "properly" than use Xampp.

At a glance, this documentation should do the trick.... any problems we will track down and update the docs...

http://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu#Hardy_Heron_8.04
 
Average of ratings: -
Picture of UTEA Project
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
Hello Howard.

Im going to check that guide and improve it if possible!

Thanks!


 
Average of ratings: -
Picture of Howard Miller
Re: Apache Friends php.ini need to use code for xmlrpc/php
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers
Let me/us know if you run into any problems. Happy to help !!
 
Average of ratings: -
Starting small...
Re: Apache Friends php.ini need to use code for xmlrpc/php
 
For those of you having errors, be sure that the XMLRPC plugin you are using are for the same PHP version on your machine as it is on XAMPP.

In my own case, I have Apache configure on port 80 for my CentOS 5.3 and it run on PHP 5.2.14 and I had XAMPP configure on port 81 and it run on PHP 5.2.9..........5.2.9 and 5.2.14 are very close. Don't try it with PHP 5.2 and 5.3.

Check your Machine PHP version with "php -v" at command line
You can use "php info" in xampp page to view its php version
 
Average of ratings: -