Home > Constructing SOAP with PHP 5.2.1 > Installing PHP on Linux


Installing PHP on Linux

If you are running PHP on Linux, your PHP application requires these three extensions: SOAP, OpenSSL, and libxml.

  1. To find out if your existing PHP application already has these extensions, run this command:

    php -i | grep configure

    • If the output shows these three extensions, skip Steps 2 and 3, and proceed to Building and Running the Sample:

      --enable-soap

      --with-openssl

      --with-libxml-dir

    • If the output does not show all three extensions, proceed to Step 2.
    Important: CyberSource is not responsible for build errors that you might encounter during Steps 2 and 3.
  2. To build your PHP application with the SOAP, OpenSSL, and libxml extensions, navigate to the directory where the PHP source was installed. Run the configure command with the three required extensions and any other extension previously included in your PHP application. For example:

    ./configure ‘--prefix=your_target_dir’ ‘--enable-soap’--with-libxmldir=your_libxml_dir’ ‘--with-openssl=your_openssl_dir

  3. In the same directory, build and install your application.

    make

    make install