Install php-fpm on Fedora

Use fedora yum install to install php is very easy. But, there is no yum install available to install php-fpm. I have to download php source and compile it from source.

I do not know why Fedora configures its php this way, but it works fine for me. So I want to configure my php source the same way as Fedora did. I only add –enable-fpm to the configure.

./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --with-t1lib=/usr --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-expat-dir=/usr --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --without-mime-magic --without-sqlite --with-libxml-dir=/usr --with-xml --with-system-tzdata --enable-force-cgi-redirect --enable-pcntl --with-imap=shared --with-imap-ssl --enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex --with-ncurses=shared --with-gd=shared --enable-bcmath=shared --enable-dba=shared --with-db4=/usr --with-xmlrpc=shared --with-ldap=shared --with-ldap-sasl --with-mysql=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config --enable-dom=shared --with-dom-xslt=/usr --with-dom-exslt=/usr --with-pgsql=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-xmlwriter=shared --enable-fastcgi --enable-fpm --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,/usr --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --enable-json=shared --enable-zip=shared --with-readline --enable-dbase=shared --with-pspell=shared --with-mcrypt=shared,/usr --with-mhash=shared,/usr --with-tidy=shared,/usr --with-mssql=shared,/usr

I had several errors when run ./configure

checking for BZip2 in default path… not found
configure: error: Please reinstall the BZip2 distribution
solution: yum install bzip-devel bzip-libs

configure: error: DBA: Could not find necessary header file(s).
solution: yum install gdbm-devel
Well, someone suggests that, I did that, but error still exists. Then under my own decision, I run
yum install php-dba
Error still exists.
yum install qdbm*
Error still exists.
yum install db4*
Pass!

configure: error: libjpeg.(a|so) not found.
solution: yum install libjpeg libjpeg-devel

Configure: error: libpng.(also) not found.
solution: yum install libpng libpng-devel

configure: error: libXpm.(a|so) not found.
solution: yum install libXpm*

Configure: error: freetype.h not found.
solution: yum install freetype-devel

configure: error: Unable to locate gmp.h
solution: yum install mysql-devel

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
solution: yum install libc-client-devel

configure: error: Cannot find ldap.h
solution: yum install openldap-devel

configure: error: mcrypt.h not found. Please reinstall libmcrypt.
solution: yum install libmcrypt-devel

configure: error: Please reinstall libmhash – I cannot find mhash.h
solution: yum install mhash-devel

configure: error: Directory /usr is not a FreeTDS installation directory
solution: yum install freetds-devel

Configure: error: Please reinstall the ncurses distribution
solution: yum install ncurses-devel

checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
solution: yum install unixODBC-devel

configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
solution: yum install postgresql-devel

configure: error: Please reinstall the sqlite3 distribution
solution: yun install sqlite-devel

Configure: error: Cannot find pspell
solution: yum install pspell-devel

configure: error: Please reinstall readline – I cannot find readline.h
solution: yum install readline-devel

configure: error: SNMP sanity check failed. Please check config.log for more information.
solution: yum install net-snmp-devel

configure: error: Cannot find libtidy
solution: yum install libtidy-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
solution: yum install libxslt-devel

Leave a Reply

Your email address will not be published. Required fields are marked *