move domain does not work well

DA-Rff

Verified User
Joined
Dec 4, 2006
Messages
108
I tried to move a domain to another user, using info on:
http://help.directadmin.com/item.php?id=58

cd /usr/local/directadmin/scripts
./move_domain.sh domain.com olduser newuser

domain is moved allright, but site does not work anymore, it throws the following message
===========================================
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
===========================================

What is it in this script that makes this mistake happen, this is the preferred way of doing things according to DA, but it apparently does not work properly.

There is no .htacces on the site.

What should I do now? How can I fix this script so it does not do this everytime.
 
It always works well for me. I would be willing to look at your server if you want.
 
Try:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes
 
Try:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes

That did not do it, what seemed to work on one or two sites was to go in with ftp and set the public_html dir to 755

But not on all sites, I am on a freebsd machine, do not know it that changes things?
 
What seems to help, but not in all cases, is after the domain move to new user, log in through ftp and chmod the public_html directory to 755, after that on most domains it works, but not on all.

I went in with the DA file viewer and reset ownership of public_html through that, now it is owned by apache, which does not seem right, will see if I can change that through ssh.

I am on freebsd, maybe this works not so well on freebsd machines?
 
When I run the script it starts with this message:


[: !=: unexpected operator

Maybe that is the source of the trouble?
 
The next problem after doing this, is this:



A new message or response with subject:



Warning: The system load average is 13.93



has arrived for you to view.

What should i do?
 
Back
Top