Without re-compiling php, add a dynamic module (taking the mbstring module as an example)-php Tutorial

Source: Internet
Author: User
Without re-compiling php, add a dynamic module (taking the mbstring module as an example). 1. enter the mbstring directory in the php source code directory.
Cd/usr/local/src/php-5.2.4/ext/mbstring/

2. execute the bin/phpize file in the directory after php installation.
/Usr/local/php/bin/phpize

3. go to the php source code directory.
Cd/usr/local/src/php-5.2.4/

4. execute the configure file in the preceding directory.
./Configure -- prefix =/usr/local/src/php-5.2.4/ext/mbstring -- with-php-config =/usr/local/php/bin/php-config

5 make; make install
Install mbstring. so to/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/

6. edit php. ini and add a line.
Extension = mbstring. so

7. restart httpd.
Service httpd restart
(If it is in php-cgi mode, first kill all the php-cgi processes and then restart httpd)

After trying the above methods, I feel laborious and thankless. Because it is unclear, it cannot be compiled into mbstring. so. Finally, we found a php-mbstring rpm Package for CentOS on pbone to install it successfully. In any case, the rpm package is better than the above method.

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.