|
FreeBSD ?
|
| Author |
Message |
RatS
The Project's Fire Worker
     
Posts: 684
Group: Super Moderators
Joined: Oct 2006
Status:
Offline
Reputation: 18
|
RE: FreeBSD ?
if it works, it's good to know, so we can adapt.
|
|
| 03-13-2008 02:30 AM |
|
 |
blocker
Junior Member

Posts: 81
Group: Registered
Joined: Apr 2007
Status:
Offline
Reputation: 1
|
RE: FreeBSD ?
tried it once again....
I belive it hates me really hard 
hahaha i dont think so 
Ok... I loaded the current nightly.
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
OS: FreeBSD 7.0, 6.3, 6.2 - ISPCP Omega Dev. Version =T-W-S= Blocker
|
|
| 03-13-2008 11:58 AM |
|
 |
StevenE
Junior Member

Posts: 99
Group: Registered
Joined: Feb 2008
Status:
Offline
Reputation: 0
|
RE: FreeBSD ?
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
so current error looks like this
just the tail of the DEBUG
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
cd /usr/local/etc/ispcp/postfix/ispcp/
The syntax for working cp command here should be like
cp -p aliases domains mailboxes transport sender-access /usr/local/etc/postfix/ispcp
the changes should be around here in ispcp-setup-methods.pl
$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
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-13-2008 07:48 PM by StevenE.
|
|
| 03-13-2008 07:46 PM |
|
 |
StevenE
Junior Member

Posts: 99
Group: Registered
Joined: Feb 2008
Status:
Offline
Reputation: 0
|
RE: FreeBSD ?
yeah got it on my own
I changed the mentioned lines in ispcp-setup-methods.pl
now looks like this:
$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.
OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none
|
|
| 03-13-2008 11:41 PM |
|
 |
StevenE
Junior Member

Posts: 99
Group: Registered
Joined: Feb 2008
Status:
Offline
Reputation: 0
|
RE: FreeBSD ?
Now I'm totally lost.... 
here is the next error where I've absolutly no idea....
DEBUG tail:
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:
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
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-14-2008 12:31 AM by StevenE.
|
|
| 03-14-2008 12:11 AM |
|
 |
StevenE
Junior Member

Posts: 99
Group: Registered
Joined: Feb 2008
Status:
Offline
Reputation: 0
|
RE: FreeBSD ?
so last error was a nooby mistake of mine.... courier wasn't installed 
shame to me...
soooooooooo finally laaaaaadies and gentleman
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 ispcp_network and daemon are in wrong path... I'll change that but a first look at my ispcp-server deliver a sad view....
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)
/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?
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-14-2008 01:52 AM by StevenE.
|
|
| 03-14-2008 01:43 AM |
|
 |
blocker
Junior Member

Posts: 81
Group: Registered
Joined: Apr 2007
Status:
Offline
Reputation: 1
|
RE: FreeBSD ?
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
OS: FreeBSD 7.0, 6.3, 6.2 - ISPCP Omega Dev. Version =T-W-S= Blocker
|
|
| 03-14-2008 11:17 AM |
|
 |
StevenE
Junior Member

Posts: 99
Group: Registered
Joined: Feb 2008
Status:
Offline
Reputation: 0
|
RE: FreeBSD ?
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?
#
# 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?
OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none
|
|
| 03-14-2008 09:10 PM |
|
 |
blocker
Junior Member

Posts: 81
Group: Registered
Joined: Apr 2007
Status:
Offline
Reputation: 1
|
RE: FreeBSD ?
No, in this error
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
OS: FreeBSD 7.0, 6.3, 6.2 - ISPCP Omega Dev. Version =T-W-S= Blocker
|
|
| 03-15-2008 11:43 AM |
|
 |
StevenE
Junior Member

Posts: 99
Group: Registered
Joined: Feb 2008
Status:
Offline
Reputation: 0
|
RE: FreeBSD ?
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....
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
OS : FreeBSD 7.0-RC1
ispCP Version : RC5
Apache-Version : 2.2.6
MySQL-Version : 5.1.22
Mods : none
|
|
| 03-17-2008 11:27 PM |
|
 |
|
|