Ubuntu PHP ZIP Extension Install Commands Example
Hey Artisan,
Today, I would like to show you how to install php zip extension in ubuntu. you will learn ubuntu php install zip extension. if you want to see an example of install php zip extension ubuntu 20.04 then you are in the right place. you will learn install php zip extension ubuntu. Let's get started with ubuntu install php zip extension.
We can install php zip extension using php-zip library. i will give you following list of commands to install php zip extension in ubuntu 22.10, ubuntu 22.04, ubuntu 21.10, ubuntu 21.04, ubuntu 20.04, ubuntu 18.04 and ubuntu 16.04 server.
Install php-zip Extension:
Solution:
You need to run both commands one by one:
sudo apt-get install php-zip
Solution for PHP 8.2
You need to run both command one by one:
sudo apt-get install php8.2-zip
Solution for PHP 8.1
You need to run both command one by one:
sudo apt-get install php8.1-zip
Solution for PHP 8.0
You need to run both command one by one:
sudo apt-get install php8.0-zip
Solution for PHP 7.4
You need to run both command one by one:
sudo apt-get install php7.4-zip
Solution for PHP 7.3
You need to run both command one by one:
sudo apt-get install php7.3-zip
Solution for PHP 7.2
You need to run both command one by one:
sudo apt-get install php7.2-zip
Restart Apache Server:
Now, restart apache2 server using following command:
sudo service apache2 restart
Check php-zip Extension Installed:
Here, we will run following command to check extension is installed or not:
php -m | grep -i zip
Output:
I hope it can help you...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Increase upload_max_filesize in PHP Ubuntu?
- How to Check Apache Access & Error Log Files in Ubuntu Server?
- How to Whitelist/Allow IP Address in Apache Ubuntu?
- How to Restrict/Block IP Address in Apache Ubuntu?
- How to Change PHP Version in Ubuntu Server?
- How to Install MySQL in Ubuntu Server?
- How to Connect SSH using ppk File Ubuntu?
- How to Connect to a Remote Server using SSH on Ubuntu?
- How to Upgrade PHP Version from 7.4 to 8 in Ubuntu?
- How to Import Database in Mysql using Command Line in Ubuntu?
- How to Enable Apache mod_rewrite Module in Ubuntu?
- How to Increase Upload File Size Limit PHP in Ubuntu?
- How to Upgrade Node.js Version in Ubuntu?
- How to Enable Rewrite Mode for Apache in Ubuntu?