Installing PHP with the lighttpd web server.
Compiling and Installing
At a minimum, for installing the lighttpd, PHP needs to be configured with these options:
./configure \
--enable-mbstring \
--with-gd \
--with-gettext
The
--with-apxs2 and
--with-apxs configuration options are not required. Add any other PHP options that you need.
MySQL, add:
--with-mysql=/usr/local/mysql
If you want to include LDAP support, add:
--with-ldap
If it configures correctly, make and install the binaries:
make
make install