<?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>Ahmed Tawfik &#187; Command Lines</title>
	<atom:link href="http://www.ahmedtawfik.com/category/command-lines/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ahmedtawfik.com</link>
	<description>Life is a big school</description>
	<lastBuildDate>Wed, 14 Sep 2011 10:24:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Install Apache2, MySQL5, PHP5 and PHPMyAdmin on Ubuntu</title>
		<link>http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/</link>
		<comments>http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 15:13:17 +0000</pubDate>
		<dc:creator>Ahmed Tawfik</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Command Lines]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.ahmedphp.com/?p=613</guid>
		<description><![CDATA[This is a collection of guide how to install Apache Httpd Web Server complete with latest PHP (as Apache mod), MySQL for Ubuntu. As a bonus, I even through in an additional guide to install PHPMyAdmin. Please do note that most of this guide can be found elsewhere which is listed at the bottom of [...]]]></description>
			<content:encoded><![CDATA[<p>This is a collection of guide how to <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> Httpd Web Server complete with latest <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> (as <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> mod), MySQL for Ubuntu. As a bonus, I even through in an additional guide to <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">PHPMyAdmin</a>. Please do note that most of this guide can be found elsewhere which is listed at the bottom of the guide.</p>
<p><span id="more-438"> </span></p>
<h3>Getting Started</h3>
<p>I’m sure everyone here is familiar on how to use Terminal which is available from:</p>
<pre>Applications > Accessories > Terminal</pre>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> Httpd Web Server</h3>
<p>To <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a>, type the following command into your Terminal:</p>
<pre>> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> apache2</pre>
<h4>Testing <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a></h4>
<p>Paste the following command into your Terminal</p>
<pre>> sudo /etc/init.d/apache2 start</pre>
<p>Then open <code>http://localhost/</code> or <code>http://127.0.0.1</code> from your web browser. At first run, you would probably see a directory listing or a HTML page with a text saying “<strong>It’s Work</strong>“.</p>
<h1><em><strong><strong>It’s Work</strong></strong></em></h1>
<p><span id="more-613"></span><br />
To browse the file please navigate to the following folder</p>
<pre>> cd /var/www/</pre>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></h3>
<p>Similar to <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a>, all you need to do is type the following command in your Terminal:</p>
<pre lang="bash">> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> php5 libapache2-mod-php5</pre>
<p>After the installation is complete, do restart your <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> Http Web Server.</p>
<pre lang="bash">> sudo /etc/init.d/apache2 start</pre>
<p>This allow <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> to be include as <a href="http://www.ahmedtawfik.com/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apache">Apache</a> mod.</p>
<h4>Testing <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></h4>
<p>A simple way to test your <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> is via phpinfo() function which display all related configuration of your <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a>. To do so type the following command in your Terminal.</p>
<pre>> sudo gedit /var/www/phpinfo.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></pre>
<p>This will open gEdit text editor which you will type in</p>
<div>
<ol>
<li><span><span><?php phpinfo(); ?> </span></span></li>
</ol>
</div>
<pre style="display: none;"><?php phpinfo(); ?></pre>
<p>Open http://localhost/phpinfo.<a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a> in your web browser and you will get something like this: <img class="aligncenter" title="phpinfo" src="http://www.ahmedphp.com/images/phpinfo.png" alt="" width="660" height="298" /></p>
<p>You should see all of the info about your <a href="http://www.ahmedtawfik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> installation listed on the page.</p>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> MySQL</h3>
<p>Again, type the following command in your Terminal</p>
<pre>> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> mysql-server</pre>
<p>Note: As MySQL is installing, it will ask you to configure your root password. Make sure that you type it correctly, as it will only ask you once.</p>
<p>You might need to manually start MySQL  for the first time, do so by typing this command in your Terminal.</p>
<pre>> sudo /etc/init.d/mysql start</pre>
<h4>Testing MySQL</h4>
<p>After that is finished, you can test MySQL by running this, where 123 is your password</p>
<pre>> mysql -uroot -p123
mysql> show databases;
mysql> quit</pre>
<h3><a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">Install</a> <a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">PHPMyAdmin</a></h3>
<p>As usual, run the following command in terminal</p>
<pre>> sudo apt-get <a href="http://www.ahmedtawfik.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Install">install</a> <a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a></pre>
<p>This process is quite, as slow as MySQL installation and there are time you need to provide some information in order to complete the process but it quite optional. Once finish you need to create a soft link in <code>/var/www/</code> to <code>/usr/share/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a></code> using these command.</p>
<pre>> sudo ln -s /usr/share/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a> /var/www/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a></pre>
<p>Now open up <code>http://localhost/<a href="http://www.ahmedtawfik.com/tag/phpmyadmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with phpmyadmin">phpmyadmin</a> </code>your web browser.</p>
<p>Copyright  crynobone.com</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ahmedtawfik.com/new/ubuntu/install-apache-2-mysql-5-php-5-phpmyadmin-for-linux-ubuntu/" title="Install Apache 2 , MySQL 5, PHP 5, phpMyAdmin for Linux Ubuntu (November 2, 2009)">Install Apache 2 , MySQL 5, PHP 5, phpMyAdmin for Linux Ubuntu</a> (0)</li>
	<li><a href="http://www.ahmedtawfik.com/apache/how-you-can-fix-this-problem/" title="How you can fix this problem (September 22, 2009)">How you can fix this problem</a> (5)</li>
	<li><a href="http://www.ahmedtawfik.com/php/%d8%aa%d9%82%d8%a7%d8%b1%d9%8a%d8%b1-2007/" title="تقارير 2007 عن لغات البرمجه (January 5, 2008)">تقارير 2007 عن لغات البرمجه</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ahmedtawfik.com/php/install-apache2-mysql5-php5-and-phpmyadmin-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

