Lamp Environment Configuration

Source: Internet
Author: User

I. Configuring a virtual domain name
 
1. In order to simulate DNS, set 2 in the local hosts file. Three items 3. Configure the virtual host in Apache to copy the default file three times in the Apache sites-available directory, and then modify the three places in the copied file: Go to the Sites-enable directory and copy the default file three times, and then use Ln-s to point the copied files to the corresponding files in sites-available 4. Restart Apache and then go to the browser to verify
II. MySQL Database storage directory Migration 1. Stop MySQL 2. View the user group, the owning user, and the operation permissions for MySQL, and then create a directory 3 that is the same user group as the owning user. Copy data 4. Modify the MySQL configuration file my.cnf 5. Need to modify AppArmor in Ubuntu 6. Restart AppArmor and Apache 7. Test whether the migration was successful, create a new database, and then see if the migrated directory has a new database file to prove 8. Delete files from the original file directory
III. Configuration Installation phpMyAdmin remote access to MySQL 1. Note the bind-address parameter in the MySQL configuration file my.cnf (this parameter is for the entire server) 2. Create a user in phpMyAdmin (here for a user) 3. Restart MySQL
Note: 1. can also be set via the command line

From for notes (Wiz)

Lamp Environment Configuration

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.