Moodle & linux & php: extentions for moodle

Trabla: Moodle & linux & php: extention for moodle

Solving:

Official Info: https://docs.moodle.org/22/en/PHP

PHP Extensions and libraries
The following PHP extensions are required or recommended (some, e.g. iconv, ctype and tokenizer are now included in PHP by default). Others will need to be installed or selected.

The iconv extension is required.
The mbstring extension is recommended.
The curl extension is required (required for networking and web services).
The openssl extension is recommended (required for networking and web services).
The tokenizer extension is recommended.
The xmlrpc extension is recommended (required for networking and web services).
The soap extension is recommended (required for web services).
The ctype extension is required.
The zip extension is required.
The gd extension is recommended (required for manipulating images).
The simplexml extension is required.
The spl extension is required.
The pcre extension is required.
The dom extension is required.
The xml extension is required.
The intl extension is recommended.
The json extension is required.
the appropriate extension for your chosen database is required
Other PHP extensions may be required to support optional Moodle functionality, especially external authentication and/or enrolment (e.g. LDAP extension for LDAP authentication and the sockets extension for Chat server).

Installing php extention (Ubuntu Linux):

sudo apt-get install php5-iconv 
sudo apt-get install php5-mbstring 
sudo apt-get install php5-curl
sudo apt-get install php5-openssl 
sudo apt-get install php5-tokenizer 
sudo apt-get install php5-xmlrpc 
sudo apt-get install php5-soap
sudo apt-get install php5-ctype 
sudo apt-get install php5-zip 
sudo apt-get install php5-gd 
sudo apt-get install php5-simplexml 
sudo apt-get install php5-spl 
sudo apt-get install php5-pcre 
sudo apt-get install php5-dom 
sudo apt-get install php5-xml 
sudo apt-get install php5-intl 
sudo apt-get install php5-json 

PostgreSQL DB:
sudo apt-get install php5-pgsql



Restar apache:

sudo service apache2 restart

No comments:

Post a Comment