Click to See Complete Forum and Search --> : php5.2.5 compiled with apache2.2.8 but still cant view php pages


aliyesami
04-28-2008, 12:13 PM
hello!
I have successfully compiled apache2 and php5 and apache loads the php5 module also but it wont show me php pages still .what am I missing here?


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

-- in case of error otherwise not needed.

# ln -s /usr/local/BerkeleyDB4.2/lib/libdb-4.2.so /usr/lib/libdb-4.2.so
# pwd
/usr/local/BerkeleyDB.4.2/lib
#

# 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>

scrupul0us
04-29-2008, 11:25 AM
need something like this tailored to your environment in your httpd.conf file:


################PHPDEV###################
LoadModule php5_module "/path/to/php5apache2_2.dll" //make sure to load the right DLL
Addtype application/x-httpd-php .php .php4 .php5 .php3 .htm .inc .fire .do
AddType application/x-httpd-php-source .phps