Wednesday, May 19, 2010

How to compile and install WSF/PHP in Centos 5.x

WSO2 WSF/FTP supports SOAP with Attachments in PHP. Being a port of Axis2 seems to be very complete. Here are the steps for both compiling and installing in Centos 5.x (test were done on Centos 5.3). I assume that you already installed Apache and PHP and you have the GCC compiler.



1yum install php-devel
2yum install php-xml
4tar -xvf wso2-wsf-php-src-2.0.0.tar.gz
5cd wso2-wsf-php-src-2.0.0
6./configure
7make
8make install
9cp -r scripts /usr/lib/php/modules/wsf_c/
Also we should modify the file  /etc/php.ini adding the following lines:
1include_path = ".:/usr/lib/php/modules/wsf_c/scripts"
2extension=wsf.so
3
4[wsf]
5wsf.home="/usr/lib/php/modules/wsf_c"
6wsf.log_level=2
7wsf.log_path="/var/log/wsf"

No comments:

Post a Comment