User Tools

Site Tools


how_to:v3_-_move_to_a_new_folder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
how_to:v3_-_move_to_a_new_folder [2010/05/04 15:38] – created paulhow_to:v3_-_move_to_a_new_folder [2018/12/05 15:25] (current) – [How to move VPOP3 V3 to a new folder] paul
Line 6: Line 6:
   - Stop PostgreSQL   - Stop PostgreSQL
   - Remove the PostgreSQL service   - Remove the PostgreSQL service
-  - Delete the PostgreSQL programs 
   - Move VPOP3 to the new folder   - Move VPOP3 to the new folder
 +  - Reassign permissions for PostgreSQL
 +  - Install the PostgreSQL service
 +  - Reset some paths in the registry
   - Reinstall VPOP3   - Reinstall VPOP3
 +
 +Note that we can do this for you remotely if you wish, there is a small charge for this (currently £50 + VAT). Contact us on 01484 855800 if you wish us to do it for you.
  
 =====Stop VPOP3===== =====Stop VPOP3=====
Line 19: Line 23:
 At a command prompt, navigate to your VPOP3 directory, then the **pgsql\bin** directory under that At a command prompt, navigate to your VPOP3 directory, then the **pgsql\bin** directory under that
  
-Run **pg_ctl unregister -N "pgsql-8.3"**+Run 
 +  pg_ctl unregister -N "pgsql-8.3"
  
 If this doesn't work, run If this doesn't work, run
- +  pg_ctl unregister -N "PostgreSQL-VPOP3"
-Run **pg_ctl unregister -N "PostgreSQL-VPOP3"**+
  
 =====Move VPOP3 to the new folder===== =====Move VPOP3 to the new folder=====
 Move the VPOP3 folder and ALL sub-folders to the new location Move the VPOP3 folder and ALL sub-folders to the new location
 +
 +=====Reassign permissions for PostgreSQL=====
 +You need to assign permission for the **postgres** user to the VPOP3\pgsql folder
 +
 +To do this, go to the VPOP3 folder in Windows Explorer. Right-click the **pgsql** folder and choose Properties, then Security. Add permission for the **postgres** user to have full permission to access this folder. (On an Active Directory Controller, the **postgres** user is a domain user, on all other types of PC, the **postgres** user is a local user).
 +
 +If you want to be slightly more secure, you can give the **postgres** user read-only permission to the **pgsql** folder, and full permissions to the **pgsql\data** folder.
  
 =====Install the PostgreSQL service===== =====Install the PostgreSQL service=====
 At a command prompt, navigate to your new VPOP3 directory, then the **pgsql\bin** directory under that At a command prompt, navigate to your new VPOP3 directory, then the **pgsql\bin** directory under that
  
-Run **g_ctl register -N "PostgreSQL-VPOP3" -D f:\vpop3\pgsql\data -U postgres -P vla8Pi4cluwrouDiERiU**+Run 
 +  pg_ctl register -N "PostgreSQL-VPOP3" -D "<VPOP3 folder>\pgsql\data-U postgres -P vla8Pi4cluwrouDiERiU
  
-=====Reinstall VPOP3===== +e.g. Run 
-Reinstall VPOP3 into the new location+  pg_ctl register -N "PostgreSQL-VPOP3" -D "D:\VPOP3\pgsql\data" -U postgres -P vla8Pi4cluwrouDiERiU
  
 +=====Reset some paths in the registry=====
 +Run RegEdit. 
  
 +You may need to change the following entries to the appropriate subdirectory in the new installation folder. (If you have previously changed them from the default, you may wish not to change them after moving VPOP3)
 +
 +  * **HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3** - **MessageStore** -> **<VPOP3 folder>\_messages**
 +  * **HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Archiving** - **MainStore** -> **<VPOP3 folder>\_archive**
 +  * **HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Attachments** - **AttachmentDirectory** -> **<VPOP3 folder>\_attach**
 +  * **HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Database** - **PostGreSQLBinDir** -> **<VPOP3 folder>\pgsql\bin**
 +  * **HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\FaxServer** - **ReceivePath** -> **<VPOP3 folder>\_fax\in**
 +  * **HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Database** - **SpoolPath** -> **<VPOP3 folder>\_fax\out**
 +
 +=====Reinstall VPOP3=====
 +Reinstall VPOP3 into the new location
  
 +If you have any plugins such as "avast! for VPOP3" or the VPOP3 FaxServer you should reinstall those as well
how_to/v3_-_move_to_a_new_folder.1272983896.txt.gz · Last modified: 2018/11/14 10:44 (external edit)