If you are new to Unixmen, you may want to subscribe : ![]()
![]()
![]()
![]()
|
24 November 2009
Posted in
Linux tutorials -
Linux tutorials
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.
There are many methods to install lamp for example the standart one see our previous howto for ubuntu :
Howto: Install Lamp and phpmyadmin on Ubuntu
So lets show you another way to install lamp under ubuntu 9.10 karmic Koala and Ubuntu 10.04 Lucid Lynx.First ,under Terminal type the command :
$sudo tasksel
you will get something like :

Now you have to shoose the LAMP line and SPACE key to select LAMP Server .
After, you will asked to insert root mysql password

After the procedure will start downloading and installing needed packages for LAMP

Of with this command :
sudo apt-get install php5 mysql-server apache2
Or with :
$ sudo tasksel install lamp-server
Now lets check of its working .
Check the apache2 from your browser :
Http:Ip or hostname
Now check if your Mysql is wokring with:

Chcek if php is working :
$sudo vi /var/www/info.php
and add
save and exitrestart apache2
#/etc/init.d/apache2 restart
and browse again http://ip/info.php

Enjoy and feel free to ask
If you have a Tip, tutorial, Idea or anything you want to share with unixmen readers, you can send it to : tips[a]unixmen.com or use our contact form Thanks.
Related Articles By Tags:
Related Articles By Tags:
-
2009-11-25 17:26:28 | Abe - Just use XAMPP

No need for any one this, just use XAMPP. It is the best LAMPP I have seen.
http://www.apachefriends.org/en/xampp.html
-
2010-03-03 02:06:51 | erik witkop - If lamp-server is missing from inside of tasksel

Run 'sudo apt-get update'
-

Hai.,
i installed LMAP server in my ubuntu 9.10 but Linux and ajax were working fine but i can't access my phpmyadmin page and mysql database pages. when i redirected to another pages in my site it will displays like that below.,
Not Found
The requested URL /abs/admin was not found on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80but i change the port no into 7900 from 80 then there is no effect in my system.
Anyine Could help me to rectify this issue.
Advance in Thannks
-
2010-03-17 10:16:19 | Pirat9

AL MUBARAK
Check the firewall security
Check the write access on the apache web directory . check if the directory is the same on apache.conf of httpd.conf
add the hostname and ip to /etc/hosts
restart apache
try again
-
2010-03-24 00:37:42 | Anthony Nandaa - tasksel

After going through a number of blogs, I had never come across such an easy way!!!
Thank sooo much!
-
2010-04-09 21:24:05 | birdy

This was most helpful! I've been using linux for a while and never came across tasksel command.
-
2010-05-09 20:52:22 | bomber - add what?

Part of the instructions are to add to a info.php file:
"Chcek if php is working :
$sudo vi /var/www/info.php
and add
save and exit
restart apache2"
The problem is you have nothing there to add. When I restart apache and go to localhost/info.php, the computer wants to know what to do with the file.
-
2010-05-09 16:20:28 | Zinovsky

I see i can not type that code in this page it disappear, i will investigate the problem later but you can copy the code from this page
http://kb.mediatemple.net/questions/764/ How+can+I+create+a+phpinfo.php+page%3F
-
2010-05-11 17:56:35 | Ron

I tried running $sudo $sudo tasksel. I used space to select LAMP and also used space to deselect the other packages that were auto selected. Was this a mistake? During the install it asked for a MySQL password and then started deleting what seemed to be necessary components of Ubuntu. The install didn't even complete and my screen went black. Now when I try to run Ubuntu it is only text based and my password no longer works. Luckily this was a fresh install so I didn't lose too much. Are you not supposed to uncheck anything? I figured I didn't need to install packages I already had installed.
-
2010-05-11 19:38:37 | Zinovsky

Perhaps you selected Edubuntu server or basic ubuntu server instead of LAMP, that`s why was deleting necessary things of Ubuntu .
Just follow as described in the screenshots and be sure that you select the right ONE (LAMP) before to press continue.
-
2010-05-15 03:13:17 | Anonymous - same thing here

Apparently if you de-select Ubuntu Desktop (or anything else that is already checked), it will uninstall that item.
-
2010-05-31 09:22:39 | Pirat9

Jose Oliveira
try with apt command and not with aptitude , and post your output here please
-
2010-06-07 16:30:20 | Troy - Same problem as Jose Oliveira

Hey Pirat9,
I had the same problem that Jose had and used the alternative input (Like you suggested):
sudo apt-get install php5 mysql-server apache2and it worked perfectly, thanks.


sudo apt-get install php5 mysql-server apache2