Detailed steps to install xml extension in php under linux

Detailed steps to install xml extension in php under linux

Installing XML extension in 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 is successful: /usr/local/php/bin/php -m

Found the xml description successfully.

The above is the detailed content of how to install XML extension in PHP under Linux. If you have any supplements when learning, you can contact the editor of 123WORDPRESS.COM.

You may also be interested in:
  • PHP uses expat to parse XML files
  • Case analysis of array conversion to XML implemented in PHP
  • Summary of examples of PHP reading XML files [DOMDocument and simplexml methods]
  • PHP method example of creating XML [based on DOMDocument class and SimpleXMLElement class]
  • Tutorial on using PHP to manipulate XML

<<:  Vue3.0 implements the magnifying glass effect case study

>>:  JavaScript event loop case study

Recommend

How to compile and install opencv under ubuntu

Easy installation of opencv2: conda install --cha...

How to construct a table index in MySQL

Table of contents Supports multiple types of filt...

How to use glog log library in Linux environment

Generate Linux library The Linux version uses cen...

Tutorial on customizing rpm packages and building yum repositories for Centos

1 Keep the rpm package downloaded when yum instal...

Summary of JavaScript custom object methods

Table of contents 1. Use object to create an obje...

MySQL isolation level detailed explanation and examples

Table of contents 4 isolation levels of MySQL Cre...

Detailed explanation of how to create an array in JavaScript

Table of contents Creating Arrays in JavaScript U...

How to make your JavaScript functions more elegant

Table of contents Object parameters using destruc...

Install Tomcat on Linux system and configure Service startup and shutdown

Configure service startup and shutdown in Linux s...

Solution to forgetting mysql database password

You may have set a MySQL password just now, but f...

Docker Getting Started Installation Tutorial (Beginner Edition)

Doccer Introduction: Docker is a container-relate...

How to create an Nginx server with Docker

Operating environment: MAC Docker version: Docker...

SQL Server Comment Shortcut Key Operation

Batch comments in SQL Server Batch Annotation Ctr...

HTML table tag tutorial (24): horizontal alignment attribute of the row ALIGN

In the horizontal direction, you can set the row ...

Tutorial on installing mysql under centos7

Recently, I plan to deploy a cloud disk on my hom...