background image

 
Nvision.com, Inc. 

Migrating from a FreeBSD Server to a FreeBSD v2 Server 

Creating Users 

Your first task after the shadow process is to create your users by running the addaccounts.pl 
script. To do this: 

1.

 

SHH to your new FreeBSD v2 Server and in the command line, type: 

% cd /.migrate/bin 
%./addaccounts.pl accountname 

where “accountname” is your old FreeBSD Server account owner. 
This script creates all the user accounts that were on the old server and their home directories 
at /home/username on the new server, with FTP and mail access and no shell access. Users 
with FTP and mail access will be added to the ftp and mail groups respectively, and each user 
will have a group created for them. The quota for each user remains as it was. If you want to 
grant shell access to a user, run the pw command. An example follows: 

% pw usermod joe –s /bin/csh  

2.

 

To check the amount of disk space being used by a specific user on your server, type: 

% quota username 

where “username” is the name of your user 

Adding Virtual Hosts and Other Apache Changes 

After you have added the users, re-create the Virtual Hosts that you are hosting. In the past 
Virtual Hosts were generally stored in the vhosts directory for FreeBSD Server. For FreeBSD 
v2 Server we 

strongly

 suggest that you associate each Virtual Host with a user and put the 

Virtual Host site under that user’s home directory. For example, if you have a Virtual Host for 
test2.com and bob owns that site you would want to add the site to user bob’s home directory.  
You cannot simply copy over the httpd.conf file or the VirtualHost blocks of the httpd.conf 
file. The format for each is completely different between a FreeBSD Server and a FreeBSD 
v2 Server. You will need to run vaddhost again for each Virtual Host.  
An example follows of how to add a Virtual Host with the best settings. 

1.

 

Connect to your FreeBSD v2 Server using SSH and type vaddhost. 

2.

 

Proceed through the script, supplying the requested information. Press Enter to accept 
the [default values]. 
a.

 

The user who is to be associated with the virtual host (subhosted domain). (Example: 
bob) 

b.

 

Type y or press Enter if the information is correct. 

c.

 

Type the hostname (example: grizzles.com) and press Enter. 

d.

 

Type www. and the same domain name you just typed, and press Enter. (example: 
www.grizzles.com) 

e.

 

Press Enter once more to move to the next step. 

f.

 

Type y or press Enter if the hostname information is correct. 

g.

 

Type the e-mail address of the Web site administrator and press Enter. The default 
value is webmaster@domain.name. If accepted, the e-mail address of the Web site 
administrator becomes webmaster@grizzles.com. 

h.

 

Press Enter, then type the document root for this user. 
(example: /home/joe/www/grizzles.biz) 

Creating Users 

 

1

Summary of Contents for FreeBSD Server

Page 1: ...Nvision com Inc FreeBSD Server to FreeBSD v2 Server Self Migration Process for FreeBSD v2 Server Administrators First Edition September 2003...

Page 2: ...e Shadow Process 1 Creating Users 1 Adding Virtual Hosts and Other Apache Changes 1 Migrating Sendmail and Mail programs 3 Vinstalling Additional Add ons 5 Perl Modules 5 Migrating Databases 6 Moving...

Page 3: ...ybe even days depending on your knowledge of the FreeBSD Server and FreeBSD v2 Servers and the amount of changes you have made to a standard FreeBSD Server server Starting the Shadow Process The Shado...

Page 4: ...ciate each Virtual Host with a user and put the Virtual Host site under that user s home directory For example if you have a Virtual Host for test2 com and bob owns that site you would want to add the...

Page 5: ...sts htdocs directory and cgi bin directory 5 To copy the htdocs directory go to the migrate accountname www vhosts www test1 com htdocs Type the following to copy the contents cd migrate accountname w...

Page 6: ...d this run the migratesm script a second time using the following sysntax migratesm intodo This will interpret the input ALIASWS_TODO lines as follows Lines beginning with a pound sign are ignored Lin...

Page 7: ...e lists will be copied to the FreeBSD v2 Server default location of usr local majordomo lists 8 When you have finished check the following files for errors etc mail aliases etc mail virtmaps etc mail...

Page 8: ...eeBSD v2 Server now uses the default Perl method of installing modules To install a module using CPAN 1 Type the following at the shell prompt perl MCPAN e shell The first time you run CPAN you will b...

Page 9: ...ysqladmin u root password your new password here In addition if you have other users you will need to create the extra users at this point with their proper permissions 3 Create the databases from the...

Page 10: ...hose lines near the beginning run the following command to remove the encryption openssl rsa in ssl pk out ssl pk 4 Edit your httpd conf file located in the usr local apache conf directory to look for...

Page 11: ...servers have cached their DNS before you have support change your DNS back and your TTL it will take those DNS servers 24 hours to update you DNS information again To avoid all this you can have suppo...

Page 12: ...e to the root directory of the FreeBSD v2 Server Do this for each database that you have 12 SSH into your FreeBSD v2 Server and type the following to create the database structure and enter the data i...

Page 13: ...cate a reference to another part of the same document The grey portion of the cross reference is hot linked to the appropriate section of the document followed by a page number also hot linked to the...

Page 14: ...ues you might not discover by yourself The Tip List special element is used when multiple tips are used Note Used to highlight certain information for the reader Generally the Note element provides ad...

Reviews: