Page 1 of 1

INI Configuration

Posted: Thu Sep 14, 2006 10:37 am
by JasonTC
I'm installing PHP 5 on Debian Linux with Apache 1.3.

Step 14 on http://us3.php.net/manual/en/install.un ... nix.apache tells me:
Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.

For PHP 4:

LoadModule php4_module libexec/libphp4.so

For PHP 5:

LoadModule php5_module libexec/libphp5.so
There is no libphp5.so file anywhere on my system. What do I do?

Posted: Thu Sep 14, 2006 3:45 pm
by volka
11. make
12. make install
These steps ran without errors?

Posted: Fri Sep 15, 2006 8:59 am
by JasonTC
Yes.

Posted: Fri Sep 15, 2006 3:38 pm
by Chris Corbyn
Try this:

As root:

Code: Select all

linux -$  which apxs
If it shows you where the apxs binary is then do this:

Code: Select all

linux -$  cd php-source-dir
./configure --with-apxs=/path/to/apxs \
  your-other-flags=xxx
Then do make and make install hopefully most of the hard work will have then been done for you.

EDIT | I should have read the manual page you referred to :oops: Did you check your path to apxs?

Posted: Tue Sep 19, 2006 6:54 am
by ibbo
its probably under /usr/local.

When you configured php5 (./configure) did you supply a --prefix=/path/ parameter?

If not it would have defaulted to /usr/local although you should also find it in the build dir too.

ibbo