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