:: tighar:php ::
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tighar:php [2010/03/18 18:10]
moleski
tighar:php [2017/07/13 20:33] (current)
Line 1: Line 1:
 +====== php information ======
  
 +The command ​ php --ini  returns this result:
 +
 +<​code>​
 +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,​
 +/​etc/​php.d/​json.ini,​
 +/​etc/​php.d/​mysql.ini,​
 +/​etc/​php.d/​mysqli.ini,​
 +/​etc/​php.d/​pdo.ini,​
 +/​etc/​php.d/​pdo_mysql.ini,​
 +/​etc/​php.d/​pdo_sqlite.ini,​
 +/​etc/​php.d/​zip.ini
 +</​code>​
 +
 +====== 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: http://​hacktux.com/​compile/​php/​fedora
 +
 +Upload tar to: /​usr/​local/​src
 +
 +tar xjvf tarball.tar.bz2
 +
 +cd to the new folder created by untarring the tarball.
 +
 +
 +<​code>​
 +./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 \
 +--with-zlib
 +</​code>​
 +
 +
 +
 +====== APC PHP cache ======
 +[[http://​www.howtoforge.com/​apc-php5-apache2-fedora8]]
 +
 +Next time I have to remake PHP:
 +
 +  * configuration option "​php_ini"​ is not set to php.ini location
 +  * add "​extension=apc.so"​ to php.ini?
 +
 +Specifying the location of the module helped:
 +<​code>​
 +;MXM Add APC cache
 +extension=/​opt/​php5/​include/​php/​ext/​apc/​apc.so
 +apc.enabled=1
 +apc.shm_size = 48
 +</​code>​
 +
 +====== Exclude PHP & sendmail from yum update ======
 +
 +[[http://​www.cyberciti.biz/​faq/​redhat-centos-linux-yum-update-exclude-packages/​]]
 +
 +Added:
 +
 +''​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 [[http://​qmail.jms1.net/​fake-smtp.shtml|liable to break the link to qmail'​s sendmail function]].  ​
 
tighar/php.txt ยท Last modified: 2017/07/13 20:33 (external edit)
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki