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 ? - RatS - 03-13-2008 02:30 AM

if it works, it's good to know, so we can adapt.


RE: FreeBSD ? - blocker - 03-13-2008 11:58 AM

StevenE Wrote:tried it once again....
I belive it hates me really hard Tongue

hahaha i dont think so Smile

StevenE Wrote:Ok... I loaded the current nightly.

Code:
make -f BSDMakefile
works fine as allways

but now first question why you changed path from

/usr/local/www/apache22/ispcp/
to
/usr/local/www/ispcp/

this only catches more difficultes....
so I move it back to old path.

the reason is that when you want to use suexec and fastcgi, it require the program lies in www not in www/apache22, if you use mod_php should be no problem, since default ispcp is using fastcgi, it best to restructure the path.

and, the installation is not completely ported yet, please be patient to always try lastest trunk Big Grin


RE: FreeBSD ? - StevenE - 03-13-2008 07:46 PM

good morning everybody,

so how should it be diffrent, I just have some errors which wanted to be solved, but I'm a bad programmer so I need you once more but think I have a good hint this time Tongue

so current error looks like this
just the tail of the DEBUG
Code:
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/cp -p /usr/local/etc/ispcp/postfix/backup/main.cf.ispcp /usr/local/etc/postfix/main.cf'), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/cp -p /usr/local/etc/ispcp/postfix/backup/master.cf.ispcp /usr/local/etc/postfix/master.cf'), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
cp: /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access}: No such file or directory
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/bin/cp -p /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access} /usr/local/etc/postfix/ispcp' returned '1' status !
DEBUG: pop_el() sub_name: sys_command(), msg: ERROR: External command '/bin/cp -p /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access} /usr/local/etc/postfix/ispcp' returned '1' status !
ERROR: External command '/bin/cp -p /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access} /usr/local/etc/postfix/ispcp' returned '1' status !


but I think I know how to solve but don't how to write in the script.
first of all for this thing is that we change to directory
Code:
cd /usr/local/etc/ispcp/postfix/ispcp/

The syntax for working cp command here should be like
Code:
cp -p aliases domains mailboxes transport sender-access /usr/local/etc/postfix/ispcp

the changes should be around here in ispcp-setup-methods.pl
Code:
$cmd = "$main::cfg{'CMD_CP'} -p $vrl_dir/{aliases,domains,mailboxes,transport,sender-access} $main::cfg{'MTA_VIRTUAL_CONF_DIR'}";
        $rs = sys_command($cmd);
        return $rs if ($rs != 0);

        $cmd = "$main::cfg{'CMD_CP'} -p $vrl_dir/{aliases,domains,mailboxes,transport,sender-access} $wrk_dir";
        $rs = sys_command($cmd);
        return $rs if ($rs != 0);

        $cmd = "$main::cfg{'CMD_POSTMAP'} $main::cfg{'MTA_VIRTUAL_CONF_DIR'}/{aliases,domains,mailboxes,transport,sender-access} &> /tmp/ispcp-setup-services.log";
        $rs = sys_command($cmd);
        return $rs if ($rs != 0);

But its just an idea, maybe it can help, otherway I'm sure you solve it somehow Tongue


RE: FreeBSD ? - StevenE - 03-13-2008 11:41 PM

yeah got it on my own Tongue
I changed the mentioned lines in ispcp-setup-methods.pl
now looks like this:

Code:
    $cmd = "$main::cfg{'CMD_CP'} -p $vrl_dir/aliases $vrl_dir/domains $vrl_dir/mailboxes $vrl_dir/transport $vrl_dir/sender-access $main::cfg{'MTA_VIRTUAL_CONF_DIR'}";
    $rs = sys_command($cmd);
    return $rs if ($rs != 0);

    $cmd = "$main::cfg{'CMD_CP'} -p $vrl_dir/aliases $vrl_dir/domains $vrl_dir/mailboxes $vrl_dir/transport $vrl_dir/sender-access $wrk_dir";
    $rs = sys_command($cmd);
    return $rs if ($rs != 0);

caught the next error but think thats to solve.


RE: FreeBSD ? - StevenE - 03-14-2008 12:11 AM

Now I'm totally lost.... Sad

here is the next error where I've absolutly no idea....

