How to install xml extension in php under linux

藏色散人
Release: 2023-04-08 12:14:02
forward
3543 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template