Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install PHP extension zip,zlib in linux server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install the PHP extension zip,zlib in the linux server, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

First of all, the Linux server has installed PHP

Download each version of PHP from: http://php.net/releases/

Taking the 5.4.45 I used as an example, I put the downloaded package in the / root/Downloads/ directory

Extract the package: tar-xzvf php-5.4.45.tar.gz

Install PHP (ignore)

Now take installing the zip extension as an example

> > cd / root/Downloads/php-5.4.45/ext/zip

> > find /-name phpize

> > / usr/local/php/bin/phpize # generate some version configuration files

>. / configure-- with-php-config=/usr/local/php/bin/php-config

> > make & & make install

The last step will tell you the compiled address after the installation is successful:

Build complete. Don't forget to run 'make test'. Installing shared extensions: / usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/

Modify php.ini

> > find /-name php.ini# view the configuration file location

> > vi php.ini # modify php.ini and add extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/zip.so

> >: wq # Save and exit

Restart the server

> > service nginx restart

> > service php-fpm restart

Check phpinfo ().

Thank you for reading this article carefully. I hope the article "how to install PHP extension zip,zlib in linux server" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report