Step 7: Relocate saved data files
Place the files you saved from your version 10.1 server in their final location.
Web Configuration Data
To migrate the web configuration:
1Save the file /etc/httpd/servermgr_web_httpd_config.plist and the directory /etc/ httpd/sites_disabled/ and all its contents from the version 10.4 server.
2Replace the /etc/httpd/ directory and its files on the version 10.4 server with the /etc/ httpd/ directory and its contents that you saved on the former server. Also restore the saved /etc/webperfcache/webperfcache.conf.
3Copy the file /etc/httpd/servermgr_web_httpd_config.plist and the directory /etc/ httpd/sites_disabled/ and all its contents into the restored /etc/httpd/ directory.
4Open Server Admin and make sure that web service isn’t running.
5Open the Terminal application. As the root user, type the 49_webconfigmigrator command:
sudo /System/Library/ServerSetup/MigrationExtras/49_webconfigmigrator
A log of the changes made to the files is created in /Library/Logs/Migration/ webconfigmigrator.log. Original versions of changed files in /etc/httpd are renamed to httpd.conf.obsolete, httpd_macosxserver.conf.obsolete, and mime_macosxserver.types.obsolete. A new httpd.conf file is created.
6If you’ve modified /etc/httpd/workers.properties, reapply your changes to the version of the file that’s installed with server version 10.4. The version 10.4 workers.properties file has a new entry for Weblog service.
7In Server Admin, start web service.
Web Content
Copy saved web content to:
Â/Library/WebServer/Documents/
Â
MySQL Data
If you backed up your MySQL data using mysqldump, you can restore the data using:
mysql
or
mysql database <
Chapter 6 Migrating From Mac OS X Server Version 10.1
69