krieg pueftpd-mysql nicht zum laufen

Backup, Restore und Transfer von Daten
adrian_kaegi
Posts: 25
Joined: 2005-02-19 08:24
 

krieg pueftpd-mysql nicht zum laufen

Post by adrian_kaegi »

hallo zusammen

mein system:
debian sarge 3.1
kernel 2.6
pureftpd-mysql

ich habe die mysql tabelle eingerichtet und die

Code: Select all

/etc/pure-ftpd/db/mysql.conf
entsprechend dem manual geändert.

doch das problem liegt schon beim server.

Code: Select all

ps aux ¦ grep pure
gibt gewissheit, das das ding nicht läuft.
ich habe bereits in der datei

Code: Select all

/etc/default/pure-ftpd-common
die "betriebsart" von inetd auf standalone geändert. resultat ist das selbe...

dazu musste ich in der pure-ftpd-common die zeile

Code: Select all

MySQLConfigFile /etc/pure-ftpd/db/mysql.conf
eingefügt, doch nach einem restart erscheint sofort die fehlermeldung:

Code: Select all

MySQLConfigFile: Command not found
benötige ich zusätzliche mysql packete??
danke schon jetzt für einen tip!!

gruss adrian
rootsvr
Posts: 538
Joined: 2005-09-02 11:12
 

Re: krieg pueftpd-mysql nicht zum laufen

Post by rootsvr »

???

Du brauchst natürlich mysql die Tabellen und folgende Konfiguration:
(Debian stable pure-ftpd-mysql:

Code: Select all

# cat /etc/pure-ftpd/conf/MySQLConfigFile
/etc/pure-ftpd/db/mysql.conf

##############################################
#                                            #
# Sample Pure-FTPd Mysql configuration file. #
# See README.MySQL for explanations.         #
#                                            #
##############################################


# Optional : MySQL server name or IP. Don't define this for unix sockets.

# MYSQLServer     127.0.0.1


# Optional : MySQL port. Don't define this if a local unix socket is used.

# MYSQLPort       3306


# Optional : define the location of mysql.sock if the server runs on this host.

MYSQLSocket      /var/run/mysqld/mysqld.sock


# Mandatory : user to bind the server as.

MYSQLUser      DEINMYSQLUSER


# Mandatory : user password. You must have a password.

MYSQLPassword   DEINTOLLESPASSWORD


# Mandatory : database to open.

MYSQLDatabase   pureftpd


# Mandatory : how passwords are stored
# Valid values are : "cleartext", "crypt", "md5" and "password"
# ("password" = MySQL password() function)
# You can also use "any" to try "crypt", "md5" *and* "password"

MYSQLCrypt      password


# In the following directives, parts of the strings are replaced at
# run-time before performing queries :
#
# L is replaced by the login of the user trying to authenticate.
# I is replaced by the IP address the user connected to.
# P is replaced by the port number the user connected to.
# R is replaced by the IP address the user connected from.
# D is replaced by the remote IP address, as a long decimal number.
#
# Very complex queries can be performed using these substitution strings,
# especially for virtual hosting.


# Query to execute in order to fetch the password

MYSQLGetPW      SELECT Password FROM users WHERE User="L"


# Query to execute in order to fetch the system user name or uid

MYSQLGetUID     SELECT Uid FROM users WHERE User="L"


# Optional : default UID - if set this overrides MYSQLGetUID

#MYSQLDefaultUID 1000


# Query to execute in order to fetch the system user group or gid

MYSQLGetGID     SELECT Gid FROM users WHERE User="L"


# Optional : default GID - if set this overrides MYSQLGetGID

#MYSQLDefaultGID 1000


# Query to execute in order to fetch the home directory

MYSQLGetDir     SELECT Dir FROM users WHERE User="L"


# Optional : query to get the maximal number of files
# Pure-FTPd must have been compiled with virtual quotas support.

# MySQLGetQTAFS  SELECT QuotaFiles FROM users WHERE User="L"


# Optional : query to get the maximal disk usage (virtual quotas)
# The number should be in Megabytes.
# Pure-FTPd must have been compiled with virtual quotas support.

# MySQLGetQTASZ  SELECT QuotaSize FROM users WHERE User="L"


# Optional : ratios. The server has to be compiled with ratio support.

# MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="L"
# MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="L"


# Optional : bandwidth throttling.
# The server has to be compiled with throttling support.
# Values are in KB/s .

# MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="L"
# MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="L"

# Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
# 1) You know what you are doing.
# 2) Real and virtual users match.

# MySQLForceTildeExpansion 1


# If you upgraded your tables to transactionnal tables (Gemini,
# BerkeleyDB, Innobase...), you can enable SQL transactions to
# avoid races. Leave this commented if you are using the
# traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.

# MySQLTransactions On

adrian_kaegi
Posts: 25
Joined: 2005-02-19 08:24
 

Re: krieg pueftpd-mysql nicht zum laufen

Post by adrian_kaegi »

ok, das file habe ich!!
laufen würde der sever mittlerweile auch!

ich der datei /etc/pure-ftpd/db/mysql.conf sind die angaben welche du gepostet hast.
in der datei /etc/pure-ftpd/conf/MySQLConfiFile ist lediglich ein link zur obigen config datei, nach mir sollte das so stimmen.

wenn ich nun mit einem client verinden möchte erscheint in der syslog folgende meldung:

Code: Select all

Jan 18 15:59:08 localhost pure-ftpd: (?@dhcp_171_011.zappway.ch) [ERROR] The SQL server seems to be down 
MySQL server läuft, sonnst könnte ich die tabellen schon mal garnicht mit phpmyadmin bearbeiten...

benötige ich noch irgend ein modul?
mod_mysql?

danke für einen tip
gruss adrian
rootsvr
Posts: 538
Joined: 2005-09-02 11:12
 

Re: krieg pueftpd-mysql nicht zum laufen

Post by rootsvr »

nö.. eigentlich nicht.. lauscht der auf nem socket oder an localhost:3306?
adrian_kaegi
Posts: 25
Joined: 2005-02-19 08:24
 

Re: krieg pueftpd-mysql nicht zum laufen

Post by adrian_kaegi »

hier ein auszug aus meiner my.conf

Code: Select all

# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "/var/lib/mysql/my.cnf" to set server-specific options or
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 127.0.0.1