admin/environment/php extension/xmlrpc: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) m (category edit) |
(CentOS and Fedora now use dnf instead of yum, Ubuntu/Debian won't be using php5-XXX now.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
To install the xmlrpc library on Windows | {{Environment}} | ||
To install the xmlrpc library on Microsoft Windows: | |||
#Open the ''php.ini'' file found in the ''moodle/apache/bin'' folder | #Open the ''php.ini'' file, depending on your installation this may be found in the ''moodle/apache/bin'' folder | ||
#Find the line: <code>;extension=php_xmlrpc.dll</code> | #Find the line: <code>;extension=php_xmlrpc.dll</code> | ||
#Remove the <code>;</code> at the beginning of the line | #Remove the <code>;</code> at the beginning of the line | ||
# | #If necessary restart the web server, e.g. IIS or Apache. | ||
To install the xmlrpc library on Linux/Unix | To install the xmlrpc library on Linux/Unix | ||
If you are using PHP as provided by the OS, you can just install the appropriate package, and restart | If you are using PHP as provided by the OS, you can just install the appropriate package, and restart the service (e.g. PHP-FPM or Apache): | ||
* On Ubuntu and Debian, the command is: apt-get install | * On Ubuntu and Debian, the command is: apt-get install php-xmlrpc | ||
* On RedHat, Fedora, CentOS and SuSE, the command is: | * On RedHat, Fedora, CentOS and SuSE, the command is: dnf install php-xmlrpc | ||
If you compiled your PHP from source | If you compiled your PHP from source: | ||
# You need to recompile PHP from source | # You need to recompile PHP from source | ||
Line 19: | Line 20: | ||
[[Category:Environment| | [[Category:Environment|PHP extension]] | ||
[[Category:MNet]] | [[Category:MNet|PHP]] | ||
[[fr:admin/environment/php extension/xmlrpc]] | [[fr:admin/environment/php extension/xmlrpc]] | ||
[[es:admin/environment/php extension/xmlrpc]] |
Latest revision as of 10:28, 17 September 2020
To install the xmlrpc library on Microsoft Windows:
- Open the php.ini file, depending on your installation this may be found in the moodle/apache/bin folder
- Find the line:
;extension=php_xmlrpc.dll
- Remove the
;
at the beginning of the line - If necessary restart the web server, e.g. IIS or Apache.
To install the xmlrpc library on Linux/Unix
If you are using PHP as provided by the OS, you can just install the appropriate package, and restart the service (e.g. PHP-FPM or Apache):
- On Ubuntu and Debian, the command is: apt-get install php-xmlrpc
- On RedHat, Fedora, CentOS and SuSE, the command is: dnf install php-xmlrpc
If you compiled your PHP from source:
- You need to recompile PHP from source
- add --with-xmlrpc to the command line when you run configure