Current time: 04-23-2024, 11:02 PM Hello There, Guest! (LoginRegister)


Post Reply 
Mail Problem [courier]
Author Message
sebby Offline
Junior Member
*

Posts: 20
Joined: Jan 2010
Reputation: 0
Post: #11
RE: Mail Problem [courier]
set-gui-permissions.sh: Command not found.
01-30-2010 01:36 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #12
RE: Mail Problem [courier]
/var/www/ispcp/engine/setup/set-gui-permissions.sh must exist on your system or you have a faulty incomplete installation. Try again.
01-30-2010 01:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sebby Offline
Junior Member
*

Posts: 20
Joined: Jan 2010
Reputation: 0
Post: #13
RE: Mail Problem [courier]
That file exists but when i execute it i get that reply and this is the path:
/usr/local/www/ispcp/engine/setup/set-gui-permissions.sh
EDIT: found the set-gui-permissions.sh problem
the bash path is set to /bin/bash but it is /usr/local/bin/bash (i hope will be fixed in other versions ...found manny scripts using instend of /usr/local ... other path)
(This post was last modified: 01-30-2010 01:55 AM by sebby.)
01-30-2010 01:46 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #14
RE: Mail Problem [courier]
You have to learn how to execute programs that are *not* in your path. This is a basic linux sysadmin skill, and there are two ways to do it:

1. Input the file *with the full path*. This is, just write "/var/www/ispcp/engine/setup/set-gui-permissions.sh" in your terminal.

2. Go to the directory first ("cd /var/www/ispcp/engine/setup") and then execute the file, using a relative path: "./set-gui-permissions.sh"
01-30-2010 01:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sebby Offline
Junior Member
*

Posts: 20
Joined: Jan 2010
Reputation: 0
Post: #15
RE: Mail Problem [courier]
I set the path in script and it worked BUT in a bad way, now i can`t access my pannel instand i have permission error Sad

Warning: require_once(/usr/local/www/ispcp/gui/include/ispcp-db-keys.php) [function.require-once]: failed to open stream: Permission denied in /usr/local/www/ispcp/gui/include/ispcp-lib.php on line 67

Fatal error: require_once() [function.require]: Failed opening required '/usr/local/www/ispcp/gui/include/ispcp-db-keys.php' (include_path='.:/ispcp-db-keys.php:/usr/local/share/pear') in /usr/local/www/ispcp/gui/include/ispcp-lib.p
And it didn`t FIXED the webmail problem (and i remind you i`m on FreeBSD, is similar to Linux but different)
(This post was last modified: 01-30-2010 02:05 AM by sebby.)
01-30-2010 02:02 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #16
RE: Mail Problem [courier]
paste the contents of the set-gui-permissions.sh script please
01-30-2010 02:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sebby Offline
Junior Member
*

Posts: 20
Joined: Jan 2010
Reputation: 0
Post: #17
RE: Mail Problem [courier]
#!/usr/local/bin/bash

# ispCP ?? (OMEGA) a Virtual Hosting Control Panel
# Copyright © 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com
# Copyright © 2006-2009 by isp Control Panel - http://ispcp.net
#
# Version: $Id: set-gui-permissions.sh 2450 2009-12-23 20:19:20Z nuxwin $
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is "VHCS - Virtual Hosting Control System".
#
# The Initial Developer of the Original Code is moleSoftware GmbH.
# Portions created by Initial Developer are Copyright © 2001-2006
# by moleSoftware GmbH. All Rights Reserved.
# Portions created by the ispCP Team are Copyright © 2006-2009 by
# isp Control Panel. All Rights Reserved.
#
# The ispCP ?? Home Page is:
#
# http://isp-control.net
#
. $(dirname "$0")/ispcp-permission-functions.sh

# for spacing
echo -en " Setting GUI Permissions: ";

if [ $DEBUG -eq 1 ]; then
echo "";
fi

# By default, gui files must be readable by both the panel user (php files are
# run under this user) and apache (static files are served by it).
recursive_set_permissions "$ROOT_DIR/gui/" \
$PANEL_USER $APACHE_GROUP 0550 0440

# But the following folders must be writable by the panel user, because
# php-generated or uploaded files will be stored there.
recursive_set_permissions "$ROOT_DIR/gui/phptmp" \
$PANEL_USER $APACHE_GROUP 0750 0640
recursive_set_permissions "$ROOT_DIR/gui/themes/user_logos" \
$PANEL_USER $APACHE_GROUP 0750 0640
recursive_set_permissions "$ROOT_DIR/gui/tools/filemanager/temp" \
$PANEL_USER $APACHE_GROUP 0750 0640
recursive_set_permissions "$ROOT_DIR/gui/tools/webmail/data" \
$PANEL_USER $APACHE_GROUP 0750 0640
recursive_set_permissions \
"$ROOT_DIR/gui/include/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer" \
$PANEL_USER $APACHE_GROUP 0750 0640

# Decryption keys allow root access to the database, so they must only be
# accessible by the panel user.
set_permissions "$ROOT_DIR/gui/include/ispcp-db-keys.php" \
$PANEL_USER $PANEL_GROUP 0400

# Main virtual webhosts directory must be owned by root and readable by all
# the domain-specific users.
set_permissions $APACHE_WWW_DIR $ROOT_USER $ROOT_GROUP 0555

# Main fcgid directory must be world-readable, because all the domain-specific
# users must be able to access its contents.
set_permissions "$PHP_STARTER_DIR" $ROOT_USER $ROOT_GROUP 0555

# Required on centos
set_permissions "$PHP_STARTER_DIR/master" $PANEL_USER $PANEL_GROUP 0755

echo " done";

exit 0

EDIT: After is chmod +r ispcp-db-keys.php i was able to see the panel login again
CONSIDER THIS PROBLEM SOLVED
I fixed manually the permission problem to webmail to
(This post was last modified: 01-30-2010 10:30 AM by sebby.)
01-30-2010 02:09 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #18
RE: Mail Problem [courier]
Are you using mod_php?
01-30-2010 03:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sebby Offline
Junior Member
*

Posts: 20
Joined: Jan 2010
Reputation: 0
Post: #19
RE: Mail Problem [courier]
Now i run into other mail problem: I can send mail only to my root user and sebby (shell uses) and to othes i can`t (i meen in my webmail shows sent but i isn`t sent) (gmail,yahoo, or even to my box users from /var/mail/virtual) here is the log whit some warning/errors http://pastebin.com/f4a744d48
01-30-2010 10:31 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #20
RE: Mail Problem [courier]
better hide the cleartext passwords...

there are so many warnings and errors - I never saw them on an ispcp installation.
Even a BSD installation should not be that complex...

theese are many problems:

Quote:Jan 29 23:12:37 localhost postfix/qmgr[36818]: warning: connect to transport private/courier: No such file or directory

Jan 29 23:12:37 localhost postfix/smtp[81939]: fatal: unknown service: smtp/tcp

Jan 29 23:12:38 localhost postfix/qmgr[36818]: warning: private/smtp socket: malformed response

Jan 29 23:12:38 localhost postfix/qmgr[36818]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description

Jan 29 23:12:38 localhost postfix/master[36814]: warning: process /usr/local/libexec/postfix/smtp pid 81939 exit status 1

Jan 29 23:12:38 localhost postfix/master[36814]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling

Jan 29 23:14:28 localhost postfix/smtpd[81944]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in

I *really* suggest you to make your experience with a more common OS, try Debian 5.

Otherwise I recommend you to find a person who is familiar with your BSD. The errors are not very ispcp specific.

/J
01-30-2010 07:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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