Hi David
How did you install PHP? I have found that with my
VPS Hosting it was better to compile it from source then all the modules are compiled directly into PHP making it perform better. During compiling I also tell it what type of system it's on with compiler flags so that it's tweaked to the CPU etc.
here's my php configure command, gd is added via the --with-gd
Code:
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" ./configure --prefix=/usr/php --bindir=/usr/bin --sbindir=/usr/sbin --with-gd=/usr --with-apxs2=/usr/local/apache/bin/apxs --with-pspell=/usr --enable-soap --enable-exif --with-tidy --with-curl --with-png-dir=/usr --with-zlib-dir=/usr --enable-force-cgi-redirect --with-gettext --with-freetype-dir=/usr --with-jpeg-dir=/usr --enable-mbstring --with-xsl --with-pear=/usr/php/pear --with-config-file-path=/etc/php --with-mysqli=/usr/bin/mysql_config --without-sqlite --with-pdo-mysql=/usr --without-pdo-sqlite --with-mcrypt=/usr --with-bz2 --with-mysql=/usr
then you just compile with
make -j6 && make install.
There is a good tutorial on how to find out suitable compiler flags on this page
http://gentoo-wiki.com/Safe_Cflags#I...on_51xx.2F53xx
yeah okay I don't have gentoo, but the principle is the same. You can just add them as environment variables and configure picks them up.