onsdag 1 augusti 2012

Install lamp with 1 command in Ubuntu 12.04 LTS Precise Pangolin & LinuxMint13

Written by pirat9 on October 11, 2010. Posted in Linux Mint, Linux tutorials, Ubuntu
Updated: 23/05/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open
source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
We did show you in our previous post how to install LAMP in Ubuntu 10.04 with one command using tasksel command. It is a software installation application that is an integral part of the Debian installer and works under Ubuntu Linux too. It groups some packages by tasks and offers the user an easy way to install the packages for that task. It provides the same functionality as using conventional meta-packages. in Maverick this command dosn`t come by default, so we need to install it first before to perform the LAMP installation.

This tutorial was has been tested on Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04 LTS Precise Pangolin. Also tested in LinuxMint13 and works fine.
Open terminal and Type the command :install it   first  with
sudo apt-get install tasksel
Now to install LAMP, type the taskel command in terminal :
sudo  tasksel
And select LAMP Server:

During the installation  you  will be  asked  to insert the  mysql root  password

Now check if php is working :

$sudo vi /var/www/info.php
and add
<?php
phpinfo();
?>
save and exit
restart apache2 ,
#sudo /etc/init.d/apache2 restart
Now open browser and type :
http://ip/info.php or http://localhost/info.php

Php is installed.
To full manage  your  lamp Server database, install  phpmyadmin
sudo  apt-get  install  phpmyadmin
To login  to phpmyadmin, open browser and type :
http://ip/phpmyadmin   or http://localhost/phpmyadmin


{module user9-footer|none}
For questions please refer to our Q/A forum at : http://ask.unixmen.com
Related posts:
  1. Install Lamp with 1 command in ubuntu
  2. How to install LAMP with 1 command in LinuxMint
  3. Howto: Install Lamp and phpmyadmin on Ubuntu
  4. How to install LAMP and PhpMyadmin on LinuxMint 7 Gloria
  5. How to install Lamp and Phpmyadmin in Fedora 13

Add New Comment

  • Image

Showing 5 of 145 comments

Skicka en kommentar