Enter
Sudo tasksel
Then a software package interface will appear, move the cursor to the lamp server, press the space, and then select this item. Other items can be deselected, and click OK.
Next, you will be asked to enter the password of the root user of MySQL. Remember to install PHP later.Program. Then install lamp,
Enter http: // 127.0.0.1 in the browser and test apache2.
If error 100 is returned
Yes, it's okay to turn on the new software manager and restart the installation.
##################### A simple method for installing lamp in Ubuntu 10.10:
$ Sudo apt-Get install tasksel
$ Sudo tasksel
# And select lamp Server:
$ Sudo VI/var/www/info. php // Add the following three linesCode
<
Phpinfo ();
?>
$ Sudo/etc/init. d/apache2 restart
The following are the traditional installation methods:
Installing Apache MySQL, PHP and phpMyAdmin on ubuntu10.10 maverick meerkat is far easier and less complicated than doing the same on fedora 13, (my own experience ).
Step 1:You start by installing MySQL
Sudo apt-Get install mysql-client mysql-Server
Specify new password for the MySQL "root" user when prompted. Repeat it for a second time and you wowould have MySQL server and client installed.
Step 2:Next, install apache2:
Sudo apt-Get install apache2
And you get apache2 installed as well. To double check, point your browser to http: // localhost, And You shoshould see The apache2 placeholder page like this.
Step 3:To install support for PHP, do the usual
Sudo apt-Get install PhP5 libapache2-mod-php5
To verify that everything installed correctly and PHP support is enabled, you needRestart ApacheBy doing this
Sudo/etc/init. d/apache2 restart
Create a test PHP file calledInfo. php, Using a text editor of your choice (say gedit)
Sudo gedit/var/www/info. php
And paste the following content and save the file
<? PHP phpinfo ();?>
Now open the following page http: // localhost/info. php and you shoshould see something like this
Step 4:To make MySQL, PHP and Apache talk among themselves, you wocould have to install php5-mysql, below I am listing some more useful packages that you might want to install
Sudo apt-Get install php5-mysql php5-curl php5-gd php5-idn php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp
Now refresh the info. PHP page that you have open in your browser and you shoshould be able to see the support for mysql if you search for it by doing Ctrl + F, but before that don't forget to restart Apache again (SUDO/etc/init. d/apache2 restart)
Step 5:Finally install phpMyAdmin
Sudo apt-Get install phpMyAdmin
It wocould ask if you want to configure it automatically for Apache or lightppd choose Apache (by pressing "spacebar" to display a star as shown below and then use tab to navigate to OK and press ENTER.
It wocould be automatically configured, however it wocould ask if you want a database installed and configured, chooseYesAnd press ENTER
On the next screen you wowould be asked to enter the MySQL Root Password, that you provide in first step
Next it wocould ask you to enter a password to be used by phpMyAdmin to register with thedatabase (basically it wocould create a user called "phpMyAdmin" the password is for that, most likely you won't be needing this password ever. you can even choose to assign a random password for it.
Confirm that password on the next screen. Once you have made your choices the installation wocould finish and you shocould be able to access phpMyAdmin by pointing your web browser to http: // localhost/PHPmyAdmin/
You might need to restart Apache again, for the above link to start working! (I didn't have to restart Apache, though .)
Super easy installation...
Reposted from: www.hackourlife.com/install-apache-mysql-php-phpmyadmin-lamp-on-ubuntu-10-10/