Post Reply  Post Thread 
Pages (11): « First < Previous 1 2 3 4 [5] 6 7 8 9 Next > Last »
FreeBSD ?
Author Message
StevenE
Junior Member
*


Posts: 99
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #41
RE: FreeBSD ?

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


OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none

This post was last modified: 03-03-2008 01:27 AM by StevenE.

03-03-2008 01:26 AM
Find all posts by this user Quote this message in a reply
blocker
Junior Member
*


Posts: 81
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 1
Post: #42
RE: FreeBSD ?

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


OS: FreeBSD 7.0, 6.3, 6.2 - ISPCP Omega Dev. Version =T-W-S= Blocker
03-03-2008 03:18 PM
Find all posts by this user Quote this message in a reply
StevenE
Junior Member
*


Posts: 99
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #43
RE: FreeBSD ?

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'


OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none

This post was last modified: 03-03-2008 09:06 PM by StevenE.

03-03-2008 08:00 PM
Find all posts by this user Quote this message in a reply
blocker
Junior Member
*


Posts: 81
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 1
Post: #44
RE: FreeBSD ?

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";


OS: FreeBSD 7.0, 6.3, 6.2 - ISPCP Omega Dev. Version =T-W-S= Blocker
03-04-2008 05:58 PM
Find all posts by this user Quote this message in a reply
StevenE
Junior Member
*


Posts: 99
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #45
RE: FreeBSD ?

hi,

sorry had some other problems around here :p
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....


OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none
03-06-2008 01:57 AM
Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,595
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 36
Post: #46
RE: FreeBSD ?

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

Greez BeNe



In Holiday´s this week :-)
03-06-2008 02:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
StevenE
Junior Member
*


Posts: 99
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #47
RE: FreeBSD ?

... 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


OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none

This post was last modified: 03-06-2008 02:24 AM by StevenE.

03-06-2008 02:24 AM
Find all posts by this user Quote this message in a reply
StevenE
Junior Member
*


Posts: 99
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #48
RE: FreeBSD ?

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 ?


OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none
03-08-2008 12:53 AM
Find all posts by this user Quote this message in a reply
joximu
Moderator
*****


Posts: 3,534
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #49
RE: FreeBSD ?

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...)


2008-03-16 ispCP RC4 released!!!
03-08-2008 01:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
StevenE
Junior Member
*


Posts: 99
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #50
RE: FreeBSD ?

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


OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none
03-08-2008 02:26 AM
Find all posts by this user Quote this message in a reply
Pages (11): « First < Previous 1 2 3 4 [5] 6 7 8 9 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |