Home  >  Article  >  Backend Development  >  How to install xml extension in php under linux

How to install xml extension in php under linux

藏色散人
藏色散人forward
2020-02-02 18:58:303542browse

How to install xml extension in php under linux

php Install xml extension under linux

1. Enter the PHP installation source package, find the ftp under ext, and enter

cd /home/local/php-5.6.25/ext/xml

2、/usr/local/php/bin/phpize

3、./configure --with-php-config=/usr/local/php/bin /php-config

4、make && make install

5、cp /usr/local/php/lib/php/extensions/ no-debug-zts-20131226/xml.so /usr/local/php/extension/xml.so

  vim /usr/local/php/etc/php.ini  添加 : extension=xml.so

6. Restartapache,/usr/local/apache/bin/ apachectl restart

7. Check whether the installation is successful:/usr/local/php/bin/php -m

Find the xml description successfully.

For more php related knowledge, please visit php tutorial!

The above is the detailed content of How to install xml extension in php under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete