Verzweifelung mit der Konfiguration

uwe59

Registered User
Hallo,

ich habe jetzt mehrfach versucht, syscp zu installieren. Es scheint soweit alles zu funktionieren, aber nachdem ich einen Kunden angelegt habe, komme ich an syscp nicht mehr per Browser ran. Die Installation habe ich auf einem V-Server mit Debian 4.0 wie folgt ausgeführt:
Code:
Installation syscp
 
[COLOR=red]### MySQL intallieren[/COLOR]
apt-get install mysql-client mysql-server mysql-common
 
[COLOR=red]### MySQL-root-Passwort aendern[/COLOR]
mysql -u root mysql
mysql> update user set `password`=PASSWORD('MeinMySQLPasswort') where `user`='root';
mysql> flush privileges;
mysql> quit
 
[COLOR=red]### Postfix installieren[/COLOR]
apt-get install postfix postfix-mysql
 
[COLOR=red]### POP3 / IMAP installieren[/COLOR]
apt-get install courier-authdaemon courier-authlib courier-authlib-mysql courier-maildrop courier-authlib-userdb courier-pop courier-pop-ssl courier-imap courier-imap-ssl courier-ssl
 
[COLOR=red]### SMTP Auth installieren[/COLOR]
apt-get install libsasl2 libsasl2-modules libsasl2-modules-sql
 
[COLOR=red]### Mailscanner installieren[/COLOR]
apt-get install spamassassin clamav clamav-daemon
 
[COLOR=red]### Apache und PHP5 installieren[/COLOR]
apt-get install apache2 apache2.2-common apache2-utils apache2-mpm-prefork libapache2-mod-php5 php5 php5-mysql php5-common php5-cli
 
[COLOR=red]### DNS-Server installieren[/COLOR]
apt-get install bind9 bind9-host
 
[COLOR=red]### FTP-Server installieren[/COLOR]
apt-get install proftpd proftpd-mysql
 
[COLOR=red]### SysCP installieren[/COLOR]
apt-get install syscp
 
[COLOR=red]### phpmyadmin installieren[/COLOR]
apt-get install phpmyadmin
 
[COLOR=red]### Configure syscp[/COLOR]
[URL]http://xxx.xxx.xxx.xxx/syscp[/URL]
 
[COLOR=red]### Configure-Daten eingeben, abschicken und wenn alles OK, einloggen[/COLOR]
[URL]http://xxx.xxx.xxx.xxx/syscp/index.php[/URL] 
 
[COLOR=red]### Konfiguration anklicken, Distribution Debian 4.0, Webserver und Apache 2 auswählen[/COLOR]
 
[COLOR=red]### In Shell ausführen[/COLOR]
mkdir -p /var/kunden/webs/
mkdir -p /var/kunden/logs/
a2dismod userdir
/etc/init.d/apache2 restart
 
[COLOR=red]### Distribution Debian 4.0, Nameserver und Bind9 auswählen[/COLOR]
 
[COLOR=red]### In shell ausführen[/COLOR]
echo "include \"/etc/bind/syscp_bind.conf\";" >> /etc/bind/named.conf
touch /etc/bind/syscp_bind.conf
/etc/init.d/bind9 restart
 
[COLOR=red]### Debian 4.0, Mailserver und Courier auswählen[/COLOR]
 
[COLOR=red]### Inhalt von /etc/courier/authdaemonrc ersetzen durch[/COLOR]
 
##VERSION: $Id: authdaemonrc.in,v 1.8 2001/10/07 02:16:22 mrsam Exp $
#
# Copyright 2000-2001 Double Precision, Inc. See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication daemon.
#
# Comments in this file are ignored. Although this file is intended to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited. Multiline variable contents,
# with the \ continuation character, are not allowed. Everything must
# fit on one line. Do not use any additional whitespace for indentation,
# or anything else.
 
##NAME: authmodulelist:0
#
# The authentication modules that are linked into authdaemond. The
# default list is installed. You may selectively disable modules simply
# by removing them from the following list. The available modules you
# can use are: authcustom authcram authuserdb authldap authmysql authpam
 
authmodulelist="authmysql"
 
##NAME: authmodulelistorig:1
#
# This setting is used by Courier's webadmin module, and should be left
# alone
 
authmodulelistorig="authcustom authcram authuserdb authldap authmysql authpam"
 
