<?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>Hello System Admin &#124; Where system admins share technical article and tips &#124; Create free Blog &#124; Updates on domains, web hosting, servers and more &#187; Apache</title>
	<atom:link href="http://hellosystemadmin.com/blog/category/linux/apache-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://hellosystemadmin.com</link>
	<description></description>
	<lastBuildDate>Wed, 06 Apr 2011 02:50:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>linux server status monitoring simple script</title>
		<link>http://hellosystemadmin.com/blog/linux-server-status-monitoring-simple-script/</link>
		<comments>http://hellosystemadmin.com/blog/linux-server-status-monitoring-simple-script/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 04:46:50 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=468</guid>
		<description><![CDATA[



Create the following scripts in a file and call the file in crontab at desired intervals 
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.  SERVER MONITORING REPORT &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221; &#62; /scripts/report.txt
echo &#8220;APACHE SERVER:-&#8221; &#62;&#62; /scripts/report.txt
/sbin/service httpd status &#62;&#62;  /scripts/report.txt
echo &#8220;MYSQL SERVER:-&#8221; &#62;&#62; /scripts/report.txt
/sbin/service mysqld status &#62;&#62;  /scripts/report.txt
echo &#8220;SSH/SFTP:-&#8221; &#62;&#62; /scripts/report.txt
/sbin/service sshd status &#62;&#62;  /scripts/report.txt
echo &#8220;SENDMAIL:-&#8221; &#62;&#62; /scripts/report.txt
/etc/init.d/sendmail status [...]]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code><br />
<strong>Create the following scripts in a file and call the file in crontab at desired intervals </strong></p>
<p>echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.  SERVER MONITORING REPORT &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221; &gt; /scripts/report.txt<br />
echo &#8220;APACHE SERVER:-&#8221; &gt;&gt; /scripts/report.txt<br />
/sbin/service httpd status &gt;&gt;  /scripts/report.txt<br />
echo &#8220;MYSQL SERVER:-&#8221; &gt;&gt; /scripts/report.txt<br />
/sbin/service mysqld status &gt;&gt;  /scripts/report.txt<br />
echo &#8220;SSH/SFTP:-&#8221; &gt;&gt; /scripts/report.txt<br />
/sbin/service sshd status &gt;&gt;  /scripts/report.txt<br />
echo &#8220;SENDMAIL:-&#8221; &gt;&gt; /scripts/report.txt<br />
/etc/init.d/sendmail status &gt;&gt; /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221;  &gt;&gt; /scripts/report.txt</p>
<p>echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.DISK SPACE &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221; &gt;&gt; /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221;  &gt;&gt; /scripts/report.txt<br />
df -h &gt;&gt; /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221; &gt;&gt;  /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221; &gt;&gt;  /scripts/report.txt<br />
echo &#8220;SYSTEM LOAD AVERAGE&#8221; &gt;&gt; /scripts/report.txt<br />
top -bn1 | grep -3 &#8220;load average&#8221;  &gt;&gt; /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221; &gt;&gt;  /scripts/report.txt<br />
#top -n1 &gt;&gt; /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221; &gt;&gt;  /scripts/report.txt<br />
echo &#8220;Report generated on    $(date)&#8221; &gt;&gt; /scripts/report.txt<br />
echo &#8220;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.  END OF  REPORT  &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221; &gt;&gt; /scripts/report.txt</p>
<p>mail -s &#8220;Server Stats on $(date)&#8221; aneesh@hellosystemadmin.com   &lt; /scripts/report.txt</p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Flinux-server-status-monitoring-simple-script%2F', 'linux+server+status+monitoring+simple+script')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Flinux-server-status-monitoring-simple-script%2F', title: '+linux+server+status+monitoring+simple+script+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/linux-server-status-monitoring-simple-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>install mod ssl on apache</title>
		<link>http://hellosystemadmin.com/blog/install-mod-ssl-on-apache/</link>
		<comments>http://hellosystemadmin.com/blog/install-mod-ssl-on-apache/#comments</comments>
		<pubDate>Wed, 19 May 2010 06:15:32 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SSL Certificate]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=443</guid>
		<description><![CDATA[





 
I am going to give you the steps to install mod_ssl on an Apache server by compiling the source.
Download the following packages
1. apache_1.3.14.tar.gz   http://www.apache.org
2. openssl-0.9.6.tar.gz http://www.openssl.org
3.  mod_ssl-2.7.1-1.3.14.tar.gz http://www.modssl.org
 
I have created a folder called  /downloads/src and downloaded all packages here

Go to Apache source files and  compile it as shown below
 # ./configure &#8211;enable-module=so [...]]]></description>
			<content:encoded><![CDATA[<address><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </address>
<address>I am going to give you the steps to install mod_ssl on an Apache server by compiling the source.</address>
<address>Download the following packages</address>
<address>1. apache_1.3.14.tar.gz   <a href="http://www.apache.org/">http://www.apache.org</a></address>
<address>2. openssl-0.9.6.tar.gz<a href="http://www.openssl.org/"> http://www.openssl.org</a></address>
<address>3.  mod_ssl-2.7.1-1.3.14.tar.gz<a href="http://www.modssl.org/"> http://www.modssl.org</a></address>
<address> </address>
<address>I have created a folder called  /downloads/src and downloaded all packages here<br />
</address>
<address>Go to Apache source files and  compile it as shown below</address>
<address> <span style="color: #993300"># </span><span style="color: #993300">./configure &#8211;enable-module=so &#8211;enable-module=ssl &#8211;enable-module=mod_rewrite</span></address>
<address> </address>
<address>Youc an add whatever module you needed</address>
<address>Now go to openssl folder and compile and install ( you can do this same by  using yum or apt-get command)</address>
<address>To compile and install OpenSSL do the following commands</address>
<address> </address>
<address><span style="color: #993300"># </span><em><span style="color: #993300">sh config -fPIC<br />
</span></em><span style="color: #993300"># </span><em><span style="color: #993300">make<br />
</span></em><span style="color: #993300"># </span><em><span style="color: #993300">make install</span></em></address>
<address> </address>
<address>At this time you can compile your PHP also. To do that run following commands</address>
<address><span style="color: #993300"># </span><span style="color: #993300">./configure &#8211;with-apache=../apache_1.3.41  &#8211;with-gd &#8211;with-zlib-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-freetype-dir &#8211;enable-gd-native-ttf &#8211;with-freetype-dir=/usr/lib/ &#8211;with-ttf &#8211;with-mysql=/usr/local/mysql &#8211;with-curl &#8211;disable-soap &#8211;with-openssl &#8211;with-xmlrpc &#8211;enable-ftp &#8211;with-xsl &#8211;with-mysqli=/usr/local/mysql/bin/mysql_config</span></address>
<address> </address>
<address><span style="color: #993300"># </span><span style="color: #993300">make</span></address>
<address><span style="color: #993300"># </span><span style="color: #993300">make install</span></address>
<address> </address>
<address><span style="color: #993300"><span style="color: #000000">Compile Apache and install</span></span></address>
<address><span style="color: #993300"><span style="color: #000000">Go to the apache Directory and runn following commands</span></span></address>
<address><span style="color: #993300">#  ./config.status<br />
#  make<br />
#  make certificate <span style="color: #000000"> ( This step will be asked  some inputs  from you for your self signed SSL certificate)</span><br />
# $ make install</span></address>
<address> </address>
<address><span style="color: #993300"><span style="color: #000000">Now you have installed the apache server with a self signed SSL certificate. Now it is the time to add the location of the .CRT file and .KEY file in your apache configuration file.  From the above steps you can see the location of these files. Copy those paths.</span></span></address>
<address> Now open your httpd.conf file and  add the following line </address>
<address><span style="color: #993300">Listen 443</span></address>
<address><span style="color: #000000">Now create a virtual directory which will listen the port 443</span></address>
<address> </address>
<address>&lt;VirtualHost XXX.XXX.XXX.XXX:443&gt;<br />
ServerName  www.example.com<br />
SSLEngine on<br />
SSLCertificateFile  /usr/local/apache/conf/ssl.crt/server.crt<br />
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key<br />
&lt;/VirtualHost&gt;</address>
<address> </address>
<address>Now save the file and restart your Apache server</address>
<address><span style="color: #993300"># apachectl stop</span></address>
<address><span style="color: #993300"># apachectl startssl</span><br />
</address>
<address> </address>
<address>Enjoy <img src='http://hellosystemadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </address>
<address><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></address>
<address> </address>
<address> </address>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstall-mod-ssl-on-apache%2F', 'install+mod+ssl+on+apache')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstall-mod-ssl-on-apache%2F', title: '+install+mod+ssl+on+apache+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/install-mod-ssl-on-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Job Vacancy Head System for Vectorshades</title>
		<link>http://hellosystemadmin.com/blog/job-vacancy-head-system-for-vectorshades/</link>
		<comments>http://hellosystemadmin.com/blog/job-vacancy-head-system-for-vectorshades/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 04:53:40 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Job]]></category>
		<category><![CDATA[System Admin]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=427</guid>
		<description><![CDATA[






Job Profile : Head &#8211; Systems. &#8212; Contact at 9895527145 for applying
Salary is negotiable and could be anywhere around 30k
EDUCATION
• MBA–IT  / • Post Graduate Diploma in System Development (PGDSD) ,
CAREER SKILLS
• MIS Solution Development / MIS Reporting skills
• Software Development (PHP/ASP/MYSQL/MSSQL) &#38;  Technical Support
• Systems Management
• Inventory control Systems
• Costing and negotiation skills
• Financial [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h4>Job Profile : Head &#8211; Systems. &#8212; Contact at 9895527145 for applying</h4>
<p><strong>Salary is negotiable and could be anywhere around 30k</strong></p>
<p>EDUCATION</p>
<p>• MBA–IT  / • Post Graduate Diploma in System Development (PGDSD) ,</p>
<p>CAREER SKILLS<br />
• MIS Solution Development / MIS Reporting skills<br />
• Software Development (PHP/ASP/MYSQL/MSSQL) &amp;  Technical Support<br />
• Systems Management<br />
• Inventory control Systems<br />
• Costing and negotiation skills<br />
• Financial / Accounting knowledge<br />
• Strong Programming / Networking / Management Concepts.<br />
• Proficient in Data base concepts and Data Warehousing.<br />
TECHNICAL SKILLS<br />
• Windows NT/2000/2003, Linux (Ubuntu)<br />
• MS SQL Server 7.0/2000/2005, MySQL, MS Access<br />
• ASP.NET # VB, ASP, PHP, VB 6, HTML, DHTML, Java script, MSSQL, MYSQL<br />
• MSOffice, Open Office, Outlook, FTP Applications, Adobe Photoshop, Dream viewer and Search engine optimization etc.<br />
• Strong networking concepts on LAN, WAN, VPN Setups.<br />
• Strong data warehousing and MIS skills.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fjob-vacancy-head-system-for-vectorshades%2F', 'Job+Vacancy+Head+System+for+Vectorshades')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fjob-vacancy-head-system-for-vectorshades%2F', title: '+Job+Vacancy+Head+System+for+Vectorshades+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/job-vacancy-head-system-for-vectorshades/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>configure perl in apache</title>
		<link>http://hellosystemadmin.com/blog/configure-perl-in-apacheache/</link>
		<comments>http://hellosystemadmin.com/blog/configure-perl-in-apacheache/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 12:14:08 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=422</guid>
		<description><![CDATA[In order to browse  perl files (.pl) through apache serer you need to  add few lines in apache configuration file ( httpd.conf)
Add the following in  httpd.conf
AddHandler cgi-script .cgi .pl
Now find the following section
&#60;Directory /&#62;
Options FollowSymLinks
AllowOverride None
&#60;/Directory&#62;
Add   +ExecCGI to the options list. So it  looks like as follows now
Now find the following section
&#60;Directory /&#62;
Options FollowSymLinks +ExecCGI
AllowOverride [...]]]></description>
			<content:encoded><![CDATA[<p>In order to browse  perl files (.pl) through apache serer you need to  add few lines in apache configuration file ( httpd.conf)</p>
<p>Add the following in  httpd.conf</p>
<p><strong>AddHandler cgi-script .cgi .pl</strong></p>
<p>Now find the following section</p>
<p><em>&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/Directory&gt;</em></p>
<p>Add   <code>+ExecCGI</code> to the options list. So it  looks like as follows now</p>
<p>Now find the following section</p>
<p>&lt;Directory /&gt;<br />
<strong>Options FollowSymLinks +ExecCGI</strong><br />
AllowOverride None<br />
&lt;/Directory&gt;</p>
<p>Now save httpd.conf and restart Apache server</p>
<p>Create a sample perl file called test.pl and add the following lines  and save it.</p>
<p>#!/usr/bin/perl<br />
print &#8220;content-type: text/html \n\n&#8221;;<br />
print &#8220;Hello, Perl!&#8221;;</p>
<p>Now browse the page</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fconfigure-perl-in-apacheache%2F', 'configure+perl+in+apache')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fconfigure-perl-in-apacheache%2F', title: '+configure+perl+in+apache+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/configure-perl-in-apacheache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find PID of a PHP script</title>
		<link>http://hellosystemadmin.com/blog/find-pid-of-a-php-script/</link>
		<comments>http://hellosystemadmin.com/blog/find-pid-of-a-php-script/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 06:08:06 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hellosystemadmin.com/?p=127</guid>
		<description><![CDATA[



I have been trying to find the PID of a php site which is hosted in my apache web server. I did not know that it was very easy until in found the built in php function getmypid(). To find the process ID (PID) of a PHP scriptÂ  use the following code in your php [...]]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p>I have been trying to find the PID of a php site which is hosted in my apache web server. I did not know that it was very easy until in found the built in php function getmypid(). To find the process ID (PID) of a PHP scriptÂ  use the following code in your php file</p>
<p><strong><em>echo getmypid ();</em></strong></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
 <script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Ffind-pid-of-a-php-script%2F', 'Find+PID+of+a+PHP+script')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Ffind-pid-of-a-php-script%2F', title: '+Find+PID+of+a+PHP+script+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/find-pid-of-a-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>change php.ini values using htaccess</title>
		<link>http://hellosystemadmin.com/blog/change-php-ini-values-using-htaccess/</link>
		<comments>http://hellosystemadmin.com/blog/change-php-ini-values-using-htaccess/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 05:12:48 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://dev3.ispg.in/aneesh/sysadmin/?p=83</guid>
		<description><![CDATA[




Using php_flag we can change php.ini values through an .htaccess file. For example if we need to change the php value of register_globals to Off we can do it using the following .htaccess   

 php_flag register_globals off





]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<dl>
<dt>Using php_flag we can change php.ini values through an .htaccess file. For example if we need to change the php value of register_globals to Off we can do it using the following .htaccess <span> </span> </dt>
</dl>
<p><em> php_flag register_globals off</em></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p><!--Session data--></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fchange-php-ini-values-using-htaccess%2F', 'change+php.ini+values+using+htaccess')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fchange-php-ini-values-using-htaccess%2F', title: '+change+php.ini+values+using+htaccess+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/change-php-ini-values-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Apache, Mysql, PHP in Linux Server</title>
		<link>http://hellosystemadmin.com/blog/instal_apache_mysql_php_linux_server/</link>
		<comments>http://hellosystemadmin.com/blog/instal_apache_mysql_php_linux_server/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 06:29:50 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://dev3.ispg.in/aneesh/sysadmin/?p=3</guid>
		<description><![CDATA[Installing Apache

[root@server ~]# wget http://opensource.become.com/apache/httpd/apache_1.3.41.tar.gz]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p>Installing Apache</p>
<p>[root@server ~]# wget http://opensource.become.com/apache/httpd/apache_1.3.41.tar.gz<br />
[root@server ~]# tar zxvf apache_1.3.41.tar.gz<br />
[root@server ~]# cd apache_1.3.41<br />
[root@server ~]#  ./configure &#8211;prefix=/usr/local/apache &#8211;enable-module=so<br />
[root@server ~]# make<br />
[root@server ~]# make install</p>
<p>Now we have installed apache <img src='http://hellosystemadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Let&#8217;s start the apache by the following command</p>
<p>[root@server ~]# /usr/local/apache/bin/apachectl start</p>
<p>Installing Mysql</p>
<p>[root@server ~]#  wget http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.40-linux-i686-glibc23.tar.gz<br />
[root@server ~]# tar zxvf mysql-5.1.40-linux-i686-glibc23.tar.gz<br />
[root@server ~]# mv mysql-5.1.40* mysql<br />
[root@server ~]# mv mysql /usr/local/ mysql<br />
[root@server ~]# cd mysql<br />
[root@server ~]# chown -R mysql .<br />
[root@server ~]‚  chgrp -R mysql .<br />
[root@server ~]# scripts/mysql_install_db &#8211;user=mysql<br />
[root@server ~]# chown -R root .<br />
[root@server ~]# chown -R mysql data</p>
<p><strong>Now we can start mysql by the following command</strong><strong> </strong><br />
[root@server ~]# bin/mysqld_safe &#8211;user=mysql &amp;<br />
Note: Now mysql has not password. To set root password run the following command<br />
[root@server ~]#  bin/mysqladmin -uroot -password &#8216;NEWPASSWORD&#8217;</p>
<p>To Stop mysql server , do the follwing command</p>
<p>[root@server ~]# bin/mysqladmin -uroot -p shutdown</p>
<p><strong>Installing PHP</strong><strong> </strong></p>
<p>[root@server ~]# wget http://in.php.net/distributions/php-5.3.0.tar.gz<br />
[root@server ~]# tar zxvf php-5.3.0.tar.gz<br />
[root@server ~]# cd php-5.3.0<br />
[root@server ~]# ./configure &#8211;with-apxs=/usr/local/apache/bin/apxs &#8211;with-gd &#8211;with-zlib-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-freetype-dir &#8211;enable-gd-native-ttf &#8211;with-freetype2-dir &#8211;with-ttf &#8211;with-mysql=/usr/local/mysql &#8211;with-mysqli=/usr/bin/mysql_config &#8211;with-curl &#8211;disable-soap &#8211;with-openssl &#8211;with-xmlrpc &#8211;enable-ftp &#8211;with-xsl</p>
<p>********if configure error do install the following pakages******</p>
<p>yum install flex<br />
yum install libxml2 libxml2-dev<br />
yum install &#8216;openssl*&#8217;<br />
yum install openssl<br />
yum install libopenssl*<br />
yum install openssl*<br />
yum install libjpeg*<br />
yum install libpng*<br />
yum install libfreetype*<br />
yum install libxslt-dev<br />
if Package libxslt-dev has no installation candidate then<br />
yum install libxslt1-dev</p>
<p>***************</p>
<p>[root@server ~]# make<br />
[root@server ~]# make install</p>
<p>Now we have installed php. We need to‚  load php in apache configuration file. To do it add the following line in /usr/local/apache/conf/httpd.conf</p>
<p><em>AddType application/x-httpd-php .php .php3 .wml .html</em></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstal_apache_mysql_php_linux_server%2F', 'Install+Apache%2C+Mysql%2C+PHP+in+Linux+Server')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstal_apache_mysql_php_linux_server%2F', title: '+Install+Apache%2C+Mysql%2C+PHP+in+Linux+Server+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/instal_apache_mysql_php_linux_server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

