Installing WSF/PHP 1.2.1 in ubuntu

Monday, March 17, 2008

Here are the commands I ran to install WSF/PHP 1.2.1 on a fresh machine (Just after installing Ubuntu 7.10,

1. First update the apt sources list, so we can install all the required packages using apt-get install, Here is a guide to update the apt repository.
http://ubuntuguide.org/wiki/Ubuntu:Gutsy#Updates_and_Upgrades_and_Installing_Software
There you will uncomment the repository list in the /etc/apt/sources.list and run
apt-get update both as the root. (remember to create a backup of the file before editing, so anything go wrong, you have the original)


2. Install PHP by typing

sudo apt-get install php5

3. Install PHP, XSL extension,

sudo apt-get install php5-xsl

4. Install Apache2

sudo apt-get install apache2

5. Then download the wsf/php version 1.2.1 ubuntu 7.10 deb file. Make sure to filter out the correct deb file for your OS. wso2-wsf-php-1.2.1-ubuntu-7.10.deb

6. Install the wso2-wsf-php-1.2.1-ubuntu-7.10.deb by running the following command,

dpkg -i wso2-wsf-php-1.2.1-ubuntu-7.10.deb

7. Put the /usr/lib/php5/20060613+lfs/wsf_php/scripts to the include_path directive of the php.ini. Open the /etc/php5/apache2/php.ini and put the following line,

include_path= ".:/usr/lib/php5/20060613+lfs/wsf_php/scripts"

8. Copy the /usr/lib/php5/20060613+lfs/wsf_php/samples directory to the /var/www

sudo cp -R /usr/lib/php5/20060613+lfs/wsf_php/samples /var/www

9. Hm, that's all I did, then I opened the browser and type http://localhost/samples

10. Just click on each link for samples, and make sure they are working,

If you are using Ubuntu 7.04, You can still follow the same path, but make sure you download the correct WSO2 WSF/PHP package.

No comments: