Install PHP extension in Linux

Source: Internet
Author: User

Author: zccst

Extensions for installation include soap, pdo_mysql, and curl.

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 will prompt the path to generate the file curl. So:/usr/local/PHP/lib/PHP/extensions/no-debug-non-zts-20060613/

Go to this path and copy the curl to the extension_dir directory (you can view phpinfo in this directory, but you can view php.int directly ),
Modify PHP. ini
Extension = curl. So

#/Usr/local/PHP/bin/PHP-m
If a curl entry is displayed, the operation is successful.

Restart Apache
#/Usr/local/apache2/bin/apachectl stop
#/Usr/local/apache2/bin/apachectl start

Now, the curl item is displayed in 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.