<?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>tantos &#187; PHP</title>
	<atom:link href="http://tantos.web.id/blogs/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://tantos.web.id</link>
	<description>nek wedi ojo wani-wani, nek wani ojo wedi-wedi</description>
	<lastBuildDate>Mon, 23 Aug 2010 23:00:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing Apache 2, MySQL 5.1, and PHP 5.2 from Source in Ubuntu 9.04 (Jaunty)</title>
		<link>http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04</link>
		<comments>http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04#comments</comments>
		<pubDate>Sun, 11 Oct 2009 16:52:51 +0000</pubDate>
		<dc:creator>tantos</dc:creator>
				<category><![CDATA[In Moving to Linux]]></category>
		<category><![CDATA[Learning by Playing]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tantos.web.id/?p=149</guid>
		<description><![CDATA[[ad#ad-posttext] Here we go. I made this post based on my experience installing Apache 2, MySQL 5.1, and PHP 5.2 from apt-get and always get error when installing MySQL 5.1. Then I must install them from sources. Before we begin, make sure you already download source of Apache 2, MySQL 5.1, and PHP 5.2. Download [...]


Related posts:<ol><li><a href='http://tantos.web.id/blogs/membuat-autentikasi-user-menggunakan-apache' rel='bookmark' title='Membuat Autentikasi user menggunakan Apache'>Membuat Autentikasi user menggunakan Apache</a></li>
<li><a href='http://tantos.web.id/blogs/membuat-virtual-host-pada-server-lokal' rel='bookmark' title='Membuat Virtual Host pada server lokal'>Membuat Virtual Host pada server lokal</a></li>
<li><a href='http://tantos.web.id/blogs/installing-firefox-35-in-ubuntu-not-from-repository' rel='bookmark' title='Installing Firefox 3.5 in Ubuntu (not from Repository)'>Installing Firefox 3.5 in Ubuntu (not from Repository)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>[ad#ad-posttext]</p>
<p>Here we go. I made this post based on my experience installing Apache 2, MySQL 5.1, and PHP 5.2 from apt-get and always get error when installing MySQL 5.1. Then I must install them from sources.</p>
<p>Before we begin, make sure you already download source of Apache 2, MySQL 5.1, and PHP 5.2.</p>
<p><a href="http://httpd.apache.org/download.cgi" target="_blank">Download Apache HTTP Server</a><br />
<a href="http://dev.mysql.com/downloads/mysql/5.1.html#source" target="_blank">Download MySQL Server</a><br />
<a href="http://www.php.net/downloads.php" target="_blank">Download PHP</a></p>
<p>After the download completed, lets install them&#8230;</p>
<blockquote><p>Assume this installation guide using :<br />
Apache HTTP Server version 2.2.13<br />
MySQL Server version 5.1.39<br />
PHP version 5.2.11</p>
<p>If you get different version, just replace it&#8217;s version number <img src='http://tantos.web.id/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p>This code is ready to use, you can just paste it into your terminal/console.</p>
<p><strong><span style="color: #993300;">Install Mysql 5.1</span></strong><br />
Open terminal, and change the directory to the download folder.<br />
Do the following command :</p>
<pre class="prettyprint">#!/bin/bash
###login as root :
sudo su

###extract it :
tar -zxvf mysql-5.1.39.tar.gz

###change to the mysql extraction directory :
cd mysql-5.1.39

###adding mysql group :
groupadd mysql

###adding mysql user :
useradd mysql -g mysql

###create a directory for mysql pid file :
mkdir /var/run/mysqld

###change its owner to mysql :
chown -R mysql.mysql /var/run/mysqld

###create a directory for mysql data :
mkdir /var/mysqldata

###change its owner to mysql :
chown -R mysql.mysql /var/mysqldata

###configuring mysql :
./configure --prefix=/usr/local/ --localstatedir=/var/mysqldata --with-mysqld-user=mysql --with-unix-socket-path=/var/run/mysqld/mysqld.sock --with-plugins=innobase --without-docs --without-man

###make it :
make

###install it :
make install

###copying mysql.server file to /etc/init.d/mysql in order to automatically starting mysql-server each computer start :
cp support-files/mysql.server /etc/init.d/mysql

#make it executable
chmod +x /etc/init.d/mysql

#make it automatic start
update-rc.d mysql defaults

###starting mysql server manually :
/etc/init.d/mysql start

###install default mysql database :
mysql_install_db</pre>
<p><strong><span style="color: #993300;">Install Apache 2</span></strong><br />
Open terminal, and change the directory to the download folder.<br />
Do the following command :</p>
<pre class="prettyprint">#!/bin/bash
###login as root :
sudo su

###extract it :
tar -zxvf httpd-2.2.13.tar.gz

###change to the apache extraction directory :
cd httpd-2.2.13

###configure it :
./configure --enable-so --enable-mime-magic --enable-rewrite --with-mpm=prefork

###make it :
make

###install it :
make install

###copying apachectl file to /etc/init.d/httpd in order to automatically starting Apache HTTP Server each computer start :
cp support/apachectl /etc/init.d/httpd

#make it executable
chmod +x /etc/init.d/httpd

#make it automatic start
update-rc.d httpd defaults
</pre>
<p><strong><span style="color: #993300;">Install PHP 5.2</span></strong><br />
Open terminal, and change the directory to the download folder.<br />
Do the following command :</p>
<pre class="prettyprint">#!/bin/bash
###login as root :
sudo su

###extract it :
tar -zxvf php-5.2.11.tar.gz

###change to the PHP extraction directory :
cd php-5.2.11

###configure it :
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-mysqli --with-gd --enable-gd-native-ttf --enable-json --enable-zip --enable-mbstring --with-mcrypt --disable-ipv6 --enable-calendar --with-config-file-path=/usr/local/etc --enable-exif --enable-magic-quotes --with-zlib --with-iconv --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-bz2

###make it :
make

###install it :
make install</pre>
<p>Finally, start Apache HTTP Server manually :</p>
<pre class="prettyprint">/etc/init.d/httpd start</pre>
<p>Now, you can test your installation by typing</p>
<pre class="prettyprint">http://localhost/</pre>
<p>in your favorite browser. If it displays <strong>It works!</strong>, it must be success!<br />
Not : Place your PHP or HTML files to</p>
<pre class="prettyprint">/usr/local/apache2/htdocs</pre>
<p>If you get your installation failure, don&#8217;t be hesitate to ask here.</p>
<p>[ad#ad-post]</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Apache+2%2C+MySQL+5.1%2C+and+PHP+5.2+from+Source+in+Ubuntu+9.04+%28Jaunty%29&amp;link=http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04&amp;notes=%5Bad%23ad-posttext%5D%0D%0A%0D%0AHere%20we%20go.%20I%20made%20this%20post%20based%20on%20my%20experience%20installing%20Apache%202%2C%20MySQL%205.1%2C%20and%20PHP%205.2%20from%20apt-get%20and%20always%20get%20error%20when%20installing%20MySQL%205.1.%20Then%20I%20must%20install%20them%20from%20sources.%0D%0A%0D%0ABefore%20we%20begin%2C%20make%20sure%20you%20already%20download%20source%20of%20Apache%202%2C%20MySQL%205.1%2C%20an&amp;short_link=&amp;shortener=b2l&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul><div style="clear: both;"></div></div>



<p>Related posts:<ol><li><a href='http://tantos.web.id/blogs/membuat-autentikasi-user-menggunakan-apache' rel='bookmark' title='Membuat Autentikasi user menggunakan Apache'>Membuat Autentikasi user menggunakan Apache</a></li>
<li><a href='http://tantos.web.id/blogs/membuat-virtual-host-pada-server-lokal' rel='bookmark' title='Membuat Virtual Host pada server lokal'>Membuat Virtual Host pada server lokal</a></li>
<li><a href='http://tantos.web.id/blogs/installing-firefox-35-in-ubuntu-not-from-repository' rel='bookmark' title='Installing Firefox 3.5 in Ubuntu (not from Repository)'>Installing Firefox 3.5 in Ubuntu (not from Repository)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://tantos.web.id/blogs/installing-apache-2-mysql-5-1-and-php-5-2-from-source-in-ubuntu-9-04/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

