Computersnyou

how to install LAMP stack ( Linux,Apache,Mysql and php ) in Ubuntu 12.04

Posted on  5/9/2012


Installing LAMP ( Linux,Apache,Mysql,PHP)

you are in ubuntu,  so linux is already you installed 
installing remaining 
Apache, MySQL,and PHP in Ubuntu 
 
install tasksel : tasksel is really small and awesome utility to installing server components 

<ul style="text-align: left;">
  <li>
    <i><span style="font-family: Georgia, 'Times New Roman', serif;">sudo apt-get install -y tasksel </span></i>
  </li>
</ul>

<div>
  <span style="font-family: Georgia, 'Times New Roman', serif;">open tasksel by opening terminal and typing tasksel</span>
</div>
  • sudo -i
  • [ your password ]
  • tasksel 
<div>
  <div class="separator" style="clear: both; text-align: center;">
    <a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-e6fKn9jsr5M/T6lJ4TKRx2I/AAAAAAAACyE/LalwpBP-RSg/s1600/tasksel_ui.png"><span style="font-family: Georgia, 'Times New Roman', serif;"><img alt="" src="http://4.bp.blogspot.com/-e6fKn9jsr5M/T6lJ4TKRx2I/AAAAAAAACyE/LalwpBP-RSg/s640/tasksel_ui.png" width="640" height="430" border="0" /></span></a>
  </div>
  
  <ul style="text-align: left;">
    <li>
      <span style="font-family: Georgia, 'Times New Roman', serif;">choose LAMP press tab to <i>navigate</i>  </span>
    </li>
    <li>
      <span style="font-family: Georgia, 'Times New Roman', serif;">and click OK </span>
    </li>
    <li>
      <span style="font-family: Georgia, 'Times New Roman', serif;">and wait untill it finish downloading </span>
    </li>
  </ul>
  
  <div class="separator" style="clear: both; text-align: center;">
    <a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-LABL7I7zSKg/T6plu7ASIhI/AAAAAAAACyg/5ArTBkQVUjA/s1600/tasksel_1.png"><span style="font-family: Georgia, 'Times New Roman', serif;"><img alt="" src="http://3.bp.blogspot.com/-LABL7I7zSKg/T6plu7ASIhI/AAAAAAAACyg/5ArTBkQVUjA/s640/tasksel_1.png" width="640" height="432" border="0" /></span></a>
  </div>
  
  <div>
    <span style="font-family: Georgia, 'Times New Roman', serif;"> </span>
  </div>
  
  <div>
    <a style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" href="http://2.bp.blogspot.com/-ObzJLZYcon4/T6pl8Z_cR-I/AAAAAAAACyo/PwFS5cLh-CI/s1600/tasksel.png.png"><span style="font-family: Georgia, 'Times New Roman', serif;"><br /> </span></a></p> 
    
    <ul style="text-align: left;">
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">it will ask you for enter new mysql password </span>
      </li>
    </ul>
    
    <table class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td style="text-align: center;">
          <a style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;" href="http://2.bp.blogspot.com/-ObzJLZYcon4/T6pl8Z_cR-I/AAAAAAAACyo/PwFS5cLh-CI/s1600/tasksel.png.png"><span style="font-family: Georgia, 'Times New Roman', serif;"><img alt="" src="http://2.bp.blogspot.com/-ObzJLZYcon4/T6pl8Z_cR-I/AAAAAAAACyo/PwFS5cLh-CI/s640/tasksel.png.png" width="640" height="412" border="0" /></span></a>
        </td>
      </tr>
      
      <tr>
        <td class="tr-caption" style="text-align: center;">
          <span style="font-family: Georgia, 'Times New Roman', serif;">Enter MySql new root  Password </span>
        </td>
      </tr>
    </table>
    
    <ul style="text-align: left;">
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">after everything done</span>
      </li>
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">enjoy lamp stack </span>
      </li>
    </ul>
    
    <div>
      <span style="font-family: Georgia, 'Times New Roman', serif;">start apache by typing</span>
    </div>
  </div>
  
  <div>
    <ul style="text-align: left;">
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">/etc/init.d/apache start </span>
      </li>
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">and open browser and navigate to : http://localhost</span>
      </li>
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">if you want to test php then open a text editor and type </span>
      </li>
      <li>
      </li>
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">save it as info.php in your local www directory ( /var/www/)</span>
      </li>
      <li>
        <span style="font-family: Georgia, 'Times New Roman', serif;">and open http://localhost/info.php    </span>
      </li>
    </ul>
    
    <div class="separator" style="clear: both; text-align: center;">
      <a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/-EliP2gr7nGo/T6pmitHQMKI/AAAAAAAACyw/3nKyEyvv3Uk/s1600/Screenshot+from+2012-05-09+17:15:45.png"><span style="font-family: Georgia, 'Times New Roman', serif;"><img alt="" src="http://1.bp.blogspot.com/-EliP2gr7nGo/T6pmitHQMKI/AAAAAAAACyw/3nKyEyvv3Uk/s640/Screenshot+from+2012-05-09+17:15:45.png" width="640" height="360" border="0" /></span></a>
    </div>
    
    <div>
      <span style="font-family: Georgia, 'Times New Roman', serif;"><br /> <span style="color: #cc0000;">NOTE :  all configuration is for local development environment don&#8217;t apply on a production environment </span></span>
    </div>
  </div>
  
  <div>
    <span style="font-family: Georgia, 'Times New Roman', serif;"><span style="color: #cc0000;"> </span></span>
  </div>
  
  <div>
    <span style="font-family: Georgia, 'Times New Roman', serif;"><b><i> </i></b></span>
  </div>
  
  <div>
    <span style="font-family: Georgia, 'Times New Roman', serif;"><b><i>Enjoy LAMP stack </i></b></span>
  </div>
</div>

  • Home
  • Home
  • Home
About
lorem lasda asda adasd adsad lorem lasda asda adasd adsad lorem lasda asda adasd adsad lorem lasda asda adasd adsad lorem lasda asda adasd adsad lorem lasda asda adasd adsad