Detailed steps of installing xml extension on php under linux

  • 2021-07-18 09:38:30
  • OfStack

Installing xml extension under php linux

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


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

2. Step 2


/usr/local/php/bin/phpize

3. Step 3


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

4. Step 4


make && make install

5. Step 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  Add  : extension=xml.so

6. Restart apache


/usr/local/apache/bin/apachectl restart

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

Finding xml indicates success.

The above is linux under php installation xml extension method details, if you have any supplement in the study can contact this site this site.


Related articles: