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 the php curl extension in linux?

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

Share

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

1. Install curl

You need to install curl first, as follows:

Cd / usr/localwget http://curl.haxx.se/download/curl-7.44.0.tar.gztar zxf curl-7.44.0.tar.gzmv curl-7.44.0.tar.gz curlcd curl./configuremakemake install

2. Install the PHP curl extension

Go to ext/curl under the PHP installation directory and execute the following command:

Cd / usr/local/php/ext/curlphpize./configure-with-php-config=/usr/local/php/bin/php-config-with-curl=/usr/local/curlmakemake install

3. Modify the php.ini file to enable curl extension

Vim / usr/local/php/lib/php.ini# found; under extension=shmop (get other extensions below) add the following line: extension=curl.so

4. Restart php-fpm

These are the details of the curl extension for installing php under linux. Please pay attention to other related articles for more.

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