beautypg.com

Apple Mac OS X Server (Upgrading and Migrating For Version 10.4 or Later) User Manual

Page 69

background image

Chapter 6

Migrating From Mac OS X Server Version 10.1

69

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:

1

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

2

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

3

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

4

Open Server Admin and make sure that web service isn’t running.

5

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

6

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

7

In Server Admin, start web service.

Web Content

Copy saved web content to:

 /Library/WebServer/Documents/
 /Library/WebServer/CGI-Executables/

MySQL Data

If you backed up your MySQL data using

mysqldump

, you can restore the data using:

mysql -p table < backup-file.sql

or

mysql database < backup-file.sql