wiki:php

Version 8 (modified by ken@…, 14 years ago) ( diff )

--

PHP

Up
Top

To add imap support to php download the uw-imap package from: wget ftp://ftp.cac.washington.edu/imap/imap.RELEASE.tar.Z Unpack it and edit src/osdep/unix/Makefile to match some entrys according to his:

SSLDIR=/usr
SSLCERTS=/etc/ssl/certs
SSLKEYS=$(SSLCERTS)
SSLINCLUDE=$(SSLDIR)/include
SSLLIB=$(SSLDIR)/lib

SPOOLDIR=/var/spool
MAILSPOOL=/var/mail
NEWSSPOOL=/var/news

Now build the package:
The make command for a standard (H)LFS system based on shadow is: make slx
If You have PAM installed do: make lnp
If for some reason you don't want ssl support do: make slx SSLTYPE=none

make slx
mkdir /usr/lib/c-client
mkdir /usr/lib/c-client/include
mkdir /usr/lib/c-client/lib
cp c-client/c-client.a /usr/lib/c-client/lib
ln -s /usr/lib/c-client/c-client.a /usr/lib/c-client/libc-client.a
ln -s /usr/lib/c-client/c-client.a /usr/lib/c-client/libc-client4.a
cp c-client/*.h /usr/lib/c-client/include

Now build php according to the book and add "--with-imap=/usr/lib/c-client" to the configure line.

p.s. On my Hardened-LFS system I kept running into TEXTREL problems with php, after compiling c-client with 'make slx AS="gcc -c -Wa,--noexecstack" CC="gcc -fpic -pic -fno-pie -nopie"' all was well... (probebly an overkill of options, but if a bit helps, a lot sertanly will ;-)

DESTDIR installs

php doesn't support DESTDIR, but it does support INSTALL_ROOT. If you use that, you will have to copy httpd.conf to ${INSTALL_ROOT}/etc/apache - either create that directory before the install, and copy the file, or let the install break, copy the file, then resume.

Note: See TracWiki for help on using the wiki.