<?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>TechiesWeb &#187; Apache Configuration</title>
	<atom:link href="http://www.techiesweb.net/tag/apache-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techiesweb.net</link>
	<description>Programming tips &#38; tricks,What went wrong while coding,Code snippets,ASP,ASP.NET,PHP,MySQL,SQL Server,jQuery,AJAX</description>
	<lastBuildDate>Thu, 02 Sep 2010 16:22:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Starting with PHP-Apache</title>
		<link>http://www.techiesweb.net/2008/05/starting-with-php-apache/</link>
		<comments>http://www.techiesweb.net/2008/05/starting-with-php-apache/#comments</comments>
		<pubDate>Tue, 13 May 2008 09:23:14 +0000</pubDate>
		<dc:creator>Shyju</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Configuration]]></category>
		<category><![CDATA[Starting PHP]]></category>

		<guid isPermaLink="false">http://connectshyju.wordpress.com/?p=4</guid>
		<description><![CDATA[I am not a novice PHP programmer.rather i am also a beginner.here i am presenting some stuffs which i tried and worked.i would like to thank my friend ANILKUMAR who helped me to learn these stuffs i think it is better to start from the basics.So shall we start from the platform ? Yes ! [...]]]></description>
			<content:encoded><![CDATA[<p>I am not a novice PHP programmer.rather i am also a beginner.here i am presenting some stuffs which i tried and worked.i would like to thank my friend ANILKUMAR who helped me to learn these stuffs</p>
<p>i think it is better to start from the basics.So shall we start from the platform ? Yes ! we should.</p>
<p>for running a serverside program,we need a WebServer.we all may know the typical webserver,IIS (Intrenet Information Server) incorporated with windows operating systems.but right now i am skipping it as all of us know little bit of IIS configuration and related stuffs . No ? (anyway we shall disucss it later )</p>
<p>i am going to talk about Apache server,a powerful product from the <a class="aligncenter" title="Check Apache" href="http://www.apache.org/" target="_blank">Apache foundation.<br />
</a></p>
<p>You can download apache server verisions from there. i have Apache 2.2.6 Server version.Run the Setup.It is quite eazy to run the wizard.the only place i suspect u may get stucked is the pane where u have to enter the Network domain,servername,Administrators email address .You can give localhost/ur local IP in the first two fields and give admin@localhost in the third field(Assume we are going to work on the same machine(same server)).</p>
<p>Once u finish the Installation wizard,u can verify by going  to Start Menu- &gt;Programs-&gt;Apache HTTP Server 2.2.6</p>
<p>Now We will Install PHP Engine.You can go to www.php.net and get the appropriate verision.i am tried with PHP 5 .Once ou download it,No need to Install anything.more over,you cant find a typical install /SetUp.exe there in the folder.no need to worry. just copy the folder which contains the unziped files and paste it in any one of your disk drives(C/D/E/F). thats All !.</p>
<p>Now that we&#8217;ve got PHP and Apache working separately, we need to get get them to work together.<br />
from the Start menu option u can open the Configuration file (Start-&gt;Programs-&gt;Apache HTTP Server 2.2.6-&gt;Configure Apache server-&gt;Edit the apache httpd.config Configuration file) You can open it by any Editors like text pad/Notepad.</p>
<p>Now u can see the contents of the file .for a beginner ,it may be really difficult to understand what all these things .No need to bother about the contents.These are some configuration parameters which our apache server use for the execution.just go through the page.the page itself provides some general tutorials.You can find out  a couple of lines starting with #LoadModule or LoadModule.just go to the end of those block of code.the # prefixed lines are commented lines</p>
<p>just add the following line @ the bottom of that blockof  code<br />
<span style="color:#0000ff;"> LoadModule php5_module &#8220;E:/php/php5apache2_2.dll&#8221;</span><br />
You have to Change the Physical location to your folder</p>
<p>where u have the Extracted files.for me IT is the PHP Folder</p>
<p>in E drive.change the part before php5apache2_2.dll in the</p>
<p>path.(on the other habd u can make sure that this DLL exists</p>
<p>in that directory).</p>
<p>below that line add this line<br />
<span style="color:#0000ff;"> AddType application/x-httpd-php .php</span><br />
(This is to specify the Type of files)</p>
<p>Then below that line add this line<br />
<span style="color:#0000ff;"> PHPIniDir &#8220;E:/php&#8221;</span><br />
(Configuring the path to php.ini).You have to specify the</p>
<p>folder where u have those extracted php files and dlls.for</p>
<p>me it is E drive,PHP folder</p>
<p>thats all ! You have done it .Now You can save the file and</p>
<p>close it.Now we have to restrat the server to make these</p>
<p>chenges available.Go to the start menu-&gt;PRograms-&gt;Apachec</p>
<p>HTTP Server 2.2.6-&gt;Control Apache server-&gt;Restart</p>
<p>Thats all &#8230;&#8230;</p>
<p>write a small php program (copy this)</p>
<p><span style="color:#0000ff;">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form&gt;<br />
&lt;?php<br />
echo &#8220;I created my first PHP Program !&#8221;;</span><br />
<span style="color:#0000ff;"> ?&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></p>
<p>save this as testprogram.php and put it in this folder<br />
F:\Program Files\Apache Software Foundation\Apache2.2\htdocs</p>
<p>(for me It is F drive ,since i installed Apache on F Drive.for u it may be different)</p>
<p>then take a browser type</p>
<p>http://localhost/testprogram.php</p>
<p>press enter key.You can see your first php programs out put !</p>
<p>just try buddies .I will come up with some more stuff soon,(once i found those code&#8217;s are working)</p>
<p><span style="color:#ff0000;">Make Sure to Stop IIS in control panel-&gt;Administrative tools-&gt;services as you are running another web server(Apache)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techiesweb.net/2008/05/starting-with-php-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
