Re: OpenBSD 3.1 + Apache 2.0.39 + PHP 4.2.2 -> SOLVED!
| From: | Michele Albrigo | Date: | Thu, 25 Jul 2002 10:21:27 +0000 |
| Subject: | Re: OpenBSD 3.1 + Apache 2.0.39 + PHP 4.2.2 -> SOLVED! | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7896@lists.php.net to get a copy of this message | ||
Hi,
just posting the solution to my problem, in case somebody needs it.
I've installed mysql and postgres from source, openldap client from
openbsd package.
I've tried to make php from ports, and discovered it seem to need the
following packages:
pkg_add libtool-1.3.5p3.tgz
pkg_add autoconf-2.13.tgz
pkg_add recode-3.6.tgz
Then I've patched php-4.2.2 with php-functions.c from the current
snapshot.
Now I've tried to compile c-client, but, unless you remove
EXTRAAUTHENTICATORS from /usr/ports/mail/c-client, it will build a
kerberos-enabled c-client. So, remove them and build from c-client port.
This will build a kerberos-free c-client, suitable for usage with php,
install it.
Now this is my ./configure:
./configure --enable-bcmath --enable-ftp --enable-calendar \
--enable-versioning --enable-sysvshm --enable-sysvsem \
--enable-sockets --enable-inline-optimization --enable-static=most \
--enable-safe-mode --enable-trackvars -with-zlib --with-openssl \
--with-ldap --with-bz2=/bin/ --with-imap --with-imap-ssl=/usr \
--with-gettext --with-pgsql=/usr/local/postgres \
--with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs
then make php and, before 'make install', do mkdir libs in the php build
directory (there seem to be a bug in the install script).
Copy php.ini-recommended in /usr/local/lib/php.ini, enable what you need
in httpd.conf, restart and enjoy.
See you!
Michele