Home >Backend Development >PHP Tutorial >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!