Zero-based--ubuntu quick install lamp (PHP) (ii)

Source: Internet
Author: User

1. sudo apt-get update

sudo apt-get upgrade

2. Lamp-server

* One-click installation: Tasksel install Lamp-server, suitable for installing Ubuntu non-server version locally.

A) sudo apt-get install apache2

----Test http://localhost/or *.*.*.* in the browser

b) sudo apt-get install php5 libapache2-mod-php5

----sudo vim/var/www/test.php, add test statements

<?php phpinfo ();?>

Save exit. Test http://localhost/test.php in the browser

c) sudo apt-get install mysql-server mysql-client

d) sudo apt-get install phpMyAdmin

The following questions are asked during installation:
Web server to reconfigure automatically: <--apache2
Whether to configure the Web server automatically, yes, select Apache2
Configure database for phpMyAdmin with Dbconfig-common? <--No
Create a database for phpMyAdmin, no

e) sudo ln-s/usr/share/phpmyadmin/var/www

f) PHP in collaboration with MySQL
----$sudo Vim/etc/php5/apache2/php.ini
Remove Line "; Extension=mysql.so ", and restart Apache.
Sudo/etc/init.d/apache2 restart

----Test Http://localhost/phpmyadmin in the browser

Zero-based--ubuntu quick install lamp (PHP) (ii)

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.