Question

How to install PHP modules

  • Posted July 20, 2014

I have tried to install WordPress, but at the moment of install modules, indicate me error, please put code of all modules.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @edmundo

I will recommend you to check our existing tutorials on how to setup LAMP stack on Ubuntu 20.04:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04

or LEMP stack:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-20-04

You can also check the following article:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-20-04-with-a-lamp-stack

The following extensions are required for your WordPress installation:

dom
gmagick
SimpleXML
ssh2
xml
xmlreader
curl
date
exif
filter
ftp
gd
hash
iconv
imagick
json
libxml
mbstring
mysqli
openssl
pcre
posix
sockets
SPL
tokenizer
zlib

Although you should still be good to run the site with the basic extensions, it’s just each WordPress plugin has its own set of requirements. Some may require additional PHP packages to be installed. Check your plugin documentation to discover its PHP requirements. If they are available, they can be installed with apt as demonstrated above.

Hope that this helps! Regards, Alex

u may get list of all available php modules by typing

aptitude search php5-

in your terminal window.

Then, to install chosen one, type

aptitude install MODULENAME

or if many:

aptitude install MODULENAME1 MODULENAME2 MODULENAME3

PHP modules are installed by your system package manager if you are using the system php package. Are you missing a particular module? What distribution are you using?