This is how PHP should be configured on new band site hosting servers

See also: Creating a Band Site Hosting Server

Install PHP if it's not there yet

# yum install php

Set max file size upload.
edit (as root) /etc/php.ini

set include_path, post_max_size, memory_limit, and upload_max_filesize

include_path = ".:/var/www/include:./include:/usr/share/pear:/usr/share/php"
post_max_size = 96M
upload_max_filesize = 96M
max_file_uploads = 32
memory_limit = 256M

Configure sendmail

sendmail_path = /usr/sbin/sendmail -t -i -fsupport@bandsX.bombplates.com

Some other important configuration options:

safe_mode = Off
expose_php = Off

Include some modules

# echo '; Enable APC module
> extension=apc.so
> apc.shm_size="64"' > /etc/php.d/apc.ini
# echo '; Enable File Info module
> extension=fileinfo.so' > /ect/php.d/fileinfo.ini
# echo '; Enable Upload Progress module
> extension=uploadprogress.so' > /etc/php.d/uploadprogress.ini

Install php mbstring, fileinfo, apc, and uploadprogress

# yum install php-mbstring
# yum install php-mysql
# yum install gcc
# yum install pcre-devel
# yum install php-devel php-pear
# yum install php-pecl-apc php-pecl-imagick file-devel php-gd php-fileinfo


# pecl install uploadprogress

Some other cleanup and restart apache:

# /etc/init.d/http restart

"Shoot! One of the pecls failed!"

# mkdir ~/tmp
# cd ~/tmp
# wget http://pecl.php.net/get/PACKAGENAME
# tar -xvzf PACKAGENAME-VERSION
# cd PACKAGENAME-VERSION
# phpize PACKAGENAME
# ./configure
# make
# cp modules/PACKAGENAME.so /usr/lib[64]/php/modules/