UbuntuLAMP detailed configuration instructions (suitable for newcomers)

Source: Internet
Author: User
Tags fully qualified domain name
UbuntuLAMP detailed configuration instructions (suitable for newcomers)-Linux Enterprise Application-Linux server application information, the following is a detailed description. [I = s] This post was last edited by synw at, January 14 ,.

Statement: I am also a newbie. The following configuration is suitable for my first friend who configures the LAMP environment. I hope it will help you. My UBUNTU passes smoothly, but it does not guarantee that others will pass, however, I recommend that you use this configuration, which is very good!

The following red bold fonts are entered at the Terminal (Terminal) in Ubuntu Linux. Please pay attention to them ~~~

Because the original article is in English, my English level is also a second knife, and the translation capability is limited, but the approximate meaning should not be too large, hey, the article retains the original article


Step 1: You start by installing mysql (Step 1: start mysql installation)

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.

Specify the password prompt for the new MySQL "root" user. Repeat the password and you must install the MySQL server and client.


Step 2: Next, install Apache2: (Step 2: install Apache2)

Sudo apt-get install apache2

And you get apache2 installed as well. To double check, point your browser tohttp: // localhost, and you shoshould see the Apache2 placeholder page like this.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">


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 need torestart apache by doing this

Sudo/etc/init. d/apache2 restart

---------------------------------------------------------------------
If the prompt "cocould not reliably determine the server's fully qualified domain name" appears during the restart process
Enter
Sudo gedit/etc/apache2/apache2.conf

Add the following line at the bottom of the file:
ServerName LocalHost
Then restart apache2.
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 pagehttp: // localhost/info. phpand you shoshould see something like this



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // hiphotos.baidu.com/sinogreen_cn/pic/item/a0375b5171eddd4d43a75be3.jpg'); ">


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

(Note: This is a complete command, all input on the terminal, and then execute)

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)



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // hiphotos.baidu.com/sinogreen_cn/pic/item/ed6fea2ea25449394ec226f1.jpg'); ">

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.

(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // hiphotos.baidu.com/sinogreen_cn/pic/item/2dbdb68d374aea7bb21bba03.jpg'); ">

It wocould be automatically configured, however it wocould ask if you want a database installed and configured, choose yes and press enter



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">

On the next screen you wowould be asked to enter the MySQL root password, that you provide in first step



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // hiphotos.baidu.com/sinogreen_cn/pic/item/d8859eb527e0c6a737d3ca50.jpg'); ">

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.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // hiphotos.baidu.com/sinogreen_cn/pic/item/56aec4e92a34f256b90e2d3a.jpg'); ">

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 tohttp: // localhost/phpmyadmin/
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.