Current time: 10-21-2019, 01:04 PM Hello There, Guest! (LoginRegister)


Post Reply 
Migrate from VHCS2 on Server 1 to ispCP on Server 2
Author Message
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #21
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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.
02-29-2008 03:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,034
Joined: Jan 2007
Reputation: 92
Post: #22
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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).
02-29-2008 09:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #23
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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!
(This post was last modified: 03-01-2008 05:38 AM by DaSilva.)
03-01-2008 03:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #24
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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.
03-01-2008 06:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,034
Joined: Jan 2007
Reputation: 92
Post: #25
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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
03-01-2008 08:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #26
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
I have just solved all problems now.
Thank you very much!
03-01-2008 08:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,034
Joined: Jan 2007
Reputation: 92
Post: #27
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
ok - this is cool.

Hope you enjoy the new version.

/Joxi
03-01-2008 08:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #28
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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.
03-01-2008 10:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,034
Joined: Jan 2007
Reputation: 92
Post: #29
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
There's a reason for the 403 so watch the logs
03-01-2008 10:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #30
RE: Migrate from VHCS2 on Server 1 to ispCP on Server 2
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?
03-01-2008 10:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)