1. Download
You must be registered to see links
2. Extract the CPW on your Desktop
3. open your phpmyadmin. create new database named cpw
4. import install.sql on database cpw
3. Go in your Server via WinSCP
4. Copy the CPW to var/www
5. Login in your server (via Putty) and navigate it to your www folder (cd /var/www)
6. type ./cpw install
and input your mysql server (eg, localhost), mysql login (eg, pwu), mysql password (eg, superpuperpassword), Input mysql database name (eg, pwu).
7. back to your WinSCP and open folder CPW/files/CPW/info and open file pid change value 131 to 101.
8. move to your client, copy Launcher.exe and patcher.exe to folder CPW.
9. run ./cpw x Launcher.exe patcher.exe (java will automatically edit and change RSA key inside Launcher and patcher.)
10. next, run ./cpw initial (this command to create a empty version 1 patch)
server side is done
now client side
11. open folder patcher/server/ and edit file updateserver.txt to your server
(eg, "World" "http:/YOURSERVER.com/CPW/files/CPW/")
-at config/element/version.sw edit it and change all values to 1 0 (only that 1 and 0)
-at config/patcher/version.sw edit it and put 1 (only 1)
12. that is all, now your client is version 1, and realy to make patches
13. to make new patch simply put files you want update inside CPW/files/new
(server side) and then type ./cpw new (this command create next version patch)
14. you can also edit skin your launcher and link from folder patcher/skin/image for laucher skin and patcher/skin/mainuni.xml for edit link inside your launcher.
finally
source : many thanks
Caosfox for tutorial on perfect world forum