Ubuntu10.10 install and configure LAMP

Source: Internet
Author: User
InstallingApacheMySQL, timeout, (myownexperience). Step1: Youstartbyinstal 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 apache By doing this

sudo /etc/init.d/apache2 restart

Create a test php file called Info. 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

    

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.