Home > Backend Development > PHP Tutorial > ubuntu装配php-curl扩展

ubuntu装配php-curl扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:57:53
Original
917 people have browsed it

ubuntu安装php-curl扩展

ubuntu安装curl扩展很简单。

1.查询CURL在UBUNTU中支持的名字(可略过)

apt-cache search curl | grep php
可能会返回如下内容:
php5-curl - CURL module for php5

2.安装:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl


3.重启apache
sudo /etc/init.d/apache2 restart

?

4.如果仍然有问题,尝试编辑你的php.ini文件(我的是/etc/php5/apache2/php.ini),在最后加上一行:

extension=curl.so

保存文件后重启Apache服务器。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
curl simulated login
From 1970-01-01 08:00:00
0
0
0
Convert cURL command line to PHP cURL code
From 1970-01-01 08:00:00
0
0
0
Convert command line cURL to PHP cURL
From 1970-01-01 08:00:00
0
0
0
How to set boolean value true in php curl
From 1970-01-01 08:00:00
0
0
0
Please tell me, php curl request page shows blank
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template