Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 9f12c4204c04c9e18ab5488afc351c44 > files > 40

php-libvirt-0.4.7-7.mga5.i586.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
        This file is autogenerated from deployment.html.in
        Do not edit this file. Changes will be lost.
      -->
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="main.css" />
    <link rel="SHORTCUT ICON" href="graphics/32favicon.png" />
    <title>libvirt-php: Deployment</title>
    <meta name="description" content="libvirt, virtualization, virtualization API" />
  </head>
  <body>
    <div id="header">
      <div id="headerLogo"></div>
      <div id="headerSearch">
        <form action="search.php" enctype="application/x-www-form-urlencoded" method="get">
          <div>
            <input id="query" name="query" type="text" size="12" value="" />
            <input id="submit" name="submit" type="submit" value="Search" />
          </div>
        </form>
      </div>
    </div>
    <div id="body">
      <div id="menu">
        <ul class="l0">
          <li>
            <div>
              <a title="Front page of the libvirt-php website" class="inactive" href="index.html">Home</a>
            </div>
          </li>
          <li>
            <div>
              <a title="Details of new features and bugs fixed in each release" class="inactive" href="news.html">News</a>
            </div>
          </li>
          <li>
            <div>
              <a title="Get the latest source releases, binary builds and get access to the source repository" class="inactive" href="downloads.html">Downloads</a>
            </div>
          </li>
          <li>
            <div>
              <a title="See the list of distributions where you can find libvirt-php in their repositories" class="inactive" href="distros.html">Distributions</a>
            </div>
          </li>
          <li>
            <div>
              <a title="Information on libvirt-php Windows port" class="inactive" href="windows.html">Windows port</a>
            </div>
          </li>
          <li>
            <div>
              <a title="Information on contributing to libvirt-php" class="inactive" href="contributions.html">Contributions</a>
            </div>
          </li>
          <li>
            <div>
              <a title="Information for users, administrators and developers" class="active" href="docs.html">Documentation</a>
              <ul class="l1">
                <li>
                  <div>
                    <a title="API reference documentation" class="inactive" href="api-reference.html">PHP API Reference</a>
                  </div>
                </li>
                <li>
                  <div>
                    <a title="libvirt-php developer's API reference (private functions)" class="inactive" href="dev-api-reference.html">Developer's API Reference</a>
                  </div>
                </li>
                <li>
                  <div>
                    <a title="How to compile libvirt-php" class="inactive" href="compiling.html">Compiling</a>
                  </div>
                </li>
                <li>
                  <div>
                    <span class="active">Deployment</span>
                  </div>
                </li>
                <li>
                  <div>
                    <a title="Example scripts using libvirt-php" class="inactive" href="examples.html">Examples</a>
                  </div>
                </li>
              </ul>
            </div>
          </li>
          <li>
            <div>
              <a title="List of companies and people using the project" class="inactive" href="references.html">References</a>
            </div>
          </li>
          <li>
            <div>
              <a title="How to contact the developers via email and IRC" class="inactive" href="contact.html">Contact</a>
            </div>
          </li>
          <li>
            <div>
              <a title="List of links related to libvirt-php project" class="inactive" href="links.html">Related links</a>
            </div>
          </li>
          <li>
            <div>
              <a title="List of features to be implemented" class="inactive" href="roadmap.html">Roadmap</a>
            </div>
          </li>
          <li>
            <div>
              <a title="Libvirt-php site map" class="inactive" href="sitemap.html">Sitemap</a>
            </div>
          </li>
        </ul>
      </div>
      <div id="content">
        <h1>Deployment</h1>
        <h2>Enabling libvirt-php module</h2>
        <p><strong>Note: </strong>The following article describes how to enable libvirt-php module in your PHP configuration. This is done automatically by <i>make install</i> so
       normally you can ignore this article. However if you experience any issues during installation and you don't have the extension enabled yet it could help you to solve
       the issue.</p>
        <p>Before you start using the module you have to install the module first. The module <i>libvirt-php.so</i> is being generated when you compile it. This is necessary to be loaded in the extensions sections of php.ini file for PHP version older than PHP-5.</p>
        <p>Starting with PHP-5 you can create a file called <i>libvirt.ini</i> in your <i>/etc/php.d</i> directory having just one line:</p>
        <pre>extension=libvirt-php.so</pre>
        <p>This enables the extension for PHP. Of course, you need to have this module copied in the directory with the rest of your PHP modules to make PHP find the module for you.</p>
        <p>If you're using PHP as a module (<i>mod_php5.so</i>) in the Apache webserver you need to restart your Apache to trigger configuration reload for PHP.</p>
        <p>If you're not sure that you have everything set up right and you don't want to restart your Apache webserver before you're sure everything will be working fine you could try running the test using cli-based PHP interpreter. There are some example scripts coming along the source codes in the example subdirectory so you can try to run php on the index.php script to check whether it's working fine to establish connection or not.</p>
        <p>When you're having some issues with the connection make sure the apache user is having access to libvirt. For more information please see <a href="http://libvirt.org/auth.html">Libvirt access control page.</a>
    </p>
      </div>
    </div>
    <div id="footer"></div>
  </body>
</html>