Build a LAMP (Apache + PHP + MYSQL) development environment under Mint15 (or Ubuntu)

Source: Internet
Author: User
Building a LAMP (Apache + PHP + MYSQL) development environment in Mint15 (or Ubuntu) is the simplest and most efficient and stable way to use apt-get in a desktop linux environment. Run the following commands respectively: (1) install MYSQLsudoapt-getinstallmysql-serversudoapt-get Mint15 (or Ubuntu) to build LAMP (Apache + PHP + MYSQL) using apt-get in the development environment is the simplest and most efficient and stable in the desktop linux environment. Run the following commands respectively: (1) install MYSQL sudo apt-get install mysql-server sudo apt-get install mysql-client (2) install Apache sudo apt-get install apache2 (3) install PHP sudo apt-get install php5 sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install after the php5-mysql is installed, check for success: (1) check if Mysql is normal input in the terminal: mysql-uusername-ppassword (replace username and password with the one you set) to check whether logs can be logged on normally (2) Check whether Apache is opened normally in the browser: http: // localhost/if the following information appears, it indicates Normal. It works! This is the default web page for this server. the web server software is running but no content has been added, yet. (3) Check If PHP is normal. the default installation path of Apache in Ubuntu is/var/www/, and create info in the directory. php file with the following content: Then open http: // localhost/info. php in the browser to check whether it is normal. Note: You do not have permission to directly create a file in this directory. add the current user permission to the File: su root (root user) chown username/var/www (replace username with your current user name) exit (exit root)
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.