Install LAMP and phpMyAdmin on Ubuntu 11.10
Page 1 Page 2
You now have a functioning LAMP installation. You don't need to install phpMyAdmin, but it provides a much easier way to administer your MySQL databases if you're not familiar with MySQL's commands. You can install phpMyAdmin with:
Enter your password if prompted.
Again the package manger will show you the packages it's about to install. Hit <Enter> to move forward with the installation.
The package manager will now begin downloading and installing packages. After a short wait you will be prompted to choose the web server to configure for phpMyAdmin. Hit <Space> to mark apache2 with an asterisk (*) as it's shown in the following picture (click on the image to see it in full size). Then hit <Enter>.
The next screen will ask about some automatic database configuration with dbconfig-common. Hit <Enter> to accept the default and move on.
Next you'll be prompted for the MySQL administrator password. Enter the password that your created earlier.
Now you'll be prompted for a MySQL application password. You can allow the system to generate a random password or choose your own.
If you choose your own password, you will be prompted to verify it at the next screen.
Your phpMyAdmin installation and configuration is now complete.
Open your web browser and enter the address http://localhost/phpmyadmin/.
You should see a page like this.
Now log in with the user name root and the password that you created earlier in the tutorial.
Congratulations, you now have a working web development environment set up on Ubuntu 11.10. You can place the files for your website under /var/www. Note that this location is owned by the root user, so you'll need to copy your files over as root for it to work. Otherwise, you can do some further Apache configuration so you can place the files for your website in a directory somewhere under your home directory.
Fixing some common problems
There are a few problems that some people run into while installing LAMP on Ubuntu. If this is the case for you, please check out Fixing Common Problems with LAMP on Ubuntu.
Page 1 Page 2