ok, you will have to recompile apache, install it and then
compile the php again and install it.
first untar the sourse of apache (anywhere) and 'cd' into that directory.
once in the directory
Code:
./configure --prefix="/home/melerocorporation/apache" --enable-module=so
make
make install
test if your apache installed correctly with
Code:
/home/melerocorporation/apache/bin/apachectl start
now you can open a browser and try
You see the page of apache.
now close apache with
Code:
/home/melerocorporation/apache/bin/apachectl stop
Now up to PHP configuration
first untar the sourse of php (anywhere) and 'cd' into that directory.
Code:
./configure --with-apxs2=/home/melerocorporation/apache/bin/apxs --with-mysql
make
make install
The 'with-mysql' is optional if you use mysql on your system and you want to access it via php.
if all goes fine then go to this directory -> [blue]/home/melerocorporation/apache/conf[/blue]
and you will find a file named [blue]httpd.conf[/blue]
open this file (with a text editor) and inside (line 222 or something like that) you will see something like this
Code:
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
after the line LoadModule ......
enter
Code:
LoadModule php4_module libexec/libphp4.so
if the php you have is version 5 then change the '4' to '5'.
now at the end of the file add this line too
Code:
AddType application/x-httpd-php .php
and up to start apache again with
Code:
/home/melerocorporation/apache/bin/apachectl start
I hope you do everything i wrote, form the start till the end.
``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI