Current time: 11-27-2024, 05:24 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problem nach Serverumzug
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #4
RE: Problem nach Serverumzug
probier das script mal - weiss aba nischt genau ob das bei der 1.0.3 richtig funzt:
Code:
nano /root/mysql.cnf

einfügen:
[client]
user=root
password=deinmysqlpassword

speichern

dann:

nano /var/www/ispcp/engine/setup/groups.sh

einfügen:

#!/bin/bash
#
# PROCESS DIRECTORY RIGHTS (OWNERSHIP & CHMOD)
#
# !!!! Edit path to mysql cnf file !!!!
mycnf=/root/mysql.cnf

# sample mysql.cnf looks like this:
# [client]
# user=user_for_ispcp_database_usualy_root
# password=password_of_user

for domain_id in `echo "SELECT domain_id FROM ispcp.domain" | mysql --defaults-file=$mycnf -s`;
do
uid=`echo "SELECT domain_uid FROM ispcp.domain WHERE domain_id='$domain_id'" | mysql --defaults-file=$mycnf -s`;
gid=`echo "SELECT domain_gid FROM ispcp.domain WHERE domain_id='$domain_id'" | mysql --defaults-file=$mycnf -s`;
dmn=`echo "SELECT domain_name FROM ispcp.domain WHERE domain_id='$domain_id'" | mysql --defaults-file=$mycnf -s`;
echo "===========================================================";
echo " $dmn";
echo "===========================================================";

# process ftp
echo "UPDATE \`ispcp\`.\`ftp_group\` SET \`gid\`='$gid' WHERE \`groupname\`='$dmn'" | mysql --defaults-file=/root/mysql.cnf -s
echo "UPDATE \`ispcp\`.\`ftp_users\` SET \`uid\`=$uid, \`gid\`='$gid' WHERE \`userid\` like '%@$dmn'" | mysql --defaults-file=/root/mysql.cnf -s
chown -vR vu$uid:vu$gid /var/www/virtual/$dmn
chown -v vu$uid:www-data /var/www/virtual/$dmn

chown -vR vu$uid:www-data /var/www/virtual/$dmn/backups

chown -vR vu$uid:vu$gid /var/www/virtual/$dmn/cgi-bin

chown -vR vu$uid:vu$gid /var/www/virtual/$dmn/errors

chown -vR vu$uid:vu$gid /var/www/virtual/$dmn/htdocs

chown -v vu$uid:www-data /var/www/virtual/$dmn/.ht*

chown -vR vu$uid:www-data /var/www/virtual/$dmn/logs

chown -vR vu$uid:www-data /var/www/virtual/$dmn/phptmp

chown -R vmail.mail /var/mail/virtual/*

done

################################

dann:
chmod 700  /var/www/ispcp/engine/setup/groups.sh

dann ausführen:
/var/www/ispcp/engine/setup/groups.sh

dann wichtig:
cd /var/www/ispcp/engine/setup
./set-gui-permissions.sh
./set-engine-permissions.sh
01-06-2010 01:38 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Problem nach Serverumzug - loisl - 01-06-2010, 12:45 AM
RE: Problem nach Serverumzug - fulltilt - 01-06-2010, 01:14 AM
RE: Problem nach Serverumzug - loisl - 01-06-2010, 01:30 AM
RE: Problem nach Serverumzug - fulltilt - 01-06-2010 01:38 AM
RE: Problem nach Serverumzug - loisl - 01-06-2010, 02:00 AM
RE: Problem nach Serverumzug - fulltilt - 01-06-2010, 02:05 AM
RE: Problem nach Serverumzug - loisl - 01-06-2010, 06:08 AM
RE: Problem nach Serverumzug - loisl - 01-06-2010, 07:10 AM
RE: Problem nach Serverumzug - ZooL - 01-06-2010, 02:01 PM
RE: Problem nach Serverumzug - loisl - 01-06-2010, 02:09 PM

Forum Jump:


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