How to compile PHP for Plesk
I would like to enable mbstring
and/or iconv
in PHP running on Plesk. This is a painful process. I have to compile and install lots of packages. The most important thing is the configure
. Note that this host is FreeBSD.
I have to manually install mysql client, pgsql client, iodbc, imap and iconv before compiling PHP as follow.
./configure --with-apxs=/usr/local/psa/apache/bin/apxs --prefix=/usr/local/psa/apache --with-regex=php --with-config-file-path=/usr/local/psa/apache/conf --enable-sockets --enable-track-vars --with-mysql=/usr/local --with-pgsql --with-iodbc --with-imap --with-jpeg --with-png --with-gd --without-tiff --without-pdflib --with-gettext --with-openssl --with-xml --disable-debug --enable-pear --with-iconv --with-zlib --with-mhash --with-curl --with-mbstring --enable-static
make
make install
- sugree's blog
- 3042 reads
Post new comment