Konfigurasi PHP dengan SOAP Print

  • 0

Instruksi-instruksi ini khusus untuk PHP 5.4.13 

sudo yum groupinstall 'Development Tools'

  1. cd ~
    wget http://museum.php.net/php5/php-5.4.13.tar.gz
  2. The source code is downloaded as a compressed "tarball", so you'll need to decompress and unarchive the file: 

    tar -zxf php-5.4.13.tar.gz
  3. Move into that directory: 

    cd php-5.4.13
  4. Next, configure your PHP installation to include SOAP: 

    ./configure --enable-soap=shared

    NOTE:

    If you receive an error similar to the following, you will need to install libxml2:

    error: xml2-config not found. Please check your libxml2 installation

    You can install libxml2 through the yum repository:

    yum install libxml2-devel
  5. Now, you run the build. 

    make
  6. Next, copy the SOAP module into the existing PHP installation. 

    
    cp modules/soap.so /usr/lib64/php/modules
  7. Add the SOAP module to the PHP configuration. 

    
    echo "extension=soap.so" >> /etc/php.d/soap.ini
  8. Then, restart the Apache web server. 

    
    /etc/init.d/httpd restart
  9. Move back to the root directory: 

    cd ~
  10. You'll probably want to clean up by removing the files you downloaded earlier. 

    
    rm -rf php-5.4.13*

That's it! Barring any unforeseen complications, your PHP installation should now be able to utilize the SOAP module.


sumber : mediatemple.net


Was this answer helpful?

« Back