<?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>JOMYUT.NET &#187; directadmin</title>
	<atom:link href="http://www.jomyut.net/tag/directadmin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jomyut.net</link>
	<description>Software Engineering Blog</description>
	<lastBuildDate>Sat, 29 Oct 2011 17:42:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Limitation of DirectAdmin on Amazon EC2</title>
		<link>http://www.jomyut.net/2011/04/limitation-of-directadmin-on-amazon-ec2.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=limitation-of-directadmin-on-amazon-ec2</link>
		<comments>http://www.jomyut.net/2011/04/limitation-of-directadmin-on-amazon-ec2.html#comments</comments>
		<pubDate>Thu, 14 Apr 2011 00:51:01 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[In the Cloud]]></category>
		<category><![CDATA[AmazonEC2]]></category>
		<category><![CDATA[directadmin]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=129</guid>
		<description><![CDATA[This is some limitation of DirectAdmin when deploy in Amazon EC2. Experience with outbound packet from DirectAdmin. Every features that needs outbound connection in DirectAdmin will not work. This is because the DirectAdmin configuration will automatically use interfaces in DirectAdmin configuration (also present as DirectAdmin License). The known functions that not working properly such as [...]]]></description>
			<content:encoded><![CDATA[<p>This is some limitation of DirectAdmin when deploy in Amazon EC2.</p>
<p>Experience with outbound packet from DirectAdmin. Every features that needs outbound connection in DirectAdmin will not work. This is because the DirectAdmin configuration will automatically use interfaces in DirectAdmin configuration (also present as DirectAdmin License). The known functions that not working properly such as</p>
<ul>
<li>Automatic grab the license<br />
<span style="text-decoration: underline;">Workaround</span>: You have to use<span style="color: #008000;"> /usr/local/directadmin/scripts/getLicense.sh </span>to manually grab your license.</li>
<li>Auto DirectAdmin Update<br />
<span style="text-decoration: underline;">Workaround</span>: You have to use <span style="color: #008000;">/usr/local/directadmin/scripts/getDA.sh</span> to manually upgrade your DirectAdmin.</li>
<li>Multi Server for DNS Service<br />
<span style="text-decoration: underline;">Workaround</span>: None</li>
</ul>
<p>You cannot bind more than 1 ip address to each instance. You can have only 1 IP Address each instance.</p>
<ul>
<li>You cannot specific IP address to specific domain name. (Because you have only 1 IP Address).</li>
<li>You cannot use SSL with specific IP Address. You may use Shared SSL as normally.</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2011/04/limitation-of-directadmin-on-amazon-ec2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DirectAdmin in the Amazon EC2</title>
		<link>http://www.jomyut.net/2011/04/directadmin-in-the-amazon-ec2.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=directadmin-in-the-amazon-ec2</link>
		<comments>http://www.jomyut.net/2011/04/directadmin-in-the-amazon-ec2.html#comments</comments>
		<pubDate>Tue, 12 Apr 2011 12:38:51 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[In the Cloud]]></category>
		<category><![CDATA[AmazonEC2]]></category>
		<category><![CDATA[directadmin]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=120</guid>
		<description><![CDATA[Everything is now pointing to the cloud, how about Shared web hosting service? Nowadays, Cloud computing had been talking wildly in the topic of IaaS (Infrastructure as a service) which reduce costs in the machines resources and maintenance costs. This tutorial provide guideline to make Shared web hosting service based on Amazon EC2. Assume that you [...]]]></description>
			<content:encoded><![CDATA[<p>Everything is now pointing to the cloud, how about Shared web hosting service? Nowadays, Cloud computing had been talking wildly in the topic of IaaS (Infrastructure as a service) which reduce costs in the machines resources and maintenance costs. This tutorial provide guideline to make Shared web hosting service based on Amazon EC2.</p>
<p>Assume that you already have Amazon AWS account. (If not, create one)</p>
<h3>Reserve one of the Elastic IP address</h3>
<p>In the most first step, you should reserved one elastic ip address. This ip address use to request for DirectAdmin license. You may wait for DirectAdmin license confirmation before continue in next step to save your EC2 instance costs.</p>
<h3>Setup Security Group</h3>
<p>Now, it is turn that you going to Amazon AWS Management Console, you have enable some ports to make your instance access from the Outside. You must add <span style="color: #800000;">DNS, 21 (FTP), 2222, SSH, SMTP, SMTPS, IMAP, IMAPS, HTTP, HTTPS</span> to your instance security policy. 2222 is known as DirectAdmin control panel default port.</p>
<h3>Create Amazon EC2 Instance</h3>
<p>When create an Amazon EC2 instance, I preferred to use <span style="text-decoration: underline;">Large</span> -- an instance type. that take you benefits from high-memory and compute units. If you willing to use small or tiny, you will experience with very slow during compile step. You may use Large instance and then change to Tiny/Small later when system has completed installation and it is ready to be use.</p>
<blockquote><p>Preferred : Large Amazon EC2 Instance</p></blockquote>
<p>in the <a href="http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/" target="_blank">reference topic</a>, they use CentOS x64. I have use Ubuntu 10.04 LTS x86 and it work well.</p>
<h3>Running Amazon Instance</h3>
<p>Once you created, run it and login to your instance. If you use Ubuntu 10.04 LTS x86 AMI from Amazon Community, you must use 'ubuntu' as username, and use authorized key when you created the instance. Now is step-by-step to install DirectAdmin</p>
<ul>
<li>Following DirectAdmin <a href="http://help.directadmin.com/item.php?id=354" target="_blank">Pre-requirement guideline</a> to install package that required by DirectAdmin. You also following the DirectAdmin installation guide here.</li>
</ul>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#pre-installed"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#pre-installed"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Pre-installation command in RHEL/CentOS</a></td><td align="right"><a href="#pre-installed" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#pre-installed" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">yum <span class="kw2">install</span> <span class="kw2">gcc</span> gcc-c++ <span class="kw2">flex</span> <span class="kw2">bison</span> <span class="kw2">make</span> <span class="kw3">bind</span> bind-libs bind-utils openssl openssl-devel <span class="kw2">perl</span> quota</div></div></div>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#pre-installed2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#pre-installed2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Pre-installation command in Ubuntu/Debian</a></td><td align="right"><a href="#pre-installed2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#pre-installed2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">apt-get</span> <span class="kw2">install</span> <span class="kw2">gcc</span> <span class="kw2">g++</span> <span class="kw2">make</span> <span class="kw2">flex</span> <span class="kw2">bison</span> openssl libssl-dev <span class="kw2">perl</span> perl-base perl-modules libperl-dev libaio1 libaio-dev</div></div></div>
<ul>
<li>Get setup script from DirectAdmin<br />
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.directadmin.com<span class="sy0">/</span>setup.sh </div></div></div></li>
<li>Remove bind-address from setup.sh script. Make it go though private interface (but it will be elastic IP address show up at DirectAdmin Licensing)<br />
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Shell command - Replace IP Address with empty characters</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/--bind-address=\$IP//;'</span> setup.sh</div></div></div></li>
<li>Attached Elastic IP Address to the instance interface<br />
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">ifconfig</span> eth0:0 inet <span class="re1">$YOUR_IP_ADDRESS_HERE</span> netmask 255.255.255.255 up</div></div></div></li>
<li>Running screen command to protect installation step from connection lost of your machine. this command will make Installation script running even you lost connection. (When you login back to the system can get back the previous session)<br />
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">screen</span> </div></div></div></li>
<li>Open the second terminal, We need to running one script parallel with installation process</li>
<li><strong>You may Replace this step with the next one</strong><br />
In the second terminal, be sure that you are root privilege and running following command<br />
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Shell command (Replace this code with the next one)</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw3">cd</span> <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>directadmin<span class="sy0">/</span>scripts; <span class="kw1">while</span> <span class="br0">&#91;</span> <span class="kw2">true</span> <span class="br0">&#93;</span>; <span class="kw1">do</span> <span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/--bind-address=\$IP//; s/--bind-address=\${3}//;'</span> <span class="sy0">*</span>.sh <span class="sy0">&gt;</span> <span class="sy0">/</span>dev<span class="sy0">/</span>null <span class="sy0">&gt;</span> 2<span class="sy0">&amp;&gt;</span><span class="nu0">1</span>; <span class="kw2">sleep</span> <span class="nu0">1</span>; <span class="kw1">done</span></div></div></div><br />
This script will be execute itself in infinite loop. You just terminate when installation completed. This is because when you run setup script, it will be download some of setup script that inside have --bind-address paramter which make you cannot retrieve the destination.</li>
<li><strong>This step have replaced the previous one</strong>.<br />
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/tar xzf update.tar.gz/tar xzf update.tar.gz\n[JOMYUT]/'</span> setup.sh<br />
<span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/\[JOMYUT\]/sh fix-binding.sh/'</span> setup.sh<br />
<span class="kw3">echo</span> <span class="st0">&quot;cd /usr/local/directadmin/scripts/&quot;</span> <span class="sy0">&gt;</span> fix-binding.sh<br />
<span class="kw3">echo</span> <span class="st0">&quot;sed -i 's/--bind-address=\\<span class="es1">\$</span>IP//; s/--bind-address=\\<span class="es1">\$</span>{3}//;' *.sh&quot;</span> <span class="sy0">&gt;&gt;</span> fix-binding.sh<br />
<span class="kw2">chmod</span> <span class="nu0">755</span> fix-binding.sh</div></div></div></li>
<li>Back to the first terminal, running setup script<br />
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">.<span class="sy0">/</span>setup.sh <span class="re1">$CLIENT_ID</span> <span class="re1">$LICENSE_ID</span> <span class="re1">$YOUR_HOSTNAME</span> eth0:0 <span class="re1">$ELASTIC_IP</span></div></div></div><br />
<span style="text-decoration: underline;">Replace</span> $CLIENT_ID with your client id received in DirectAdmin license<br />
<span style="text-decoration: underline;">Replace</span> $LICENSE_ID with your license id received in DirectAdmin license<br />
<span style="text-decoration: underline;">Replace</span> $YOUR_HOSTNAME with your hostname of this machine that you want<br />
<span style="text-decoration: underline;">Replace</span> $ELASTIC_IP with your elastic ip that you binding to current instance</li>
<li></li>
</ul>
<h3>Finalize Step</h3>
<p>After completed the installation, you have to add ec2-user or ssh user back into /etc/ssh/sshd_config file. this is because DirectAdmin installation have change it. Just put your username in the last line. otherwise, the next time you will not able access SSH by your username. However, if you forget this step, you may use Administrator username that DirectAdmin provide on the final setup screen.</p>
<p>You may reconfigure the PHP temporary file path, PHP session path to the local storage. This configuration will help you save costs from EBS I/O but remembered that any data in local storage will be lost when stop the instance. So, remember to use it as temporary file only.</p>
<h3>Boot script</h3>
<ul>
<li>If you customize the machine such as PHP tmp path, PHP session path, you have to make a script that make temporary folder in local storage everytime that restart the instance. Any data in local storage will be lost when stop the instance. if you use `init 6` to restart your instance, data will still in your local storage.</li>
<li>Wake up your License Ethernet connection when restart machine Set up your IP address in the /etc/interfaces to make it binding when startup the instance<br />
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw3">cd</span> <span class="sy0">/</span>etc<span class="sy0">/</span>network<br />
<span class="kw3">echo</span> <span class="st0">&quot;auto eth0:0&quot;</span> <span class="sy0">&gt;&gt;</span> interfaces<br />
<span class="kw3">echo</span> <span class="st0">&quot;iface eth0:0 inet static&quot;</span> <span class="sy0">&gt;&gt;</span> interfaces<br />
<span class="kw3">echo</span> <span class="st0">&quot;address <span class="es2">$YOUR_ELASTIC_IP</span>&quot;</span> <span class="sy0">&gt;&gt;</span> interfaces<br />
<span class="kw3">echo</span> <span class="st0">&quot;netmask 255.255.255.255&quot;</span> <span class="sy0">&gt;&gt;</span> interfaces</div></div></div></li>
<li></li>
</ul>
<h3>Test Running</h3>
<p>Now, reboot! Hurey!, you may test your control panel after restart the instance, try login to your Control Panel.</p>
<h3>Change Apache Template</h3>
<p>At the time I wrote this guideline, Amazon can have only 1 Elastic IP per instance. Any incoming package will sent to internal ip address. This make a problem with default Apache config which handle each IP address in its configuration. So, we change /etc/httpd/conf/ips.conf to be global address instead of per IP address.</p>
<div id="wpshdo_11" class="wp-synhighlighter-outer"><div id="wpshdt_11" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_11"></a><a id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/\s.*:/ \*:/'</span> <span class="sy0">/</span>etc<span class="sy0">/</span>httpd<span class="sy0">/</span>conf<span class="sy0">/</span>ips.conf</div></div></div>
<p>However, in any users created, it will also use IP address, so, we have to change httpd template where is in /usr/local/directadmin/data/templates/</p>
<div id="wpshdo_12" class="wp-synhighlighter-outer"><div id="wpshdt_12" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_12"></a><a id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw3">cd</span> <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>directadmin<span class="sy0">/</span>data<span class="sy0">/</span>templates<span class="sy0">/</span><br />
<span class="kw2">find</span> . <span class="re5">-name</span> <span class="st0">&quot;*virtual_host*&quot;</span> <span class="re5">-exec</span> <span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/|IP|/\*/'</span> <span class="st_h">'{}'</span> \;<br />
<span class="kw2">find</span> . <span class="re5">-name</span> <span class="st0">&quot;*virtual_host*&quot;</span> <span class="re5">-exec</span> <span class="kw2">sed</span> <span class="re5">-i</span> <span class="st_h">'s/|MULTI_IP|//'</span> <span class="st_h">'{}'</span> \;</div></div></div>
<p>The above command will replace all IP address in every apache template to be global (*). and remove |MULTI_IP| because you cannot use this features.</p>
<p>Now, try to create new user account and test.</p>
<h3>Watch Out</h3>
<p>the directory /usr/local/directadmin/data/templates/ will be replaced when get DirectAdmin update. you should backup whole directory and replace back after update your DirectAdmin.</p>
<p>Done.</p>
<p><span style="color: #008000;">[Update on 20 Apr 2011]</span> setup.sh - add enhancement for detect update.tar.gz extraction.<br />
TODO: /templates/custom in the last section<br />
TODO: Add full EC2 management script to the entry</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2011/04/directadmin-in-the-amazon-ec2.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Install PHP 5.2/5.3 in the same machine</title>
		<link>http://www.jomyut.net/2011/04/install-php-5-25-3-in-the-same-machine.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-php-5-25-3-in-the-same-machine</link>
		<comments>http://www.jomyut.net/2011/04/install-php-5-25-3-in-the-same-machine.html#comments</comments>
		<pubDate>Mon, 11 Apr 2011 06:38:15 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[custombuild]]></category>
		<category><![CDATA[directadmin]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=99</guid>
		<description><![CDATA[This is solution for DirectAdmin machine owner who would like to use both version of PHP5 in their system. First, you may see reference topic here and here. To install both PHP versions with custombuild, you are require to trick the DirectAdmin with PHP6 configuration because DirectAdmin itself doesn't support both PHP5 working at the same [...]]]></description>
			<content:encoded><![CDATA[<p>This is solution for <span style="text-decoration: underline;">DirectAdmin machine owner</span> who would like to use both version of PHP5 in their system. First, you may see reference topic <a href="http://www.directadmin.com/forum/showthread.php?t=39017">here</a> and <a href="http://www.directadmin.com/forum/showthread.php?t=35175&amp;mode=linear">here</a>. To install both PHP versions with custombuild, you are require to trick the DirectAdmin with PHP6 configuration because DirectAdmin itself doesn't support both PHP5 working at the same time.</p>
<h3>One solution to choice</h3>
<p>In the solution I provided, I make PHP5.3 as default compiler running as CLI. and PHP 5.2 can be optional used with .htaccess level configuration. (running by suPHP)</p>
<ol>
<li>Change the custombuild build script to version 1.2<br />
<div id="wpshdo_13" class="wp-synhighlighter-outer"><div id="wpshdt_13" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_13"></a><a id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw3">cd</span> <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>directadmin<span class="sy0">/</span>custombuild<span class="sy0">/</span><br />
.<span class="sy0">/</span>build <span class="kw1">set</span> custombuild <span class="nu0">1.2</span></div></div></div></li>
<li>Change automatic download new versions.txt to be No.<br />
<div id="wpshdo_14" class="wp-synhighlighter-outer"><div id="wpshdt_14" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_14"></a><a id="wpshat_14" class="wp-synhighlighter-title" href="#codesyntax_14"  onClick="javascript:wpsh_toggleBlock(14)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_14" onClick="javascript:wpsh_code(14)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_14" onClick="javascript:wpsh_print(14)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_14" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">.<span class="sy0">/</span>build <span class="kw1">set</span> autover no</div></div></div>Later, explained.</li>
<li>Build update and copy PHP5 configuration to PHP6 custombuild path<br />
<div id="wpshdo_15" class="wp-synhighlighter-outer"><div id="wpshdt_15" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_15"></a><a id="wpshat_15" class="wp-synhighlighter-title" href="#codesyntax_15"  onClick="javascript:wpsh_toggleBlock(15)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_15" onClick="javascript:wpsh_code(15)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_15" onClick="javascript:wpsh_print(15)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_15" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">.<span class="sy0">/</span>build update<br />
<span class="kw2">mkdir</span> <span class="re5">-p</span> custom<span class="sy0">/</span>suphp<br />
<span class="kw2">cp</span> <span class="re5">-pf</span> configure<span class="sy0">/</span>suphp<span class="sy0">/</span>configure.php5 custom<span class="sy0">/</span>suphp<span class="sy0">/</span>configure.php6</div></div></div></li>
<li>For me, I implement PHP5.3 running as CLI and PHP5.2 as CGI by suPHP. This is difference from referenced topic<br />
<div id="wpshdo_16" class="wp-synhighlighter-outer"><div id="wpshdt_16" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_16"></a><a id="wpshat_16" class="wp-synhighlighter-title" href="#codesyntax_16"  onClick="javascript:wpsh_toggleBlock(16)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_16" onClick="javascript:wpsh_code(16)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_16" onClick="javascript:wpsh_print(16)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_16" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">perl</span> <span class="re5">-pi</span> <span class="re5">-e</span> <span class="st_h">'s/php5\:/phprep\:/'</span> versions.txt<br />
<span class="kw2">perl</span> <span class="re5">-pi</span> <span class="re5">-e</span> <span class="st_h">'s/php6/php5/'</span> versions.txt<br />
<span class="kw2">perl</span> <span class="re5">-pi</span> <span class="re5">-e</span> <span class="st_h">'s/phprep/php6/'</span> versions.txt</div></div></div></li>
<li>Set build options<br />
<div id="wpshdo_17" class="wp-synhighlighter-outer"><div id="wpshdt_17" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_17"></a><a id="wpshat_17" class="wp-synhighlighter-title" href="#codesyntax_17"  onClick="javascript:wpsh_toggleBlock(17)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_17" onClick="javascript:wpsh_code(17)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_17" onClick="javascript:wpsh_print(17)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_17" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">.<span class="sy0">/</span>build <span class="kw1">set</span> php5_ver 5.3<br />
.<span class="sy0">/</span>build <span class="kw1">set</span> php6_cgi <span class="kw2">yes</span><br />
.<span class="sy0">/</span>build <span class="kw1">set</span> php6_cli no<br />
.<span class="sy0">/</span>build <span class="kw1">set</span> php5_cgi no<br />
.<span class="sy0">/</span>build <span class="kw1">set</span> php5_cli <span class="kw2">yes</span></div></div></div><br />
Note that php6 is a configuration for PHP 5.2 and PHP5 is a configuration for PHP 5.3 and running as default engine.</li>
<li>Build both PHP versions.<br />
<div id="wpshdo_18" class="wp-synhighlighter-outer"><div id="wpshdt_18" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_18"></a><a id="wpshat_18" class="wp-synhighlighter-title" href="#codesyntax_18"  onClick="javascript:wpsh_toggleBlock(18)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_18" onClick="javascript:wpsh_code(18)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_18" onClick="javascript:wpsh_print(18)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_18" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">.<span class="sy0">/</span>build php n</div></div></div></li>
<li> Change path of the PHP 5.2 package</li>
</ol>
<p>Now, below is a configuration for PHP 5.2 based website. you have to put these code in .htaccess to root of public_html directory</p>
<div id="wpshdo_19" class="wp-synhighlighter-outer"><div id="wpshdt_19" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_19"></a><a id="wpshat_19" class="wp-synhighlighter-title" href="#codesyntax_19"  onClick="javascript:wpsh_toggleBlock(19)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_19" onClick="javascript:wpsh_code(19)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_19" onClick="javascript:wpsh_print(19)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_19" class="wp-synhighlighter-inner" style="display: block;"><div class="apache" style="font-family:monospace;">&lt;<span class="kw3">FilesMatch</span> <span class="st0">&quot;<span class="es0">\.</span>php$&quot;</span>&gt;<br />
<span class="kw1">AddHandler</span> x-httpd-php6 .php<br />
&lt;/<span class="kw3">FilesMatch</span>&gt;</div></div></div>
<p>if you don't like to use x-httpd-php6, you may change to x-httpd-php52 or somewhat you want. but you have to config below files</p>
<pre dir="ltr"><div id="wpshdo_20" class="wp-synhighlighter-outer"><div id="wpshdt_20" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_20"></a><a id="wpshat_20" class="wp-synhighlighter-title" href="#codesyntax_20"  onClick="javascript:wpsh_toggleBlock(20)" title="Click to show/hide code block">Shell command</a></td><td align="right"><a href="#codesyntax_20" onClick="javascript:wpsh_code(20)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_20" onClick="javascript:wpsh_print(20)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_20" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">perl</span> <span class="re5">-pi</span> <span class="re5">-e</span> <span class="st_h">'s/x-httpd-php6/x-httpd-php52/'</span> <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>suphp<span class="sy0">/</span>etc<span class="sy0">/</span>suphp.conf<br />
<span class="kw2">perl</span> <span class="re5">-pi</span> <span class="re5">-e</span> <span class="st_h">'s/x-httpd-php6/x-httpd-php52/'</span> <span class="sy0">/</span>etc<span class="sy0">/</span>httpd<span class="sy0">/</span>conf<span class="sy0">/</span>extra<span class="sy0">/</span>httpd-suphp.conf</div></div></div></pre>
<p>Now, you can use website with PHP 5.2 and PHP 5.3 upon .htaccess configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2011/04/install-php-5-25-3-in-the-same-machine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

