<?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"
	>

<channel>
	<title>PinoyTux Weblog &#187; LAMP</title>
	<atom:link href="http://www.pinoytux.com/category/lamp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pinoytux.com</link>
	<description>Get Fresh News About Linux, Philippines and Everything in Between</description>
	<pubDate>Mon, 06 Oct 2008 13:21:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Tip: No Space Left on Device Error</title>
		<link>http://www.pinoytux.com/linux/tip-no-space-left-on-device-error</link>
		<comments>http://www.pinoytux.com/linux/tip-no-space-left-on-device-error#comments</comments>
		<pubDate>Sun, 25 May 2008 09:18:46 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[ipcrm]]></category>

		<category><![CDATA[semaphore]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=272</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/tip-no-space-left-on-device-error';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Tip: No Space Left on Device Error';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
If you have an Apache web server and for some weird reason, you cannot start the service, then you might be encountering the &#8220;No space left on device&#8221; error.
At first you will notice that no matter how many times you restart the http daemon, it just won&#8217;t start. Looking at the logs, you will see [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/tip-no-space-left-on-device-error';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Tip: No Space Left on Device Error';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
<p>If you have an Apache web server and for some weird reason, you cannot start the service, then you might be encountering the &#8220;No space left on device&#8221; error.</p>
<p>At first you will notice that no matter how many times you restart the http daemon, it just won&#8217;t start. Looking at the logs, you will see these errors: </p>
<p class="alert">[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration failed.</p>
<p>Of course, seeing that the errors are about the disk being full, you might want to check the disk space of your machine: <span id="more-272"></span></p>
<p class="note">#df -ah</p>
<p class="note">#df -ahi</p>
<p>If there are still lots of spaces available, then do this command to clear the resources of your webserver:</p>
<p class="note">#ipcs -s | grep apache | awk &#8216;{print $2}&#8217; | xargs ipcrm sem</p>
<p class="info">*Substitute &#8216;apache&#8217; with the user of your Apache service*</p>
<p>What the command does is it removes the semaphores left by the apache daemon when it was not able to shut down properly. Also note that the particular command only clears the semaphores owned by &#8216;apache&#8217; or whatever user you set to run the httpd service.</p>
<p>When you are done freeing the resources, you can try to restart the httpd again. It should be able to start now.</p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.pinoytux.com/tips/tip-simple-ssl-certificate-scanner" title="Tip: Simple SSL Certificate Scanner">Tip: Simple SSL Certificate Scanner (2)</a></li>
<li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/how-to-create-self-signed-certificate" title="How To Create Self Signed Certificate">How To Create Self Signed Certificate (2)</a></li>
<li><a href="http://www.pinoytux.com/pinoytux/pinoytux-break" title="PinoyTux Break">PinoyTux Break (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/pinoytux-reaches-30k-visitors" title="PinoyTux Reaches 30K Visitors!">PinoyTux Reaches 30K Visitors! (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/tip-no-space-left-on-device-error/feed</wfw:commentRss>
		</item>
		<item>
		<title>Tip: How to Decode CSR</title>
		<link>http://www.pinoytux.com/lamp/tip-how-to-decode-csr</link>
		<comments>http://www.pinoytux.com/lamp/tip-how-to-decode-csr#comments</comments>
		<pubDate>Sat, 26 Apr 2008 21:50:23 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[certificate]]></category>

		<category><![CDATA[certificate request]]></category>

		<category><![CDATA[commerce websites]]></category>

		<category><![CDATA[comodo]]></category>

		<category><![CDATA[digital certificates]]></category>

		<category><![CDATA[e-commerce]]></category>

		<category><![CDATA[https]]></category>

		<category><![CDATA[secure]]></category>

		<category><![CDATA[ssl]]></category>

		<category><![CDATA[ssl certificates]]></category>

		<category><![CDATA[verisign]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=227</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/lamp/tip-how-to-decode-csr';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Tip: How to Decode CSR';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
If you are a web administrator who has to renew SSL certificates every time your copy expires, you may find this neat tool to decode your existing Certificate Signing Request or CSR file.
Certificate Signing Request or CSR file is the file that must be sent to a certificate authority (like Verisign or Comodo) to get [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/lamp/tip-how-to-decode-csr';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Tip: How to Decode CSR';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
<p>If you are a web administrator who has to renew SSL certificates every time your copy expires, you may find this neat tool to decode your existing Certificate Signing Request or CSR file.</p>
<p>Certificate Signing Request or CSR file is the file that must be sent to a certificate authority (like <a href="http://verisign.com" target="_blank">Verisign</a> or <a href="http://comodo.com" target="_blank">Comodo</a>) to get a digital identity certificate. Digital identity certificates are commonly used in e-commerce websites and is required if you want to enable https or secure http in your website.<br />
<span id="more-227"></span><br />
The https protocol is identified in a user&#8217;s browser usually with a padlock icon. Most online consumers trust websites with https enabled because websites with digital certificates are sites that are identified as legit and makes online shopping secure with the use of data encryption.</p>
<p>Getting back to the topic, if you want to create a CSR, I have a guide already that discusses a step-by-step process to <a href="http://www.pinoytux.com/linux/how-to-create-self-signed-certificate">create your own CSR</a>. In the tutorial, it shows how to create a self-signed certificate. To put it in a more understandable term, a self-signed certificate is like creating your own ID card signed by yourself. Not a very convincing proof to confirm your identity. While a certificate signed by a certificate authority like Comodo, your ID card is signed by let&#8217;s say, a goverment official or the president of your organization. The ID card signed by an authority is more trusted by public because the identity of the person is confirmed by a third-party body.</p>
<p>Now that we have identified what a CSR is, how do you check the contents of a CSR? If you will take a look at the insides of a CSR file, you will see something like this:</p>
<blockquote><p>&#8212;&#8211;BEGIN CERTIFICATE REQUEST&#8212;&#8211;<br />
MIIBrzCCARgCAQAwbzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQ8wDQYDVQQH<br />
EwZjYXJzb24xDTALBgNVBAoTBFVTQVAxFTATBgNVBAMTDHd3dy50ZXN0LmNvbTEc<br />
MBoGCSqGSIb3DQEJARYNaW5mb0B0ZXN0LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB<br />
jQAwgYkCgYEAruRWkLaAolIcHLHZeXMlC6v1DFkypHO6xZiupYm0r22/Rw6AhIPR<br />
47D9nEIJrAeUpZj00aAgNt1kmPwRSxSbZxpD1lzPWbXWM1BRWhdPgZqbbKKMfIa3<br />
dgvWTQwS66inLT//hA6lfDaaVCAffYWTVWPVMx2sgP7w3s0uky+l64cCAwEAAaAA<br />
MA0GCSqGSIb3DQEBBQUAA4GBAGpdX11dFsg270WnXmndz2E9Ud0QloqFi/MCGxq7<br />
oOeYuaimjaesh+2owjlAIltCZFVwtfREhsg40p4lldjlbCxX5yOBHO477mj2dX/d<br />
X5iW7hX7awKb4YBeted400CnQ5oQ4o2f0jquVC4F+mKjWVIMHbStK/VlplXmfVXL<br />
y0n0<br />
&#8212;&#8211;END CERTIFICATE REQUEST&#8212;&#8211;</p></blockquote>
<p>It looks like gibberish, but it is an encrypted message which contains the information you put in when you created your CSR. And Comodo has an online tool which can be used to see what information are contained in a CSR file.</p>
<p>The <a href="https://secure.comodo.net/utilities/decodeCSR.html" target="_blank">online CSR Decoder tool</a> is very simple to use. You just put the contents of your CSR file inside the box and click Decode. The results will be displayed in the lower box which tells you the information inside the CSR file.</p>
<p>Only the CSR file can be decoded, but the CRT file or the digital certificate cannot be decoded so easily.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.pinoytux.com/linux/how-to-create-self-signed-certificate" title="How To Create Self Signed Certificate">How To Create Self Signed Certificate (2)</a></li>
<li><a href="http://www.pinoytux.com/tips/tip-simple-ssl-certificate-scanner" title="Tip: Simple SSL Certificate Scanner">Tip: Simple SSL Certificate Scanner (2)</a></li>
<li><a href="http://www.pinoytux.com/gadgets/secure-files-with-your-ironkey" title="Secure Files with Your IronKey">Secure Files with Your IronKey (2)</a></li>
<li><a href="http://www.pinoytux.com/random/use-credit-cards-for-emergencies" title="Use Credit Cards for Emergencies">Use Credit Cards for Emergencies (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/lamp/tip-how-to-decode-csr/feed</wfw:commentRss>
		</item>
		<item>
		<title>How To Create Self Signed Certificate</title>
		<link>http://www.pinoytux.com/linux/how-to-create-self-signed-certificate</link>
		<comments>http://www.pinoytux.com/linux/how-to-create-self-signed-certificate#comments</comments>
		<pubDate>Wed, 05 Mar 2008 22:39:33 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[certificate]]></category>

		<category><![CDATA[http]]></category>

		<category><![CDATA[https]]></category>

		<category><![CDATA[secure]]></category>

		<category><![CDATA[self-signed]]></category>

		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/linux/how-to-create-self-signed-certificate</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/how-to-create-self-signed-certificate';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How To Create Self Signed Certificate';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
This is a mini guide on how to create a self signed SSL certificate for your secure website on Apache server. Self signed certificates are commonly used for site testing but is not honored for public websites since the certificate is signed only by you, hence the term self signed.
Step 1: Generating a server key [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/how-to-create-self-signed-certificate';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How To Create Self Signed Certificate';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
<p>This is a mini guide on how to create a self signed SSL certificate for your secure website on Apache server. Self signed certificates are commonly used for site testing but is not honored for public websites since the certificate is signed only by <em>you</em>, hence the term <em>self signed</em>.</p>
<p><strong>Step 1: Generating a server key needed to create the .ca and .crt files</strong></p>
<blockquote><p> [root@home test]# openssl genrsa -des3 -out server.key 4096<br />
Generating RSA private key, 4096 bit long modulus<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..++<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;++<br />
e is 65537 (0&#215;10001)<br />
Enter pass phrase for server.key:<br />
Verifying - Enter pass phrase for server.key:<br />
[root@home test]# ls<br />
server.key</p></blockquote>
<p><strong>Step 2: Remove the passphrase from the key file. </strong>This is done so you do not have to type in the passphrase everytime the Apache is started. This especially useful in the event of server reboot when there is no one to manually type the passphrase. (Note: Once the passphrase is removed from the key, make sure that the file is readable only by root.)</p>
<blockquote><p> [root@home test]# mv server.key server.key.secure<br />
`server.key&#8217; -&gt; `server.key.secure&#8217;<br />
[root@home test]# openssl rsa -in server.key.secure -out server.key<br />
Enter pass phrase for server.key.secure:<br />
writing RSA key<br />
[root@home test]# ls<br />
server.key  server.key.secure</p></blockquote>
<p><strong>Step 3: Generate the CA file. </strong>The Certificate Authority file identifies the body that signed the certificate. The certificate validity in this example is 365 days after which, you will have to generate a new CA and CRT files again.</p>
<blockquote><p> [root@home test]# openssl req -new -x509 -days 365 -key server.key -out server.ca<br />
You are about to be asked to enter information that will be incorporated<br />
into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN.<br />
There are quite a few fields but you can leave some blank<br />
For some fields there will be a default value,<br />
If you enter &#8216;.&#8217;, the field will be left blank.<br />
&#8212;&#8211;<br />
Country Name (2 letter code) [GB]: PH<br />
State or Province Name (full name) [Berkshire]:Manila<br />
Locality Name (eg, city) [Newbury]:Manila<br />
Organization Name (eg, company) [My Company Ltd]:ZXY Corp<br />
Organizational Unit Name (eg, section) []:IT<br />
Common Name (eg, your name or your server&#8217;s hostname) []:myhomies.com.ph<br />
Email Address []:admin@myhomies.com.ph<br />
[root@home test]# ls<br />
server.ca  server.key  server.key.secure</p></blockquote>
<p><strong>Step 4: Generate the CSR file.</strong> The Certificate Signing Request is the file that contains the information of the certificate file itself. Note that in the Common Name field, you will have the use the fully qualified domain name (FQDN) of the actual site where the certificate is going to be used. For example, if your secure site is <em>https://mywork.here.com</em>, put <strong>mywork.here.com </strong>in the Common Name field. If you don&#8217;t have FQDN, use the server&#8217;s ip address instead. If the site url and Common Name are different, users will see a pop-up box whenever they visit your site.</p>
<blockquote><p> [root@home test]# openssl req -new -key server.key -out server.csr<br />
You are about to be asked to enter information that will be incorporated<br />
into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN.<br />
There are quite a few fields but you can leave some blank<br />
For some fields there will be a default value,<br />
If you enter &#8216;.&#8217;, the field will be left blank.<br />
&#8212;&#8211;<br />
Country Name (2 letter code) [GB]: PH<br />
State or Province Name (full name) [Berkshire]:Manila<br />
Locality Name (eg, city) [Newbury]:Manila<br />
Organization Name (eg, company) [My Company Ltd]:ZXY Corp<br />
Organizational Unit Name (eg, section) []:IT<br />
Common Name (eg, your name or your server&#8217;s hostname) []:myhomies.com.ph<br />
Email Address []:admin@myhomies.com.ph</p>
<p>Please enter the following &#8216;extra&#8217; attributes<br />
to be sent with your certificate request<br />
A challenge password []:<br />
An optional company name []:<br />
[root@home test]# ls<br />
server.ca  server.csr  server.key  server.key.secure</p></blockquote>
<p><strong>Step 5: Generate the CRT file.</strong></p>
<blockquote><p> [root@home test]# openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt<br />
Signature ok<br />
subject=/C=PH/ST=Manila/L=Manila/O=ZXY Corp/OU=IT/CN=myhomies.com.ph/emailAddress=admin@myhomies.com.ph<br />
Getting Private key<br />
[root@home test]# ls<br />
server.ca  server.crt  server.csr  server.key  server.key.secure</p></blockquote>
<p>There you have it. You have the files that you need to create a secure http site with a self-signed certificate. All you have to do now is to install there certificates to your Apache server. Your server needs to have mod_ssl enabled to use the secure http port (443).</p>
<p><strong>Step 6: Install the certificates.</strong> Just copy the files to where you want your SSL certificate to be, like /etc/httpd/conf.d/ssl.crt. The setup your ssl.conf file to point the directives to the location of your SSL files.</p>
<p><img src='http://www.pinoytux.com/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.pinoytux.com/tips/tip-simple-ssl-certificate-scanner" title="Tip: Simple SSL Certificate Scanner">Tip: Simple SSL Certificate Scanner (2)</a></li>
<li><a href="http://www.pinoytux.com/lamp/tip-how-to-decode-csr" title="Tip: How to Decode CSR">Tip: How to Decode CSR (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/tip-no-space-left-on-device-error" title="Tip: No Space Left on Device Error">Tip: No Space Left on Device Error (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection (0)</a></li>
<li><a href="http://www.pinoytux.com/pinoytux/pinoytux-break" title="PinoyTux Break">PinoyTux Break (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/how-to-create-self-signed-certificate/feed</wfw:commentRss>
		</item>
		<item>
		<title>Basic Apache and PHP Install from Source Part 1</title>
		<link>http://www.pinoytux.com/linux/basic-apache-and-php-install-from-source-part-1</link>
		<comments>http://www.pinoytux.com/linux/basic-apache-and-php-install-from-source-part-1#comments</comments>
		<pubDate>Sat, 16 Feb 2008 17:05:28 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
		
		<category><![CDATA[How-To's]]></category>

		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[compile]]></category>

		<category><![CDATA[configure]]></category>

		<category><![CDATA[how-to]]></category>

		<category><![CDATA[install]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[source]]></category>

		<category><![CDATA[tarball]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/linux/basic-apache-and-php-install-from-source-part-1</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/basic-apache-and-php-install-from-source-part-1';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Basic Apache and PHP Install from Source Part 1';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
Ok, I may not be a guru when it comes to installing and configuring Apache and PHP but here is a sample of how I install Apache and PHP on Fedora or Red Hat boxes fresh from source. Pardon my newbie-sh technique but here it goes:
Installing Apache:
 # cd /usr/src
- Download the http package
# wget [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/basic-apache-and-php-install-from-source-part-1';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Basic Apache and PHP Install from Source Part 1';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
<p>Ok, I may not be a guru when it comes to installing and configuring Apache and PHP but here is a sample of how I install Apache and PHP on Fedora or Red Hat boxes fresh from source. Pardon my newbie-sh technique but here it goes:</p>
<p>Installing Apache:</p>
<blockquote><p><em> # cd /usr/src</em></p>
<p>- Download the http package</p>
<p><em># wget http://www.apache.org/dist/httpd/httpd-2.2.8.tar.gz</em> (change this to a mirror available to you)</p>
<p>- Extract the contents of the package</p>
<p><em># tar zxf  httpd-2.2.8.tar.gz</em></p>
<p><em># cd  httpd-2.2.8</em></p>
<p>- Configure the source depending on your requirements. At this point, configure may fail because of unsatisfied dependencies. Check what the error is and you can download the required package using yum or up2date.  If you do not need SSL module for secure page (https), you can leave out the  &#8211;enable-ssl part.</p>
<p><em>#  ./configure &#8211;prefix=/usr/local/apache &#8211;with-mpm=prefork  &#8211;enable-ssl &#8211;with-ssl=/usr/local/ssl &#8211;enable-log_config=static &#8211;enable-vhost_alias=static &#8211;enable-includes=static &#8211;enable-dir=static &#8211;enable-access=static &#8211;enable-mime=static &#8211;enable-mime_magic=static &#8211;enable-mods-shared=most &#8211;enable-cache=shared &#8211;enable-disk_cache=shared &#8211;enable-file_cache=shared &#8211;enable-mem_cache=shared</em></p>
<p>Tip: To check what these directives mean, you can issue ./configure &#8211;help .</p>
<p><em># make</em></p>
<p>- If everything goes well, your fresh http will be installed in /usr/local/apache with the following command:</p>
<p><em># make install</em></p></blockquote>
<p>Installing PHP:</p>
<blockquote><p><em># cd /usr/src</em></p>
<p><em>#  wget http://www.php.net/get/php-5.2.5.tar.gz/from/us.php.net/mirror </em>(change this to a mirror available to you)</p>
<p><em># tar zxf  php-5.2.5.tar.gz</em></p>
<p><em># cd  php-5.2.5</em></p>
<p>- Same with http. The configure part will depend on your requirement.</p>
<p><em>#  ./configure &#8211;with-config-file-path=/usr/local/apache/conf &#8211;with-apxs2=/usr/local/apache/bin/apxs &#8211;enable-calendar &#8211;enable-ftp &#8211;without-pgsql &#8211;with-zlib &#8211;with-openssl=/usr/local/ssl &#8211;with-mysql &#8211;with-mhash &#8211;with-mcrypt &#8211;with-curl &#8211;disable-cgi &#8211;enable-mbstring &#8211;enable-soap &#8211;with-bz2 &#8211;enable-sockets &#8211;enable-zip  </em>(If configure fails, read the error why the it failed and install first the dependencies then run again the configure.)</p>
<p><em># make</em></p>
<p><em># make test</em></p>
<p><em># make install</em></p>
<p>To start the httpd service, execute</p>
<p><em># /usr/local/apache/bin/apachectl start</em></p>
<p>You can create a symlink to your /etc/init.d so you can start apache by typing /etc/init.d/httpd start</p>
<p><em># ln -s /usr/local/apache/bin/apachectl /etc/init.d/httpd</em></p></blockquote>
<p>There you have it. You have successfully installed Apache with PHP on your webserver. I will continue this little howto with how to configure your webserver.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/tip-no-space-left-on-device-error" title="Tip: No Space Left on Device Error">Tip: No Space Left on Device Error (0)</a></li>
<li><a href="http://www.pinoytux.com/tips/tip-simple-ssl-certificate-scanner" title="Tip: Simple SSL Certificate Scanner">Tip: Simple SSL Certificate Scanner (2)</a></li>
<li><a href="http://www.pinoytux.com/linux/how-to-create-self-signed-certificate" title="How To Create Self Signed Certificate">How To Create Self Signed Certificate (2)</a></li>
<li><a href="http://www.pinoytux.com/others/why-should-we-take-trainings" title="Why Should We Take Trainings?">Why Should We Take Trainings? (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/basic-apache-and-php-install-from-source-part-1/feed</wfw:commentRss>
		</item>
		<item>
		<title>John Dvorak: The Sun-MySQL Deal Stinks</title>
		<link>http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks</link>
		<comments>http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks#comments</comments>
		<pubDate>Sun, 20 Jan 2008 22:01:14 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[News]]></category>

		<category><![CDATA[aqcuisition]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[dvorak]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'John Dvorak: The Sun-MySQL Deal Stinks';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
This commentary made by John Dvorak points out that the deal between Sun and MySQL favors Sun.
The move, announced earlier this week, is potentially a disaster for the entire sector for reasons I&#8217;ll outline here.
 Let&#8217;s begin by putting MySQL in perspective: It&#8217;s the most competitive and biggest threat to Oracle Corp., if for no [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'John Dvorak: The Sun-MySQL Deal Stinks';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
<p>This <a href="http://www.marketwatch.com/news/story/sun-mysql-deal-stinks/story.aspx?guid=88606B4A-A4AF-46FC-9C80-6B186A622456&amp;dist=SecMostEmailed" target="_blank">commentary </a>made by <a href="http://en.wikipedia.org/wiki/John_C._Dvorak" target="_blank">John Dvorak</a> points out that the <a href="http://www.pinoytux.com/linux/sun-microsystems-to-acquire-mysql-for-1billion" target="_blank">deal between Sun and MySQL</a> favors Sun.</p>
<blockquote><p>The move, announced earlier this week, is potentially a disaster for the entire sector for reasons I&#8217;ll outline here.</p>
<p class="p"> Let&#8217;s begin by putting MySQL in perspective: It&#8217;s the most competitive and biggest threat to Oracle Corp., if for no other reason than it&#8217;s cheaper, and in many applications, more practical.</p>
<p class="p">It&#8217;s used extensively by the open-source community and is the engine that runs almost all the blogging software &#8212; including the successful WordPress, which is used as the blogging-content back end for the New York Times, among other large commercial enterprises.</p>
<p class="p">Sun has an awful track record with its acquisitions. Here is a recent  <a href="http://www.sun.com/aboutsun/investor/sun_facts/merger_history.jsp" class="lk001" target="_blank">official list</a>.</p>
<p class="p">Sun&#8217;s crummy results go way back and include unique and useful products such as TOPS &#8212; a PC to Mac file-sharing OS, which was bought by Sun in 1987, then rotted from neglect.</p>
<p class="p">From another perspective, you have to wonder why MySQL was sold in the first place and who orchestrated this deal.</p>
<p class="p">If anyone actually knew that MySQL was up for grabs, I expect that Google, Yahoo and certainly Microsoft Corp. would have been interested, and there should have been a publicized bidding war resulting in a much higher price than $1 billion.</p>
<p class="p">I&#8217;m close to being convinced that Oracle wanted to buy MySQL to kill the product, but knew that it couldn&#8217;t pull off the stunt itself. It would be too obvious, especially to European Union regulators. So it sent in a stooge to do the job.</p>
<p class="p">The two companies, Sun and Oracle, have been strategic partners for years. On top of that, Sun cannot actually afford to spend a $1 billion on a company producing a mere $60 million in revenue and working outside its core competencies.</p>
<p class="p">So who can afford it? Oracle, that&#8217;s who. This deal stinks from top to bottom.</p>
</blockquote>
<p class="p">So there you have it. Somehow, Dvorak made some points but then again, maybe we are overanalyzing things.</p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.pinoytux.com/linux/sun-microsystems-to-acquire-mysql-for-1billion" title="Sun Microsystems To Acquire MySQL for $1B">Sun Microsystems To Acquire MySQL for $1B (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection (0)</a></li>
<li><a href="http://www.pinoytux.com/lamp/learning-php" title="Learning PHP ">Learning PHP  (0)</a></li>
<li><a href="http://www.pinoytux.com/pinoytux/pinoytux-break" title="PinoyTux Break">PinoyTux Break (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/pinoytux-reaches-30k-visitors" title="PinoyTux Reaches 30K Visitors!">PinoyTux Reaches 30K Visitors! (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks/feed</wfw:commentRss>
		</item>
		<item>
		<title>Learning PHP</title>
		<link>http://www.pinoytux.com/lamp/learning-php</link>
		<comments>http://www.pinoytux.com/lamp/learning-php#comments</comments>
		<pubDate>Sun, 24 Jun 2007 02:16:49 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[meralco]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://pinoytux.com/linux/lamp/learning-php</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/lamp/learning-php';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Learning PHP';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
Recently, I took a short PHP-MySQL course at Meralco Foundation and it was tough. Really. I have no professional experience with software development whatsoever and this course gave me a jumpstart. I was really glad I got through with the course and even managed to learn something from it (lolz). The course covered the basics [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"">
<div>
<script type="text/javascript">
digg_url = 'http://www.pinoytux.com/lamp/learning-php';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Learning PHP';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
</div>
<p>Recently, I took a short PHP-MySQL course at <a href="http://mfi.org.ph/" title="meralco foundation" target="_blank">Meralco Foundation</a> and it was tough. Really. I have no professional experience with software development whatsoever and this course gave me a jumpstart. I was really glad I got through with the course and even managed to learn something from it (lolz). The course covered the basics of PHP programming, setting up databases and creating useful programs. Too bad that we used Windows-Apache-MySQL-PHP combo, much to my disappointment. But nevertheless, it was the same banana. We were introduced to WAMP Server, an all-in-one package under Windows which provides Apache, PHP and MySQL in one installation. You can check out their website, http://www.wampserver.com, if you want to know more about WAMP.</p>
<p>I personally recommend WAMP to those who are heavy Windows user and want to learn PHP programming. Just install the program the traditonal Windows way (Click Next-Next-OK-Finish) and you are good to go. No fuss. On the other hand, I still recommend Linux-Apache-PHP-MySQL (LAMP) for advanced users. I do not have benchmark results for WAMP compared to LAMP on a live server but I believe that when it comes to performance, it all boils down to server configuration.</p>
<p>There are a lot of walkthroughs on the internet to guide you on setting up your own LAMP server. Like they always say, Google is your friend. I will also put up my personal guide in setting up a LAMP server to add up to those piles of guides on the net. As I am writing this, my imagination is running wild and I am beginning to see some newbie reading my post about LAMP (lolz).</p>
<p>Just for kicks, I put up my final exam here on my site so that you can see what a pathetic web developer I am. You can try out the exercises <a href="http://pinoytux.com/finals/" title="php sample" target="_blank">here</a>. You may not send your violent reactions <a href="mailto:kamotegirl@pinoytux.com">here.</a><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection (0)</a></li>
<li><a href="http://www.pinoytux.com/others/why-should-we-take-trainings" title="Why Should We Take Trainings?">Why Should We Take Trainings? (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/john-dvorak-the-sun-mysql-deal-stinks" title="John Dvorak: The Sun-MySQL Deal Stinks">John Dvorak: The Sun-MySQL Deal Stinks (0)</a></li>
<li><a href="http://www.pinoytux.com/linux/sun-microsystems-to-acquire-mysql-for-1billion" title="Sun Microsystems To Acquire MySQL for $1B">Sun Microsystems To Acquire MySQL for $1B (0)</a></li>
<li><a href="http://www.pinoytux.com/pinoytux/pinoytux-break" title="PinoyTux Break">PinoyTux Break (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/lamp/learning-php/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
