php information

The command php –ini returns this result:

Configuration File (php.ini) Path: /etc
Loaded Configuration File:         /etc/php.ini

Scan for additional .ini files in: /etc/php.d

Additional .ini files parsed:      /etc/php.d/dbase.ini,

configure PHP

This is a very special instruction for configuring our own special edition of PHP. The steps are configure, make, make install.

Helpful page:

Upload tar to: /usr/local/src

tar xjvf tarball.tar.bz2

cd to the new folder created by untarring the tarball.

./configure \
--enable-cli \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-mbstring \
--enable-safe-mode \
--enable-soap \
--enable-sockets \
--enable-zip \
--prefix=/opt/php5 \
--with-apxs2=/usr/sbin/apxs \
--with-bz2=/usr/bin \
--with-curl \
--with-freetype-dir=/usr \
--with-gd \
--with-gettext \
--with-imap \
--with-imap-ssl \
--with-jpeg-dir=/usr \
--with-kerberos \
--with-ldap=/usr \
--with-libdir=lib64 \
--with-mcrypt=/usr/bin/mcrypt \
--with-mysql=/usr/bin/mysql_config \
--with-mysqli=/usr/bin/mysql_config \
--with-openssl \
--with-png-dir=/usr \
--with-pspell \
--with-snmp \
--with-xpm-dir=/usr \

APC PHP cache

Next time I have to remake PHP:

  • configuration option “php_ini” is not set to php.ini location
  • add “” to php.ini?

Specifying the location of the module helped:

;MXM Add APC cache
apc.shm_size = 48

Exclude PHP & sendmail from yum update


exclude=php* sendmail*

in /etc/yum.conf

If I let yum update PHP, it changes my active php.ini file AND it does not include all of the bells and whistles that phpMyAdmin needs.

sendmail updates are liable to break the link to qmail's sendmail function.

tighar/php.txt · Last modified: 2017/07/14 04:33 (external edit)
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki