Php

About PHP

Famous internet language

Php Installation

download source package php-5.2.3.tar.gz

[http://downloads.php.net/ilia/]

install with both oracle and mysql support

./configure \
      --with-oci8-instant-client \
      --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs \
      --with-config-file-path=/usr/local/apache/conf \
      --with-oci8=$ORACLE_HOME \
      --with-mysql=/usr/local/mysql \
      --with-zlib-dir=/usr
make install

ps. make sure apache startup user can access oracle
(add the user to oracle group and setup the variables)

configure with apache

configure php.ini
configure apache

AddType application/x-httpd-php        .php
AddType application/x-httpd-php-source .phps

LoadModule php5_module        modules/libphp5.so

<VirtualHost *:1500>
ServerName <servername>
DocumentRoot "/var/httpd/htdocs/virtualhost"
</VirtualHost>

put a test page phpinfo.php on virtual host and test it

<?php phpinfo() ?>

http://localhost:1500/phpinfo.php

page_revision: 1, last_edited: 1213702765|%e %b %Y, %H:%M %Z (%O ago)