<?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>Encodez Blog &#187; Fedora Linux</title>
	<atom:link href="http://encodez.com/blog/category/os/fedora-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://encodez.com/blog</link>
	<description>Computer language design is just like a stroll in the park. Jurassic Park, that is. — Larry Wall</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:34:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to setup a local webserver (LAMP) in fedora 9</title>
		<link>http://encodez.com/blog/2008/09/how-to-setup-loca-webserver-in-fedora/</link>
		<comments>http://encodez.com/blog/2008/09/how-to-setup-loca-webserver-in-fedora/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 22:38:17 +0000</pubDate>
		<dc:creator>Muneer Shaheed</dc:creator>
				<category><![CDATA[Fedora Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://www.pc4safe.com/blog/?p=28</guid>
		<description><![CDATA[In this post I am going to write how I was setting up my local webserver in Fedora 9. The server was build up with Apache, MySQL and PHP. Generally known as LAMP. I am not going to write articles with hundred of lines for each command rather going to show the steps what I [...]]]></description>
			<content:encoded><![CDATA[<p>In this post I am going to write how I was setting up my local webserver in Fedora 9. The server was build up with Apache, MySQL and PHP. Generally known as LAMP.</p>
<p>I am not going to write articles with hundred of lines for each command rather going to show the steps what I did. I believe it will help to many like me.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6032126876218296";
google_ad_slot = "8998015769";
google_ad_width = 468;
google_ad_height = 60;
google_cpa_choice = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Important : <em>Before starting to use the command, change the user to root (eg: type <strong>su</strong> at the command-line and enter the password for the root account)</em></p>
<p>Step 1. <strong>Installig MySQL</strong></p>
<p>First install the MySQL. Use the <strong>yum</strong> command as follows.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mysql mysql-server</pre></div></div>

<p>If you want MySQL server with graphical user interface, use the following command instead</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mysql mysql-server mysql-administrator mysql-gui-common</pre></div></div>

<p>Then we need to add the service to auto start and start the MySQL service.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">chkconfig <span style="color: #660033;">--add</span> mysqld
chkconfig mysqld on
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start</pre></td></tr></table></div>

<p>Now need to setup password for root account</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysqladmin <span style="color: #660033;">-u</span> root password PASSWORD</pre></div></div>

<p>Replace the PASSWORD with your password.</p>
<p>Step 2.<strong> Installing Apache</strong></p>
<p>Type the following command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> httpd</pre></div></div>

<p>This will install the Apache webserver in the system. After installation, the service must be set to start automatically and start it.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">chkconfig httpd on
service httpd start</pre></td></tr></table></div>

<p>Step 3. <strong>Installing PHP</strong></p>
<p>Following command will install the PHP and the necessary component to work with MySQL database.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> php php-mysql</pre></div></div>

<p>Now we successfully setup the LAMP in local system. To ensure the installation, restart httpd</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service httpd restart</pre></div></div>

<p>and then create a PHP script under /var/www/html/index.php and enter this ( <em>&lt;?php phpinfo(); ?&gt;</em> ). Open up the web browser and type http://localhost/</p>
<p><strong>Additional Packages</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc</pre></div></div>

<p>Thats it, next post I will show how to setup the phpMyAdmin to manage mysql database.</p>
]]></content:encoded>
			<wfw:commentRss>http://encodez.com/blog/2008/09/how-to-setup-loca-webserver-in-fedora/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
