Build a web server in ubuntu (apache2 + php5 + mysql5 + phpmyadmin)

Source: Internet
Author: User

Build a web server in ubuntu (apache2 + php5 + mysql5 + phpmyadmin)
1. Install mysql services and clients. Enter the mysql root Password as prompted.

$ Sudo apt-get install mysql-server mysql-client
2. Install the apache2 server

$ Sudo apt-get install apache2
3 install php5

$ Sudo apt-get install php5 libapache2-mod-php5
4. install other related modules

$ Sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp
5. Install phpmyadmin to manage the database. After the installation and configuration are complete, log on to the management database at 127.0.0.1/phpmyadmin in the address bar of the browser.

$ Sudo apt-get install phpmyadmin
6. Copy phpmyadmin to the default directory.
$ Sudo cp-r phpmyadmin/var/www/html/
7. Restart apache
$ Sudo/etc/init. d/apache2 restart
8 enter 127.0.0.1/phpmyadmin in the browser address column to test

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.