Ubuntu 14.04 Configuration lamp+phpmyadmin PHP Development environment

Source: Internet
Author: User
Tags apache php mcrypt php development environment phpinfo
Ubuntu 14.04 Configuration lamp+phpmyadmin PHP development environment!

Install the Apache Web server first, Terminal: sudo apt-get install apache2 apache2-doc, and then test if the installation is successful. Browser address bar Input: http://localhost, enter, the appearance of the display is the success!

Next install PHP5 and Apache PHP module, terminal: sudo apt-get install php5 libapache2-mod-php5. Restart Apache service to make PHP module effective, terminal: sudo service apache2 restart. To test if the PHP5 is installed successfully, first edit a test file, Terminal: sudo vim/var/www/html/phpinfo.php, enter the following:

[PHP] view plaincopy

    1. Phpinfo ();
    2. ?>

Save, and then enter in the browser address bar: http://localhost/phpinfo.php, the content indicates that the installation was successful!


Install MySQL database, terminal: sudo apt-get install Mysql-server mysql-client, the installation process will prompt to set the password, set one and remember!

Install MySQL interface management phpMyAdmin, Terminal: sudo apt-get install phpMyAdmin, the installation process will be prompted to select the Web server, check Apache, enter, will also prompt to set the password! phpMyAdmin after installation, not in the Apache default path, need to establish a connection, terminal: sudo ln-s/usr/share/phpmyadmin/var/www/html, restart Apache server, browser open:/http Localhost/phpmyadmin, the Sign-in page appears indicating the installation was successful!

Enter the password you just set, click ' Execute ' in the bottom right corner to log in!

Prompt after login, mcrypt Error! Terminal execution: sudo php5enmod mcrypt,

Then restart Apache, log in again phpMyAdmin normal!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

  • 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.