Install PHP extensions in Linux environment __linux

Source: Internet
Author: User

Author: zccst

Installed extensions include: SOAP, pdo_mysql, curl, etc.

1, install Curl

Cd/lamp/php-5.2.6/ext/curl

#/usr/local/php/bin/phpize
#./configure--with-php-config=/usr/local/php/bin/php-config
# make
# make Install
Here you will be prompted to generate a file curl.so path:/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/

Into this path, copy curl to the Extension_dir directory (this directory path can be seen phpinfo but directly to see PHP.INT),
Modify PHP.ini
Extension=curl.so

#/usr/local/php/bin/php-m
If you see a curl item that indicates success.

Restart Apache
#/usr/local/apache2/bin/apachectl Stop
#/usr/local/apache2/bin/apachectl Start


Successfully, you can see the curl items in the phpinfo.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.