<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Installation</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="libxml.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="libxml.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="libxml.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="libxml.installation" class="section"> <h2 class="title">Installation</h2> <p class="para"> The libxml extension is enabled by default, although it may be disabled with <strong class="option configure">--disable-libxml</strong> . </p> <p class="para"> The optional <strong class="option configure">--with-libxml-dir</strong> directive is used to specify the location of <em>libxml</em> on the system that PHP is being compiled on, otherwise only the default locations are scanned. The <em>configure</em> process checks for libxml (specifically, <em>xml2-config</em>) in the following order: </p> <ol type="1"> <li class="listitem"> <p class="para"> The location ([DIR]) specified with <strong class="option configure">--with-libxml-dir</strong> ([DIR]=<var class="filename">/bin/xml2-config</var>) </p> </li> <li class="listitem"> <p class="para"> <var class="filename">/usr/local/bin/xml2-config</var> </p> </li> <li class="listitem"> <p class="para"> <var class="filename">/usr/bin/xml2-config</var> </p> </li> </ol> <p class="para"> If <em>configure</em> cannot find <var class="filename">xml2-config</var> in the directory specified by <strong class="option configure">--with-libxml-dir</strong> , then it'll continue on and check the default locations. </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="libxml.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="libxml.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="libxml.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>