##NAME: daemons:0
#
# The number of daemon processes that are started. authdaemon is typically
# installed where authentication modules are relatively expensive: such
# as authldap, or authmysql, so it's better to have a number of them running.
# PLEASE NOTE: Some platforms may experience a problem if there's more than
# one daemon. Specifically, SystemV derived platforms that use TLI with
# socket emulation. I'm suspicious of TLI's ability to handle multiple
# processes accepting connections on the same filesystem domain socket.
#
# You may need to increase daemons if as your system load increases. Symptoms
# include sporadic authentication failures. If you start getting
# authentication failures, increase daemons. However, the default of 5
# SHOULD be sufficient. Bumping up daemon count is only a short-term
# solution. The permanent solution is to add more resources: RAM, faster
# disks, faster CPUs...
 
daemons=5
 
##NAME: version:0
#
# When you have multiple versions of authdaemond.* installed, authdaemond
# just picks the first one it finds. Set "version" to override that.
# For example: version=authdaemond.plain
 
version=""
 
##NAME: authdaemonvar:0
#
# authdaemonvar is here, but is not used directly by authdaemond. It's
# used by various configuration and build scripts, so don't touch it!
 
authdaemonvar=/var/run/courier/authdaemon
 
[COLOR=red]### Inhalt von /etc/courier/authmysqlrc ersetzen durch[/COLOR]
 
MYSQL_SERVER 127.0.0.1
MYSQL_USERNAME syscp
MYSQL_PASSWORD MeinSyscpPasswort
MYSQL_PORT 3306
MYSQL_DATABASE syscp
MYSQL_USER_TABLE mail_users
MYSQL_CRYPT_PWFIELD password_enc
MYSQL_UID_FIELD uid
MYSQL_GID_FIELD gid
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD homedir
MYSQL_MAILDIR_FIELD maildir
 
[COLOR=red]### In shell ausführen[/COLOR]
/etc/init.d/courier-authdaemon restart
/etc/init.d/courier-pop restart
 
[COLOR=red]### Debian 4.0 (Etch), Mailserver (SMTP) und Postfix auswählen[/COLOR]
 
[COLOR=red]### In shell ausführen[/COLOR]
 
mkdir -p /etc/postfix/sasl
mkdir -p /var/spool/postfix/etc/pam.d
mkdir -p /var/spool/postfix/var/run/mysqld
groupadd -g 2000 vmail
useradd -u 2000 -g vmail vmail
mkdir -p /var/kunden/mail/
chown -R vmail:vmail /var/kunden/mail/
 
[COLOR=red]### Inhalt von /etc/postfix/main.cf ersetzen durch[/COLOR]
 
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = server.name.tld
mydomain = server.name.tld
mydestination = $myhostname $mydomain localhost localhost.$mydomain
mynetworks = 127.0.0.0/8
alias_maps = $alias_database
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
virtual_mailbox_base = /var/kunden/mail/
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
 
[COLOR=red]### Datei /etc/postfix/mysql-virtual_alias_maps.cf mit folgendem Inhalt anlegen[/COLOR]
 
user = syscp
password = MeinSyscpPasswort
dbname = syscp
table = mail_virtual
select_field = destination
where_field = email
additional_conditions = and destination <> '' and destination <> ' '
hosts = 127.0.0.1
 
[COLOR=red]### Datei /etc/postfix/mysql-virtual_mailbox_domains.cf mit folgendem Inhalt anlegen[/COLOR]
 
user = syscp
password = MeinSyscpPasswort
dbname = syscp
table = panel_domains
select_field = domain
where_field = domain
additional_conditions = and isemaildomain = '1'
hosts = 127.0.0.1
 
[COLOR=red]### Datei /etc/postfix/mysql-virtual_mailbox_maps.cf mit folgendem Inhalt anlegen[/COLOR]
 
user = syscp
password = MeinSyscpPasswort
dbname = syscp
table = mail_users
select_field = maildir
where_field = email
hosts = 127.0.0.1
 
[COLOR=red]### Datei /etc/postfix/sasl/smtpd.conf mit folgendem Inhalt anlegen[/COLOR]
 
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: syscp
sql_passwd: MeinSyscpPasswort
sql_database: syscp
sql_select: select password from mail_users where username='%u@%r'
 
[COLOR=red]### In shell ausführen[/COLOR]
/etc/init.d/postfix restart
 
[COLOR=red]# Debian 4.0 (Etch), FTP-Server undProFTPd auswählen[/COLOR]
 
