How to install mbstring extension in php in linux _ PHP Tutorial

Source: Internet
Author: User
Install the mbstring extension in php in linux. 1. run the Copy code as follows: yuminstallphp-mbstring2. modify php. ini (this step is very important, some lxadmin versions cannot be automatically modified) copy the code as follows: echo 'exte 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.

The authorization 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): echo 'exte...

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.