PHP

PHP Accelerators

Extension designed to boost the performance of software applications written using the PHP programming language. Most PHP accelerators work by caching the compiled bytecode of PHP scripts to avoid the overhead of parsing and compiling source code on each request (some or all of which may never even be executed).

Technology:

Upload Progress Bar

A PHP extension to track progress of a file upload.

yum install autoconf

Download the latest version of uploadprogress:

cd /extra/src
wget http://pecl.php.net/get/uploadprogress-1.0.1.tgz
tar zvf uploadprogress-1.0.1.tgz
cd uploadprogress-1.0.1

Configure, build and install it:

phpize
./configure
make
make install

The output from make install should be something similar to:

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

Technology:

eAccelerator

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

Installation

  1. Download the latest version:

    cd /extra/src
    wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2
    tar jxf eaccelerator-0.9.6.tar.bz2
    cd eaccelerator-0.9.6
  2. Prepare the source code for compiling as a PHP extension using phpize:, then configure, build and install it:
    phpize
    ./configure
    make
    make install
  3. Install it as a PHP extension in /usr/local/lib/php.ini:

    extension="eaccelerator.so"
    eaccelerator.shm_size="16"

Technology:

Apache

Installation instructions for using PHP with the Apache web server.

Compiling and Installing
Configure PHP with the options you want. In this case, we'll be adding Apache

./configure \
--enable-mbstring \
--with-gd \
--with-gettext \
--with-apxs2=/usr/local/apache2/bin/apxs \

Configuration options:

  • MySQL support

    --with-mysql=/usr/local/mysql
  • LDAP support
    --with-ldap
  • Curl support (required by Drupal's Feeds module)
    --with-curl

    Probably need to install curl-devel package first though:

    yum install curl-devel

Technology:

lighttpd

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

Technology:

PHP

http://www.afp548.com/article.php?story=20041104230209410

Prerequisites

  • Linux

    yum -y install libxml2-devel libjpeg-devel libpng-devel gd-devel

    If you are going to install LDAP support (--with-ldap), you will likely need to install OpenLDAP development tools:

    yum -y install openldap-devel
  • Mac OS X 10.3 (Panther) - Special Instructions for making this work!

Download the Source

Technology:

Pages

Subscribe to RSS - PHP

Recent Updates

  • 1 year 12 months ago
  • 1 year 12 months ago
  • 1 year 12 months ago
    php 8.x
  • 2 years 1 hour ago
    10.6.7
  • 2 years 1 day ago
    Drop Centos 5/6 stuff