DEBUG tail:
Code:
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
Can't exec "/usr/local/sbin/makeuserdb": No such file or directory at /usr/local/www/apache22/ispcp/engine/setup/../ispcp_common_methods.pl line 754.
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/usr/local/sbin/makeuserdb' returned '72057594037927935' status !
DEBUG: pop_el() sub_name: sys_command(), msg: ERROR: External command '/usr/local/sbin/makeuserdb' returned '72057594037927935' status !
ERROR: External command '/usr/local/sbin/makeuserdb' returned '72057594037927935' status !

ispcp_common_methods.pl line 754. is:
Code:
my $result = system($cmd);

a file called "makeuserdb" exists nowhere on system, not even in ispcp folders

Need help...

edit: maybe I cried to early hold on a sec.... maybe I just made a nooby mistake Tongue


RE: FreeBSD ? - StevenE - 03-14-2008 01:43 AM

so last error was a nooby mistake of mine.... courier wasn't installed Tongue
shame to me...

soooooooooo finally laaaaaadies and gentleman

Code:
Congratulations!

        ispCP '1.0.0 RC4 OMEGA' Setup completed successfully!

        Please type http://admin.omega.cbt.de in your browser!

hard to belive....
ehm but still there are bugs which ignored Smile ispcp_network and daemon are in wrong path... I'll change that but a first look at my ispcp-server deliver a sad view....

Code:
Warning: Unknown: open_basedir restriction in effect. File(/usr/local/www/apache22/ispcp/gui/index.php) is not within the allowed path(s): ({WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/usr/local/www/apache22/ispcp/gui/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0

perhaps ispcp network and daemon will help in right path?

any ideas?

edit: had a look they are in the right path but with the ending *.sh
debug at installation told me ( but seems to ignore)
Code:
/usr/local/etc/rc.d/ispcp_daemon: not found
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
/usr/local/etc/rc.d/ispcp_network: not found

whats now?


RE: FreeBSD ? - blocker - 03-14-2008 11:17 AM

first of all, if you hit some error, you could first check the patch from rc2c version becouse most of the error already modified to working with freebsd, the trunk version is an attempt to bring ispcp installed without have to patch like that. so it really need some time until it really working like *nux version.

now the answer:
error 1: the setup program is not correctly replace the variable {WWW_DIR} it should be the path for www directory which mean /usr/local/www/apache22 etc
error 2: you will have to modified ispcp_daemon a little bit so it will run ( path and some c program have to be change )
error 3: ispcp_network cant be run and have to be change to ipfw or ipf model


RE: FreeBSD ? - StevenE - 03-14-2008 09:10 PM

blocker Wrote:now the answer:
error 1: the setup program is not correctly replace the variable {WWW_DIR} it should be the path for www directory which mean /usr/local/www/apache22 etc

you mean the WWW_DIR in ispcp.conf?
Code:
#
# Main variables
#
CONF_DIR = /usr/local/etc/ispcp
LOG_DIR = /var/log/ispcp
PHP_STARTER_DIR = /usr/local/www/apache22/fcgi
ROOT_DIR = /usr/local/www/apache22/ispcp
ROOT_USER = root
ROOT_GROUP = wheel
GUI_ROOT_DIR = /usr/local/www/apache22/ispcp/gui
APACHE_WWW_DIR = /usr/local/www/apache22/data
SCOREBOARDS_DIR = /var/www/scoreboards

the variable is the same as in my working Installation.
or is it something else?


RE: FreeBSD ? - blocker - 03-15-2008 11:43 AM

No, in this error

Code:
Warning: Unknown: open_basedir restriction in effect. File(/usr/local/www/apache22/ispcp/gui/index.php) is not within the allowed path(s): ({WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}) in Unknown on line 0



RE: FreeBSD ? - StevenE - 03-17-2008 11:27 PM

RC4 didn't work under my FreeBSD...

blocker already made a ticket for the userdb var thing but I'm not sure if that solve the following....

/usr/local/www/ispcp/engine/setup/ispcp-setup_methods.pl must be changed!! I have made a ticket for that one.

then the File /usr/local/etc/userdb is missing, I touched it (worked lasttime) but now....

Code:
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
/usr/local/etc/userdb: MAY NOT HAVE GROUP OR WORLD PERMISSIONS!!
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/usr/local/sbin/makeuserdb' returned '255' status !
DEBUG: pop_el() sub_name: sys_command(), msg: ERROR: External command '/usr/local/sbin/makeuserdb' returned '255' status !
ERROR: External command '/usr/local/sbin/makeuserdb' returned '255' status !

set permission to 777. The owner is root:wheel