Two Methods for installing mbstring extension in php in linux _ php instance

Source: Internet
Author: User
This article mainly introduces two methods for installing the mbstring extension in php in a linux system. For details, refer to use it. 1. Execute

The Code is as follows:


Yum install php-mbstring

2. Modify php. ini (this step is very important, and some lxadmin versions cannot be modified automatically)

The Code is as follows:


Echo 'extension = mbstring. so'>/etc/php. ini # depends on the php installation directory.

3. Restart web service

For apache: service httpd restart


Method 2:
Python 5.36
Installation Directory:/usr/local/php

The Code is as follows:


# Cd/usr/src/php-5.3.6/ext/mbstring
#/Usr/local/php/bin/phpize
#./Configure -- with-php-config =/usr/local/php/bin/php-config
# Make & make install
Echo 'extension = mbstring. so'>/usr/local/php/lib/php. ini
#/Usr/local/apache2/bin/apachectl restart

Use/usr/local/php/bin/php-v # Check whether the configuration is correct
Use php.info to check whether mbstring is successfully installed.

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.