Question

How to install PHP modules

  • Posted on July 20, 2014
  • edmundoAsked by edmundo

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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