Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

How to install WSF/PHP in Debian/Ubuntuu Systems from scratch

Monday, October 20, 2008

In the post WSF/PHP from the scratch Dinesh explains how to install WSF/PHP in a Debian or Ubuntu System from the scratch. He starts the post with a how to on installing and configuring Apache and PHP in a fresh debian machine and then install WSF/PHP on top of them. If you are finding help to install WSF/PHP on a debian machine, this post will be really useful.

Install WSF/PHP 1.2.1 with zend core in Ubuntu 7.10

Monday, March 17, 2008

1. Download the zend core for your linux, using the following link http://www.zend.com/en/products/core/downloads

2. unzip the installation and run the install script, I used the following command to install it,
sudo ./install -n

3. Now download the relevant wso2 wsf/php deb for the zend core for your os,
from http://dist.wso2.org/products/wsf/php/1.2.1/wso2-wsf-php-1.2.1-ubuntu-7.10-zc.deb

4. You can install the wso2/wsf php by running
dpkg -i wso2-wsf-php-1.2.1-ubuntu-7.10-zc.deb

4. you have to enable xsl extension for php manually editing the php.ini, /usr/local/Zend/Core/etc/php.ini
add the following line to the php.ini,

extension=xsl.so

5. And add the the /usr/local/Zend/Core/lib/php/20060613/wsf_php/scripts directory to the include_path directive of the php.ini

include_path= ".:/usr/local/Zend/Core/lib/php/20060613/wsf_php/scripts"

6. Then copy the /usr/local/Zend/Core/lib/php/20060613/wsf_php/samples directory to the /usr/local/Zend/apache2/htdocs

sudo cp /usr/local/Zend/Core/lib/php/20060613/wsf_php/samples /usr/local/Zend/apache2/htdocs

7. Restart the apache,
/usr/local/Zed/apache2/bin/apachctl restart.

8. Again that's all, open the browser and type http://localhost/samples and click on each link for samples.

9. You have successfully install the wsf/php with Zend Core in Ubuntu 7.10.

Installing WSF/PHP 1.2.1 in ubuntu

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.