What are common pitfalls when installing PHP with modules?

Common pitfalls when installing PHP with modules include not enabling the necessary modules in the php.ini file, not properly configuring the module settings, and not restarting the web server after installing the modules. To solve these issues, make sure to enable the required modules in the php.ini file, configure the module settings correctly, and restart the web server to apply the changes.

; Enable the necessary modules in php.ini
extension=module_name.so

; Configure the module settings
module_name.setting = value

; Restart the web server after installing the modules
sudo service apache2 restart