I used the following steps to compile php and apache and all went fine but I still cant see the php pages , can you please take a look the steps below and see if Iam missing anything ?
1) compile apache2
cd /opt/staging_apache
untar http_2.2.80.tar
cd /opt/staging_apache/http_2.2.80
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
2) compile php5
cd /opt/staging_php
untar php-5.2.5.tar
cd /opt/staging_php/php-5.2.5
-- define the following logicals.
ORACLE_HOME=/u03/oracle/10203
export ORACLE_HOME
LIBPATH=$LIBPATH:$ORACLE_HOME/lib
export LIBPATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
export LD_LIBRARY_PATH
Invoking configure:
CFLAGS="$CFLAGS -DHAVE_LONG_LONG"
export CFLAGS
./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-ldap \
--with-oracle=/u03/oracle/10203 \
--with-oci8=/u03/oracle/10203 \
--with-config-file-path=/usr/local/apache/php \
--prefix=/usr/local/apache/php \
--without-mysql
Thank you for using PHP.
Notice: Following unknown configure options were used:
--with-oracle=/u03/oracle/10203
Check './configure --help' for available options
make
make install
./httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
httpd -M
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
log_config_module (static)
env_module (static)
setenvif_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
so_module (static)
php5_module (shared)
Syntax OK
which httpd
/usr/local/apache/bin/httpd
<html>
<head>
<title>PHP Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<h1>PHP Test</h1>
<p>
<b>An Example of PHP in Action</b><br />
<?php echo "The Current Date and Time is: <br>";
echo date("g:i A l, F j Y.");?>
</p>
<h2>PHP Information</h2>
<p>
<?php phpinfo(); ?>
</p>
</body>
</html>