Company project needs, registration need to verify the mobile phone number, which requires lamp support curl.
Since the installation of the platform in advance, and did not notice this point, so when compiling PHP5, and did not use the parameter--with-curl.
Later when needed, look up some reference methods, such as:
http://blog.csdn.net/chamtianjiao/article/details/6146281
Http://jingyan.baidu.com/article/a681b0de39c47d3b1943467a.html
Following these methods, after configuring the php.ini, restarting the Apache service will fail. All services have failed.
Later reference HTTP://ASKUBUNTU.COM/QUESTIONS/9293/HOW-DO-I-INSTALL-CURL-IN-PHP5
Install Curl successfully and start the Apache service.
The steps are as follows:
1. Install Curl
sudo apt-get update
sudo apt-get install php5
sudo apt-get install LIBAPACHE2-MOD-PHP5
sudo apt-get install curl libcurl3 Libcurl3-dev Php5-curl
2. Change the php.ini configuration
cd/etc/php5/apache2/
sudo vim php.ini
My profile is modified with 733 lines as follows:
; Directoryinch whichThe loadable Extensions (modules) reside.
; http//Php.net/extension-dir
Extension_dir ="/usr/lib/php5/20100525+lfs/"
Extension = curl.so
; On Windows:
; Extension_dir ="ext"
is to configure the Extension_dir path, and the extension file name.
3. Restart Service
sudo service apache2 restart