ispCP - Board - Support
Migrate from VHCS2 on Server 1 to ispCP on Server 2 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Migration (/forum-35.html)
+--- Thread: Migrate from VHCS2 on Server 1 to ispCP on Server 2 (/thread-2506.html)

Pages: 1 2 3 4


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - DaSilva - 02-29-2008 03:36 AM

Luckily I had an image from the whole system just a few steps ago.
With the second try all customers are built correctly (have copied the "group" file before the update script).
Now I have a question to the webs:

In /var/www/virtual all customers only have a directory called "phptmp" in their domain. If I create a directory called "htdocs" and put a simple index.html in there I cannot open it because of error 404. Now what must I do to activate the normal web directories?
Thanks.


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - joximu - 02-29-2008 09:12 AM

normally they should have more than phptmp...
did you copy the old virtual before updating?

at least: it's important that all folders and files within the domain folders belong to the right user:group (vu2001:vu2001, vu2002:vu2002 a.s.o).


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - DaSilva - 03-01-2008 03:27 AM

I gave the domain.tld, the (manually created) htdocs and the (sample) index.html all the right user via chown but I still get error 404.
What could be wrong and how can I fix it?

EDIT: Because server 2 has another IP than server I followed the steps in this tutorial and that solved the problem!


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - DaSilva - 03-01-2008 06:23 AM

I have a problem with the mysql users. If I look in an account on the old server with VHCS2 then there are three different databases with different users (for example). But where the username should be is a button with "Add user" as caption (strangely all webs with mysql databases work). I think that is the reason why I have not all mysql user on the new system. So what should I do now? I have to export and import all users to the new server but I don't know how.
Thanks.


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - joximu - 03-01-2008 08:11 AM

You also should transfer the database mysql to the new server - maybe better before the installation of ispcp...
mysqldump + mysql - read the manual.

We cannot give you private lessons in server managing. You have a running vhcs2 and wanted to do the migrations to ispcp together with a transfer to a new server - but you have few knowlegde about the basics of the different services and tools to handle them.

/J


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - DaSilva - 03-01-2008 08:30 AM

I have just solved all problems now.
Thank you very much!


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - joximu - 03-01-2008 08:42 AM

ok - this is cool.

Hope you enjoy the new version.

/Joxi


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - DaSilva - 03-01-2008 10:36 PM

Now I have a new problem.
This is very strange.
If I create a test file in /htdocs I can open it without a problem.
After that test I have used Unison to synchronize the whole domaintest.tld from server 1 to server 2.
The synchronisation works like a charm but if I try to open the page on the new server I always get a 403 error even if all files have the right owner.
How could this happen and how can I solve this problem?
Thanks.


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - joximu - 03-01-2008 10:41 PM

There's a reason for the 403 so watch the logs


RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2 - DaSilva - 03-01-2008 10:59 PM

I can only find this error:

[Sat Mar 01 13:56:52 2008] [crit] [client 192.168.0.20] (13)Permission denied: /var/www/virtual/domain.tld/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

I have created a .htaccess there with 777 but the error remains constant.
Could this be the problem?