<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Randomness from RES &#187; MySQL</title>
	<atom:link href="http://www.robertswarthout.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robertswarthout.com</link>
	<description>Things that I run across that might be useful to others...</description>
	<lastBuildDate>Sun, 21 Feb 2010 01:56:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Continued: MySQL connection benchmarking</title>
		<link>http://www.robertswarthout.com/2008/08/continued-mysql-connection-benchmarking/</link>
		<comments>http://www.robertswarthout.com/2008/08/continued-mysql-connection-benchmarking/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 19:08:58 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Benchmarking]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=62</guid>
		<description><![CDATA[I was asked by a fellow Schematicer to see if there was a performance difference if the fourth parameter of mysql_connect was set to true if it would make any difference. I would assume that it would not make any difference but I went ahead and ran the variation to be sure, the results are [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked by a fellow <a href="http://www.schematic.com">Schematic</a>er to see if there was a performance difference if the fourth parameter of <a href="http://www.php.net/mysql_connect">mysql_connect</a> was set to true if it would make any difference. I would assume that it would not make any difference but I went ahead and ran the variation to be sure, the results are below.</p>
<p>Run #1:</p>
<blockquote><p>11409 fetches, 20 max parallel, 45636 bytes, in 600.011 seconds<br />
4 mean bytes/connection<br />
19.0146 fetches/sec, 76.0586 bytes/sec<br />
msecs/connect: 0.211857 mean, 39.668 max, 0.029 min<br />
msecs/first-response: 1050.65 mean, 2662.53 max, 323.514 min<br />
HTTP response codes: code 200 &#8212; 11409</p></blockquote>
<p>Run #2:</p>
<blockquote><p>11141 fetches, 20 max parallel, 44564 bytes, in 600.005 seconds<br />
4 mean bytes/connection<br />
18.5682 fetches/sec, 74.2727 bytes/sec<br />
msecs/connect: 0.206869 mean, 30.293 max, 0 min<br />
msecs/first-response: 1076.17 mean, 2317.13 max, 350.16 min<br />
HTTP response codes: code 200 &#8212; 11141</p></blockquote>
<p>Run #3:</p>
<blockquote><p>11183 fetches, 20 max parallel, 44732 bytes, in 600 seconds<br />
4 mean bytes/connection<br />
18.6383 fetches/sec, 74.5533 bytes/sec<br />
msecs/connect: 0.201182 mean, 24.691 max, 0.03 min<br />
msecs/first-response: 1071.81 mean, 2448.18 max, 366.686 min<br />
HTTP response codes: code 200 &#8212; 11183</p></blockquote>
<p><strong>Results Analysis</strong></p>
<ul>
<li>Average requests per second: 18.7043</li>
<li>Average requests completed: 11,244</li>
</ul>
<p>These results can be compared to the <a href="/2008/08/benchmarking-of-mysql-persistent-connections-vs-non-persistent-connections/">previous post on this topic</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/08/continued-mysql-connection-benchmarking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install of Apache 2.2.3, MySQL 5.0.18 and PHP 5.2.0</title>
		<link>http://www.robertswarthout.com/2007/01/install-of-apache-223-mysql-5018-and-php-520/</link>
		<comments>http://www.robertswarthout.com/2007/01/install-of-apache-223-mysql-5018-and-php-520/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 15:43:30 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=7</guid>
		<description><![CDATA[After getting our new servers delivered I came to the conclusion very quickly that I would like a way to easily get the same configurations on every box without having to spend the rest of my life doing so. Each box needed to have Apache, MySQL and PHP installed and configured. I decided to write [...]]]></description>
			<content:encoded><![CDATA[<p>After getting our new servers delivered I came to the conclusion very quickly that I would like a way to easily get the same configurations on every box without having to spend the rest of my life doing so. Each box needed to have <a href="http://httpd.apache.org/">Apache</a>, <a href="http://www.mysql.com">MySQL</a> and <a href="http://www.php.net">PHP</a> installed and configured. I decided to write a bash script to do this for me. In the end I am very happy with the way that the script works. It leaves very little work to be done once the script is done running. In the end I have two scripts, one is for a 32bit machine and one is for 64bit machines. Below is the 64bit script. The install will compile PHP with all of the supported modules that we need. The only thing that needs to be done with PHP is the setting the correct config options in the php.ini, this includes putting in <a href="http://pecl.php.net/apc">APC</a> cache extension.</p>
<blockquote><p>#!/bin/sh</p>
<p># Abort on any errors<br />
set -e</p>
<p># Where do you want all this stuff built?<br />
SRCDIR=/home/support/software/source</p>
<p># Unpack our large file that contains all needed packages that are not going to be obtained from yum<br />
#rm -Rf ${SRCDIR}<br />
#gzip -d nbs_core_install.gz<br />
#cd nbs_core_install/<br />
#cp -R * ${SRCDIR}/</p>
<p># Install gcc<br />
yum -y install gcc</p>
<p># Install cc<br />
yum -y install cc</p>
<p># Install libtool<br />
yum -y install libtool</p>
<p># Extract OpenSSH and install openssh and the sshd in the init.d<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/openssh-4.5p1.tar.gz<br />
cd ${SRCDIR}/openssh-4.5p1<br />
./configure<br />
make<br />
make install<br />
cp -f ${SRCDIR}/sshd.init.d /etc/rc.d/init.d/sshd<br />
chmod 755 /etc/rc.d/init.d/sshd<br />
rm -f /etc/rc.d/rc3.d/S70sshd<br />
cd /etc/rc.d/rc3.d &#038;&#038; ln -s /etc/rc.d/init.d/sshd S70sshd<br />
rm -Rf ${SRCDIR}/openssh-4.5p1</p>
<p># Install libjpeg-devel<br />
yum -y install libjpeg-devel</p>
<p># Install jpeg.v6b<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/jpegsrc.v6b.tar.gz<br />
cd ${SRCDIR}/jpeg-6b<br />
cp /usr/share/libtool/config.guess ./<br />
cp /usr/share/libtool/config.sub ./<br />
./configure &#8211;enable-shared<br />
make libdir=/usr/lib64<br />
install -d /usr/local/man/man1<br />
make libdir=/usr/lib64 install<br />
rm -Rf ${SRCDIR}/jpeg-6b</p>
<p># Install libtiff &#038; libtiff-devel<br />
yum -y install libtiff libtiff-devel</p>
<p># Install Ghostscript (needed for ImageMagick)<br />
yum -y install ghostscript</p>
<p># Install ImageMagick<br />
yum -y install ImageMagick</p>
<p># Install libxml2<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libxml2-2.6.27.tar.gz<br />
cd ${SRCDIR}/libxml2-2.6.27<br />
./configure &#8211;enable-shared<br />
make<br />
make install<br />
make tests<br />
rm -Rf ${SRCDIR}/libxml2-2.6.27</p>
<p># Install libxslt<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libxslt-1.1.19.tar.gz<br />
cd ${SRCDIR}/libxslt-1.1.19<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/libxslt-1.1.19</p>
<p># Install zlib<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/zlib-1.2.3.tar.gz<br />
cd ${SRCDIR}/zlib-1.2.3<br />
./configure &#8211;shared &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/zlib-1.2.3</p>
<p># Install libmcrypt<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libmcrypt-2.5.7.tar.gz<br />
cd ${SRCDIR}/libmcrypt-2.5.7<br />
./configure &#8211;disable-posix-threads &#8211;prefix=/usr<br />
make<br />
make install</p>
<p># Install libmcrypt lltdl<br />
cd  ${SRCDIR}/libmcrypt-2.5.7/libltdl<br />
./configure &#8211;prefix=/usr &#8211;enable-ltdl-install<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/libmcrypt-2.5.7</p>
<p># Install mhash<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/mhash-0.9.7.1.tar.gz<br />
cd ${SRCDIR}/mhash-0.9.7.1<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/mhash-0.9.7.1</p>
<p># Install Freetype<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/freetype-2.2.1.tar.gz<br />
cd ${SRCDIR}/freetype-2.2.1<br />
./configure<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/freetype-2.2.1</p>
<p># Install libidn<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libidn-0.6.9.tar.gz<br />
cd ${SRCDIR}/libidn-0.6.9<br />
./configure &#8211;with-iconv-prefix=/usr &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/libidn-0.6.9</p>
<p># Install OpenSSL<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/openssl-0.9.8d.tar.gz<br />
cd ${SRCDIR}/openssl-0.9.8d<br />
./config<br />
make<br />
make test<br />
make install<br />
rm -Rf ${SRCDIR}/openssl-0.9.8d</p>
<p># Install cURL<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/curl-7.15.0.tar.gz<br />
cd ${SRCDIR}/curl-7.15.0<br />
./configure &#8211;enable-ipv6 &#8211;enable-cookies &#8211;enable-crypto-auth &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/curl-7.15.0</p>
<p># Install c-client (IMAP)<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/imap-2004g.tar.Z<br />
cd ${SRCDIR}/imap-2004g<br />
make lrh<br />
cp c-client/c-client.a /usr/lib/libc-client.a<br />
cp c-client/*.h /usr/include<br />
rm -Rf ${SRCDIR}/imap-2004g</p>
<p># Install Apache<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/httpd-2.2.3.tar.gz<br />
cd ${SRCDIR}/httpd-2.2.3<br />
./configure &#8211;enable-rewrite &#8211;enable-ssl &#8211;enable-deflate &#8211;enable-so &#8211;enable-proxy &#8211;prefix=/usr/local/apache2<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/httpd-2.2.3</p>
<p># Install httpd init.d file<br />
cd ${SRCDIR}<br />
rm -f /etc/rc.d/init.d/httpd<br />
cp httpd.init.d /etc/rc.d/init.d/httpd<br />
chmod 755 /etc/rc.d/init.d/httpd<br />
rm -f /etc/rc.d/rc3.d/K*httpd<br />
rm -f /etc/rc.d/rc3.d/S*httpd<br />
cd /etc/rc.d/rc3.d &#038;&#038; ln -s /etc/rc.d/init.d/httpd F15sshd</p>
<p># Install libpng<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libpng-1.2.15.tar.gz<br />
cd ${SRCDIR}/libpng-1.2.15<br />
./configure<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/libpng-1.2.15</p>
<p># Install MySQL<br />
yum -y install perl-DBI<br />
cd ${SRCDIR}<br />
rpm -i MySQL-server-standard-5.0.18-0.rhel4.x86_64.rpm<br />
rpm -i MySQL-client-standard-5.0.18-0.rhel4.x86_64.rpm<br />
rpm -i MySQL-devel-standard-5.0.18-0.rhel4.x86_64.rpm<br />
rpm -i MySQL-shared-standard-5.0.18-0.rhel4.x86_64.rpm<br />
rpm -i MySQL-standard-debuginfo-5.0.18-0.rhel4.x86_64.rpm<br />
ln -s /usr/lib64/mysql/libmysqlclient.a /usr/lib/libmysqlclient.a</p>
<p># Install Flex<br />
yum -y install flex</p>
<p># Install libdv<br />
yum -y install libdv</p>
<p># Install re2c needed for php pfro compile<br />
cd ${SRCDIR}<br />
tar zxf ${SRCDIR}/re2c-0.11.0.tar.gz<br />
cd ${SRCDIR}/re2c-0.11.0<br />
./configure<br />
make<br />
make install</p>
<p># Install PHP<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/php-5.2.0.tar.gz<br />
cd ${SRCDIR}/php-5.2.0<br />
./configure &#8216;&#8211;prefix=/usr&#8217; &#8216;&#8211;exec-prefix=/usr&#8217; &#8216;&#8211;bindir=/usr/bin&#8217; &#8216;&#8211;sbindir=/usr/sbin&#8217; &#8216;&#8211;sysconfdir=/etc&#8217; &#8216;&#8211;datadir=/usr/share&#8217; &#8216;&#8211;includedir=/usr/include&#8217; &#8216;&#8211;libdir=/usr/lib64&#8242; &#8216;&#8211;libexecdir=/usr/libexec&#8217; &#8216;&#8211;localstatedir=/var&#8217; &#8216;&#8211;sharedstatedir=/usr/com&#8217; &#8216;&#8211;mandir=/usr/share/man&#8217; &#8216;&#8211;infodir=/usr/share/info&#8217; &#8216;&#8211;with-mcrypt=/usr&#8217; &#8216;&#8211;with-config-file-path=/etc&#8217; &#8216;&#8211;with-bz2&#8242; &#8216;&#8211;with-curl&#8217; &#8216;&#8211;with-curl-ssl&#8217; &#8216;&#8211;with-exec-dir=/usr/bin&#8217; &#8216;&#8211;with-freetype-dir=/usr&#8217; &#8216;&#8211;with-png-dir=/usr&#8217; &#8216;&#8211;with-gd&#8217; &#8216;&#8211;with-ttf&#8217; &#8216;&#8211;with-gdbm&#8217; &#8216;&#8211;with-gettext&#8217; &#8216;&#8211;with-ncurses&#8217; &#8216;&#8211;with-gmp&#8217; &#8216;&#8211;with-iconv&#8217; &#8216;&#8211;with-jpeg&#8217; &#8216;&#8211;with-openssl&#8217; &#8216;&#8211;with-png&#8217; &#8216;&#8211;with-regex=system&#8217; &#8216;&#8211;with-xsl=/usr&#8217; &#8216;&#8211;with-expat-dir=/usr&#8217; &#8216;&#8211;with-zlib&#8217; &#8216;&#8211;with-layout=GNU&#8217; &#8216;&#8211;with-kerberos=/usr/kerberos&#8217; &#8216;&#8211;with-apxs2=/usr/local/apache2/bin/apxs&#8217; &#8216;&#8211;without-oci8&#8242; &#8216;&#8211;enable-inline-optimization&#8217; &#8216;&#8211;enable-gd-native-ttf&#8217; &#8216;&#8211;enable-exif&#8217; &#8216;&#8211;enable-ftp&#8217; &#8216;&#8211;enable-sockets&#8217; &#8216;&#8211;enable-trans-sid&#8217; &#8216;&#8211;enable-memory-limit&#8217; &#8216;&#8211;disable-rpath&#8217; &#8216;&#8211;disable-debug&#8217; &#8216;&#8211;with-mysql=/usr/local/mysql&#8217; &#8216;&#8211;with-mysqli=/usr/bin/mysql_config&#8217;<br />
make<br />
make install<br />
cp php.ini-dist /etc/php.ini<br />
rm -Rf ${SRCDIR}/php-5.2.0</p>
<p># Install Memcache PHP Extension<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/memcache-2.1.0.tgz<br />
cd ${SRCDIR}/memcache-2.1.0<br />
phpize<br />
./configure<br />
make<br />
mkdir /usr/local/phpextensions/<br />
cp ${SRCDIR}/memcache-2.1.0/modules/memcache.so /usr/local/phpextensions/<br />
rm -Rf ${SRCDIR}/memcache-2.1.0</p>
<p># Install APC (php cache)<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/APC-3.0.12p2.tgz<br />
cd ${SRCDIR}/APC-3.0.12p2<br />
phpize<br />
./configure &#8211;enable-apc-mmap=yes &#8211;with-apxs2=/usr/local/apache2/bin/apxs<br />
make<br />
cd ${SRCDIR}/APC-3.0.12p2/modules/<br />
cp apc.so /usr/local/phpextensions</p>
<p># Install libevent-devel<br />
yum -y install libevent-devel</p>
<p># Install Memcache Daemon<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/memcached-1.2.1.tar.gz<br />
cd ${SRCDIR}/memcached-1.2.1<br />
./configure<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/memcached-1.2.1</p>
<p># Install BRUTIS<br />
cd ${SRCDIR}<br />
cp monitor.php /home/support/<br />
chmod 700 /home/support/monitor.php<br />
cp ${SRCDIR}/crontab_root /var/spool/cron/root</p>
<p># Install perl-Net-SSLeay<br />
yum -y install perl-Net-SSLeay</p>
<p># Install Webmin<br />
cd ${SRCDIR}<br />
rpm -U webmin-1.310-1.noarch.rpm</p>
<p>echo<br />
echo<br />
echo &#8212;&#8212;&#8212;- INSTALL COMPLETE! &#8212;&#8212;&#8212;-<br />
echo<br />
echo</p></blockquote>
<p>And here is the 32bit script.</p>
<blockquote><p>#!/bin/sh</p>
<p># Abort on any errors<br />
set -e</p>
<p># Where do you want all this stuff built?<br />
SRCDIR=/home/support/software/source</p>
<p># Install gcc<br />
yum -y install gcc</p>
<p># Install libtool<br />
yum -y install libtool</p>
<p># Extract OpenSSH and install openssh and the sshd in the init.d<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/openssh-4.5p1.tar.gz<br />
cd ${SRCDIR}/openssh-4.5p1<br />
./configure<br />
make<br />
make install<br />
cp -f ${SRCDIR}/sshd.init.d /etc/rc.d/init.d/sshd<br />
chmod 755 /etc/rc.d/init.d/sshd<br />
rm -f /etc/rc.d/rc3.d/S70sshd<br />
cd /etc/rc.d/rc3.d &#038;&#038; ln -s /etc/rc.d/init.d/sshd S70sshd<br />
rm -Rf ${SRCDIR}/openssh-4.5p1</p>
<p># Install libjpeg-devel<br />
yum -y install libjpeg-devel</p>
<p># Install jpeg.v6b<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/jpegsrc.v6b.tar.gz<br />
cd ${SRCDIR}/jpeg-6b<br />
cp /usr/share/libtool/config.guess ./<br />
cp /usr/share/libtool/config.sub ./<br />
./configure &#8211;enable-shared<br />
make<br />
install -d /usr/local/man/man1<br />
make install<br />
rm -Rf ${SRCDIR}/jpeg-6b</p>
<p># Install libtiff &#038; libtiff-devel<br />
yum -y install libtiff libtiff-devel</p>
<p># Install Ghostscript (needed for ImageMagick)<br />
yum -y install ghostscript</p>
<p># Install ImageMagick<br />
yum -y install ImageMagick</p>
<p># Install libxml2<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libxml2-2.6.27.tar.gz<br />
cd ${SRCDIR}/libxml2-2.6.27<br />
./configure &#8211;enable-shared<br />
make<br />
make install<br />
make tests<br />
rm -Rf ${SRCDIR}/libxml2-2.6.27</p>
<p># Install libxslt<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libxslt-1.1.19.tar.gz<br />
cd ${SRCDIR}/libxslt-1.1.19<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/libxslt-1.1.19</p>
<p># Install libmcrypt<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libmcrypt-2.5.7.tar.gz<br />
cd ${SRCDIR}/libmcrypt-2.5.7<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install</p>
<p># Install Freetype<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/freetype-2.2.1.tar.gz<br />
cd ${SRCDIR}/freetype-2.2.1<br />
./configure<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/freetype-2.2.1</p>
<p># Install OpenSSL<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/openssl-0.9.8d.tar.gz<br />
cd ${SRCDIR}/openssl-0.9.8d<br />
./config<br />
make<br />
make test<br />
make install<br />
rm -Rf ${SRCDIR}/openssl-0.9.8d</p>
<p># Install cURL<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/curl-7.15.0.tar.gz<br />
cd ${SRCDIR}/curl-7.15.0<br />
./configure &#8211;enable-ipv6 &#8211;enable-cookies &#8211;enable-crypto-auth &#8211;prefix=/usr<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/curl-7.15.0</p>
<p># Install c-client (IMAP)<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/imap-2004g.tar.Z<br />
cd ${SRCDIR}/imap-2004g<br />
make lrh<br />
cp c-client/c-client.a /usr/lib/libc-client.a<br />
cp c-client/*.h /usr/include<br />
rm -Rf ${SRCDIR}/imap-2004g</p>
<p># Install Apache<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/httpd-2.2.3.tar.gz<br />
cd ${SRCDIR}/httpd-2.2.3<br />
./configure &#8211;enable-rewrite &#8211;enable-ssl &#8211;enable-deflate &#8211;enable-so &#8211;enable-proxy &#8211;prefix=/usr/local/apache2<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/httpd-2.2.3</p>
<p># Install httpd init.d file<br />
cd ${SRCDIR}<br />
rm -f /etc/rc.d/init.d/httpd<br />
cp httpd.init.d /etc/rc.d/init.d/httpd<br />
chmod 755 /etc/rc.d/init.d/httpd<br />
rm -f /etc/rc.d/rc3.d/K*httpd<br />
rm -f /etc/rc.d/rc3.d/S*httpd<br />
cd /etc/rc.d/rc3.d &#038;&#038; ln -s /etc/rc.d/init.d/httpd F15sshd</p>
<p># Install libpng<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/libpng-1.2.15.tar.gz<br />
cd ${SRCDIR}/libpng-1.2.15<br />
./configure<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/libpng-1.2.15</p>
<p># Install MySQL<br />
yum -y install perl-DBI<br />
cd ${SRCDIR}<br />
rpm -i MySQL-server-standard-5.0.18-0.rhel3.i386.rpm<br />
rpm -i MySQL-client-standard-5.0.18-0.rhel3.i386.rpm<br />
rpm -i MySQL-devel-standard-5.0.18-0.rhel3.i386.rpm<br />
rpm -i MySQL-shared-standard-5.0.18-0.rhel3.i386.rpm</p>
<p># Install Flex<br />
yum -y install flex</p>
<p># Install libdv<br />
yum -y install libdv</p>
<p># Install PHP<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/php-5.2.0.tar.gz<br />
cd ${SRCDIR}/php-5.2.0<br />
./configure &#8216;&#8211;prefix=/usr&#8217; &#8216;&#8211;exec-prefix=/usr&#8217; &#8216;&#8211;bindir=/usr/bin&#8217; &#8216;&#8211;sbindir=/usr/sbin&#8217; &#8216;&#8211;sysconfdir=/etc&#8217; &#8216;&#8211;datadir=/usr/share&#8217; &#8216;&#8211;includedir=/usr/include&#8217; &#8216;&#8211;libdir=/usr/lib64&#8242; &#8216;&#8211;libexecdir=/usr/libexec&#8217; &#8216;&#8211;localstatedir=/var&#8217; &#8216;&#8211;sharedstatedir=/usr/com&#8217; &#8216;&#8211;mandir=/usr/share/man&#8217; &#8216;&#8211;infodir=/usr/share/info&#8217; &#8216;&#8211;with-mcrypt=/usr&#8217; &#8216;&#8211;with-config-file-path=/etc&#8217; &#8216;&#8211;with-bz2&#8242; &#8216;&#8211;with-curl&#8217; &#8216;&#8211;with-curl-ssl&#8217; &#8216;&#8211;with-exec-dir=/usr/bin&#8217; &#8216;&#8211;with-freetype-dir=/usr&#8217; &#8216;&#8211;with-png-dir=/usr&#8217; &#8216;&#8211;with-gd&#8217; &#8216;&#8211;with-ttf&#8217; &#8216;&#8211;with-gdbm&#8217; &#8216;&#8211;with-gettext&#8217; &#8216;&#8211;with-ncurses&#8217; &#8216;&#8211;with-gmp&#8217; &#8216;&#8211;with-iconv&#8217; &#8216;&#8211;with-jpeg&#8217; &#8216;&#8211;with-openssl&#8217; &#8216;&#8211;with-png&#8217; &#8216;&#8211;with-regex=system&#8217; &#8216;&#8211;with-xsl=/usr&#8217; &#8216;&#8211;with-expat-dir=/usr&#8217; &#8216;&#8211;with-zlib&#8217; &#8216;&#8211;with-layout=GNU&#8217; &#8216;&#8211;with-kerberos=/usr/kerberos&#8217; &#8216;&#8211;with-apxs2=/usr/local/apache2/bin/apxs&#8217; &#8216;&#8211;without-oci8&#8242; &#8216;&#8211;enable-inline-optimization&#8217; &#8216;&#8211;enable-gd-native-ttf&#8217; &#8216;&#8211;enable-exif&#8217; &#8216;&#8211;enable-ftp&#8217; &#8216;&#8211;enable-sockets&#8217; &#8216;&#8211;enable-trans-sid&#8217; &#8216;&#8211;enable-memory-limit&#8217; &#8216;&#8211;disable-rpath&#8217; &#8216;&#8211;disable-debug&#8217; &#8216;&#8211;with-mysql=/usr/local/mysql&#8217; &#8216;&#8211;with-mysqli=/usr/bin/mysql_config&#8217;<br />
make<br />
make install<br />
cp php.ini-dist /etc/php.ini<br />
rm -Rf ${SRCDIR}/php-5.2.0</p>
<p># Install Memcache PHP Extension<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/memcache-2.1.0.tgz<br />
cd ${SRCDIR}/memcache-2.1.0<br />
phpize<br />
./configure<br />
make<br />
mkdir /usr/local/phpextensions/<br />
cp ${SRCDIR}/memcache-2.1.0/modules/memcache.so /usr/local/phpextensions/<br />
rm -Rf ${SRCDIR}/memcache-2.1.0</p>
<p># Install APC (php cache)<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/APC-3.0.12p2.tgz<br />
cd ${SRCDIR}/APC-3.0.12p2<br />
phpize<br />
./configure &#8211;enable-apc-mmap=yes &#8211;with-apxs2=/usr/local/apache2/bin/apxs<br />
make<br />
cd ${SRCDIR}/APC-3.0.12p2/modules/<br />
cp apc.so /usr/local/phpextensions</p>
<p># Install libevent-devel<br />
yum -y install libevent-devel</p>
<p># Install Memcache Daemon<br />
cd ${SRCDIR}<br />
tar xzf ${SRCDIR}/memcached-1.2.1.tar.gz<br />
cd ${SRCDIR}/memcached-1.2.1<br />
./configure<br />
make<br />
make install<br />
rm -Rf ${SRCDIR}/memcached-1.2.1</p>
<p># Install BRUTIS<br />
cd ${SRCDIR}<br />
cp monitor.php /home/support/<br />
chmod 700 /home/support/monitor.php<br />
cp ${SRCDIR}/crontab_root /var/spool/cron/root</p>
<p># Install perl-Net-SSLeay<br />
yum -y install perl-Net-SSLeay</p>
<p># Install Webmin<br />
cd ${SRCDIR}<br />
rpm -U webmin-1.310-1.noarch.rpm</p>
<p>echo<br />
echo<br />
echo &#8212;&#8212;&#8212;- INSTALL COMPLETE! &#8212;&#8212;&#8212;-<br />
echo<br />
echo</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2007/01/install-of-apache-223-mysql-5018-and-php-520/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>64bit Install of PHP 5.2.0 &amp; MySQL 5.0.18, Awh!!!</title>
		<link>http://www.robertswarthout.com/2007/01/64bit-install-of-php-520-mysql-5018-awh/</link>
		<comments>http://www.robertswarthout.com/2007/01/64bit-install-of-php-520-mysql-5018-awh/#comments</comments>
		<pubDate>Wed, 10 Jan 2007 05:00:13 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=4</guid>
		<description><![CDATA[This post is meant to be a time saver for anyone else attempting to do a custom compile of PHP 5.2.0 with mysql and mysqli support built in. The systems this setup is being install on are 64bit Pentium machines running Fedora Core 5.
After way too many hours, 30+, of trial and error I found [...]]]></description>
			<content:encoded><![CDATA[<p>This post is meant to be a time saver for anyone else attempting to do a custom compile of PHP 5.2.0 with mysql and mysqli support built in. The systems this setup is being install on are 64bit Pentium machines running Fedora Core 5.<br />
After way too many hours, 30+, of trial and error I found the magic solution, at least in this setup. Basically PHP when doing the configure was looking in the wrong place for the 64bit version of the mysql libraries, mainly libmysqlclient.a. Mysql is installed into /usr/local/mysql and works like a champ. The configure looks for the library in /usr/lib instead of looking in /usr/lib64 as it should considering the &#8211;with-libdir=/usr/lib64 was used. To solve this fiasco a simple symbolic link was the answer.</p>
<p># ln -s /usr/lib64/libmysqlclient.a /usr/lib/mysqlclient.a</p>
<p>After that you should be in good shape for a good compile.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2007/01/64bit-install-of-php-520-mysql-5018-awh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
