ispCP - Board - Support
FreeBSD ? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: FreeBSD ? (/thread-2409.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: FreeBSD ? - StevenE - 03-03-2008 01:26 AM

It worked for me before with adduser ( there you're right )
I have allready a working system on FreeBSD but there are some problems which should be now solved, thats why I want to install it one more time Smile

tomorrow I'll search for an solution Smile


RE: FreeBSD ? - blocker - 03-03-2008 03:18 PM

Ok thats great. If you still have some problem, may be we can help


RE: FreeBSD ? - StevenE - 03-03-2008 08:00 PM

Hi,

I'm testing arround and there are still problems won't be solved....
I changed ispcp.conf like this:
Code:
CMD_GROUPADD = /usr/sbin/pw groupadd
CMD_GROUPDEL = /usr/sbin/pw groupdel
CMD_USERADD = /usr/sbin/pw useradd
CMD_USERDEL = /usr/sbin/pw userdel

and ispcp-setup like this:
Code:
if (scalar(@udata) == 0) { # we have not this one user data;
                my $cmd = "$main::cfg{'CMD_USERADD'} vmail-user -s /bin/false $fuid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

                @udata = getpwnam($fuid);
        }
         if (scalar(@gdata) == 0) { # we do not have this group
                my $cmd = "$main::cfg{'CMD_GROUPADD'} v-group -g $mgid $prefix$mgid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

        }

        if (scalar(@udata) == 0) { # we do not have this user
                my $cmd = "$main::cfg{'CMD_USERADD'} vu-master -d  $main::cfg{'PHP_STARTER_DIR'}/master -m -s /bin/false -u $muid $prefix$muid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

        }


I'm sure that there are mistakes of mine but it works so far until the point the script expect the group 'root' which don't exist, if I create it next is the missing user 'vu2000'
seems like script problem here....


edit: the current ispcp-setup configuration doesn't work too, it's an user expected from 'pw' but the syntax at the moment is this:

'/usr/sbin/pw useradd -c vmail-user -g 6 -s /bin/false vmail'

there should be the username in front of ' -c'


RE: FreeBSD ? - blocker - 03-04-2008 05:58 PM

StevenE Wrote:Hi,

I'm testing arround and there are still problems won't be solved....
I changed ispcp.conf like this:
Code:
CMD_GROUPADD = /usr/sbin/pw groupadd
CMD_GROUPDEL = /usr/sbin/pw groupdel
CMD_USERADD = /usr/sbin/pw useradd
CMD_USERDEL = /usr/sbin/pw userdel

which ispcp version do you test ? as far I remember RC3 already had configuration like that. PS: pw group add is same like pw groupadd

StevenE Wrote:and ispcp-setup like this:
Code:
if (scalar(@udata) == 0) { # we have not this one user data;
                my $cmd = "$main::cfg{'CMD_USERADD'} vmail-user -s /bin/false $fuid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

                @udata = getpwnam($fuid);
        }
         if (scalar(@gdata) == 0) { # we do not have this group
                my $cmd = "$main::cfg{'CMD_GROUPADD'} v-group -g $mgid $prefix$mgid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

        }

        if (scalar(@udata) == 0) { # we do not have this user
                my $cmd = "$main::cfg{'CMD_USERADD'} vu-master -d  $main::cfg{'PHP_STARTER_DIR'}/master -m -s /bin/false -u $muid $prefix$muid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

        }


I'm sure that there are mistakes of mine but it works so far until the point the script expect the group 'root' which don't exist, if I create it next is the missing user 'vu2000'
seems like script problem here....


edit: the current ispcp-setup configuration doesn't work too, it's an user expected from 'pw' but the syntax at the moment is this:

'/usr/sbin/pw useradd -c vmail-user -g 6 -s /bin/false vmail'

there should be the username in front of ' -c'

the correct syntax is
Code:
my $cmd = "$main::cfg{'CMD_GROUPADD'} $prefix$mgid -g $mgid";

and the other is
Code:
my $cmd="$main::cfg{'CMD_USERADD'} $prefix$muid $prefix$muid -d  $main::cfg{'PHP_STARTER_DIR'}/master -m -c vu-master -g $prefix$mgid -s /bin/false -u $muid $prefix$muid";

for vmail
Code:
my $cmd = "$main::cfg{'CMD_USERADD'} $fuid -c vmail-user -s /bin/false";



RE: FreeBSD ? - StevenE - 03-06-2008 01:57 AM

hi,

sorry had some other problems around here Tongue
but now I continued the Installation. Thx blocker; code works so far but next porblem appears and I remember that I#ve seen it here before but didn't found it now....

so here is what happens during Installation
Code:
ERROR: External command '/usr/bin/mysql --host=localhost --user=root --pass= < /tmp/db.sql 1>/tmp/db.sql.stdout 2>/tmp/db.sql.stderr' returned '127' status !

it works manually....


RE: FreeBSD ? - BeNe - 03-06-2008 02:14 AM

Please check the two files und post them here:
/tmp/db.sql.stdout
/tmp/db.sql.stderr

Greez BeNe


RE: FreeBSD ? - StevenE - 03-06-2008 02:24 AM

... ok should've checked it by myself.
error was only wrong path. I keep going.. whyever it don't connect to SQL database I'll check it out


RE: FreeBSD ? - StevenE - 03-08-2008 12:53 AM

sorry but I don't get the clue....
I don't have permission as root@localhost (login works) on mysql to create DBs etc.....

does ispcp-setup give any permissions ?


RE: FreeBSD ? - joximu - 03-08-2008 01:29 AM

no

you only give username and password so ispcp can use it - the user should have full rights on mysql...

maybe you need to check the permissions of this user. try starting mysql with ignoring the grant tables... (there should be some parameter...)


RE: FreeBSD ? - StevenE - 03-08-2008 02:26 AM

the user root@localhost has, whyever, not ALL PRIVILEGES but I can't change them because only with root I can login and can't change permission with --skip-grant-tables activated....

somehow ispcp seems to change them, because I didn't