[COLOR=red]### Datei /etc/proftpd/modules.conf durch folgenden Inhalt ersetzen[/COLOR]
 
#
# This file is used to manage DSO modules and features.
#
 
# This is the directory where DSO modules resides
 
ModulePath /usr/lib/proftpd
 
# Allow only user root to load and unload modules, but allow everyone
# to see which modules have been loaded
 
ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *
 
#LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
#LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c
 
# keep this module the last one
LoadModule mod_ifsession.c
 
<IfModule mod_delay.c>
DelayEngine off
</IfModule>
 
[COLOR=red]### Datei /etc/proftpd/proftpd.conf mit folgendem Inhalt ersetzen[/COLOR]
 
Include /etc/proftpd/modules.conf
 
ServerName "server.name.tld FTP Server"
ServerType standalone
DeferWelcome off
 
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowOverwrite on
 
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
 
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
 
DenyFilter \*.*/
 
Port 21
MaxInstances 30
 
TransferLog                        /var/log/proftpd/xferlog
SystemLog                        /var/log/proftpd/proftpd.log
 
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
 
<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
</Directory>
 
DefaultRoot ~
RequireValidShell off
 
AuthOrder mod_sql.c
 
SQLAuthTypes Crypt
SQLAuthenticate users* groups*
SQLConnectInfo syscp@127.0.0.1 syscp MeinSyscpPasswort
SQLUserInfo ftp_users username password uid gid homedir shell
SQLGroupInfo ftp_groups groupname gid members
SQLUserWhereClause "login_enabled = 'y'"
 
SQLLog PASS login
SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 WHERE username='%u'" ftp_users
 
SQLLog RETR download
SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_bytes+%b WHERE username='%u'" ftp_users
 
SQLLog STOR upload
SQLNamedQuery upload UPDATE "up_count=up_count+1, up_bytes=up_bytes+%b WHERE username='%u'" ftp_users
 
[COLOR=red]### In shell ausführen[/COLOR]
/etc/init.d/proftpd restart
 
# Debian 4.0 (Etch), Sonstige (System) und Crond auswählen
 
#Datei /etc/cron.d/syscp mit folgendem Inhalt anlegen
 
#
# Set PATH, otherwise restart-scripts won't find start-stop-daemon
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
# Regular cron jobs for the syscp package
#
*/5 * * * *    root    /usr/bin/php5 -q /var/www/syscp/scripts/cron_tasks.php
0 0 * * *    root    /usr/bin/php5 -q /var/www/syscp/scripts/cron_traffic.php
30 0 * * *    root    /usr/bin/php5 -q /var/www/syscp/scripts/cron_ticketarchive.php
 
[COLOR=red]### In shell ausführen[/COLOR]
/etc/init.d/cron restart
 
[COLOR=red]### In syscp einen Kunden anlegen[/COLOR]

Wenn ich über http://xxx.xxx.xxx.xxx auf den Server zugreife, kommt
This domain was created using SysCP.
There is no content on this domain yet.

Mit http://xxx.xxx.xxx.xxx/syscp kommt ein 404-Fehler. Unter /var/kunden/logs steht in kunde-error.log steht dann

File does not exist: /var/kunden/webs/bscu/syscp

Ist ja auch logisch, denn im Kunden-Web ist ja auch syscp nicht installiert.

Was habe ich falsch gemacht bzw. was habe ich übersehen.

Ich wäre für jeden Hinweis dankbar, denn ich habe das jetzt schon alles mehrfach ausprobiert und bekomme das einfach nicht vernünftig hin.

Gruß und Danke
Uwe

PS: Ich hatte mich mit diesem Problem schon mal in einen anderen Thread reingehängt. Ich habe jetzt hier nochmal meinen kompletten Weg geschildert, daher hoffe ich, dass dieser neue Thread ok ist.
 
Last edited by a moderator:
So, bin jetzt mal komplett nach dieser Anleitung gegangen, sieht schon mal nicht schlecht aus. Allerdings habe ich jetzt noch ein Problem mit den eMail-Accounts, es werden keine Verzeichnisse unterhalb von /var/kunden/mail/kunde angelegt. Woran könnte das noch liegen.

Eine weitere unschöne Sache, mit der ich noch leben könnte, ist, wenn man eine Domain anlegt, wird keine index.htm in das erstellte Verzeichnis kopiert. Vielleicht hat da ja jemand noch einen Tipp.

Danke und Gruß
Uwe
 
Back
Top