Question

How to install PHP modules

Posted July 20, 2014 68.7k views

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

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.

×
4 answers

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?

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

In modules installation for LAMP and could install WordPress.

by Etel Sverdlov
This tutorial explains how to install Apache, how to install MySQL, how to change the root MySQL password, how to install PHP, and how to see what libraries are available. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache ( the web server) , MySQL (the database), and PHP (the language). This tutorial is written for Ubuntu.

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

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

by Erika Heidi
A “LAMP” stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP. In this guide, we will install a LAMP stack on an Ubuntu 20.04 server.
Submit an Answer