On Tuesday, February 19, 2002, at 06:18 AM, Erwin S R U B A R wrote:
>
> So, no libphp4.so on the system.
> Considering we have the products (in most cases the up-to-date
> versions)
> it must be some obvious problem - but I have no idea.
> Thanks for help in advance,
I had the same exact problems.
The best way to go about it, which was suggested to me and I have
suggested to others, is to install PHP4 as a static Apache module. But
be sure to set the configuration options to allow Apache to install
other DSOs, so that you can later add mod_perl or other DSOs you might
want.
I should really just put this on a web page somewhere since it seems to
work for most everyone and I am constantly reposting it :)
1) Download Apache, PHP, and MySQL tarballs, and untar them.
2) Install MySQL (easy, use whatever config options you want).
Initialize it and get it running.
3) Install Apache with PHP as static module
a) ./configure --prefix=/usr/local/apache
b) pushd to PHP tarball source directory
c) ./configure --with-apache=/path/to/apache/src/dir --with-
mysql=/path/to/mysql/main/dir (and any other flags you want, I did zlib
and xml)
d) make
e) make install (make sure you're root for this one, or sudo)
f) popd (back to Apache src dir)
g) ./configure --activate-module=./src/modules/php4/libphp4.a
--enable-module=so --enable-shared=max
(this makes sure that Apache will work with later DSOs)
h) pushd ./src/modules/php4
i) make (do not make install yet)
j) popd (back to Apache src dir)
k) make
l) make install (make sure you're root again, or sudo)
m) test with "/path/to/apache/bin/apachectl start"
n) if Apache works, configure your httpd.conf
o) cp the php.ini-dist to /usr/local/lib/php.ini
HTH, this has worked for many people (and I didn't write em so I don't
deserve any credit).
Thank you Nathan for helping me when I had this prob.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php