PHP is a widely used open-source server-side scripting language. It is most commonly used as a platform for developing web applications. PHP is free, highly configurable, and has a large community of developers.
In this post, We will install PHP and php-xmlwriter on ubuntu 18.04 / 22.04 LTS
Step 1: Update and Upgrade the System
You need to use the given command to update ubuntu repository and upgrade the packages.
sudo apt-get update && sudo apt-get upgrade -y
Step 2: Installing PHP XMLWriter Module
This is very easy to install PHP module, You need to install PHP if PHP already installed so then you 2nd command.
sudo apt-get install php -y
After installation of PHP, You need to verify it.
To install XMLWriter
sudo apt-get install php-xml -y
Veify the PHP xmlwriter module by using the given command.
php -m | grep xml
Note : You are using Apache2 web server so you need to restart the Apache2 web server to get changes, Execute the following command for the same.
sudo systemctl restart apache2
We have successfully installed php xmlwriter on ubuntu server, Kindly report in case you are facing difficulties with following details.
- OS name
- OS version
- Package name
- Logs – Error / Warning / failed