mysql DB erstellt, nun user anlegen

Alles, was den ProFTPD betrifft, kann hier besprochen werden.

mysql DB erstellt, nun user anlegen

Postby superbike » 18. March 2005 15:10

Hallo Leute,
Als Anfänger habe nach der Anleitung http://www.proftpd.de/HowTo__SQL.29.0.html gearbeitet.
Meine Datenbank heisst ProFTP, deren Tabellen (ftp, xfer_stat) seh ich mit phpMyAdmin, sind noch leer.
Blöde Frage: wie leg ich nun Benutzer an :?:
Habs versucht in phpMyAdmin mit ftptest und gleichnamiges Passwort, kann mich aber lokal dann nicht mit ftp://ftptest@local anmelden ... :oops:
User avatar
superbike
 
Posts: 38
Joined: 17. November 2004 15:17

Postby deepsurfer » 18. March 2005 15:43

hat du den proFTP denn neu compiliert ??? wei in der anleitung beschrieben ?
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby superbike » 18. March 2005 16:13

ja,mit ./configure \--with-modules=mod_sql:mod_sql_mysql \--with-includes=/usr/include/mysql \--with-libraries=/usr/lib/mysql
aber folgende Fehler bei make:
Code: Select all
d lib/ && make lib
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/lib'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/lib'
cd src/ && make src
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/src'
make[1]: Nothing to be done for `src'.
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/src'
cd modules/ && make modules
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/modules'
gcc  -DLINUX  -I.. -I../include -I/usr/include/mysql -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:137:19: mysql.h: No such file or directory
mod_sql_mysql.c:164: error: parse error before "MYSQL"
mod_sql_mysql.c:164: warning: no semicolon at end of struct or union
mod_sql_mysql.c: In function `_build_error':
mod_sql_mysql.c:325: warning: implicit declaration of function `mysql_errno'
mod_sql_mysql.c:325: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:327: warning: implicit declaration of function `mysql_error'
mod_sql_mysql.c:327: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `_build_data':
mod_sql_mysql.c:338: error: `MYSQL' undeclared (first use in this function)
mod_sql_mysql.c:338: error: (Each undeclared identifier is reported only once
mod_sql_mysql.c:338: error: for each function it appears in.)
mod_sql_mysql.c:338: error: `mysql' undeclared (first use in this function)
mod_sql_mysql.c:339: error: `MYSQL_RES' undeclared (first use in this function)
mod_sql_mysql.c:339: error: `result' undeclared (first use in this function)
mod_sql_mysql.c:340: error: `MYSQL_ROW' undeclared (first use in this function)
mod_sql_mysql.c:340: error: parse error before "row"
mod_sql_mysql.c:349: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:355: warning: implicit declaration of function `mysql_store_result'
mod_sql_mysql.c:361: warning: implicit declaration of function `mysql_num_rows'
mod_sql_mysql.c:362: warning: implicit declaration of function `mysql_num_fields'
mod_sql_mysql.c:367: error: `row' undeclared (first use in this function)
mod_sql_mysql.c:367: warning: implicit declaration of function `mysql_fetch_row'
mod_sql_mysql.c:377: warning: implicit declaration of function `mysql_free_result'
mod_sql_mysql.c: In function `cmd_open':
mod_sql_mysql.c:430: warning: implicit declaration of function `mysql_ping'
mod_sql_mysql.c:430: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:442: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:442: warning: implicit declaration of function `mysql_init'
mod_sql_mysql.c:444: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:455: warning: implicit declaration of function `mysql_options'
mod_sql_mysql.c:455: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:455: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use inthis function)
mod_sql_mysql.c:457: warning: implicit declaration of function `mysql_real_connect'
mod_sql_mysql.c:457: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:457: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:457: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:457: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:458: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:458: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:459: error: `CLIENT_INTERACTIVE' undeclared (first use in this function)
mod_sql_mysql.c: In function `cmd_close':
mod_sql_mysql.c:553: warning: implicit declaration of function `mysql_close'
mod_sql_mysql.c:553: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:554: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_defineconnection':
mod_sql_mysql.c:620: error: invalid application of `sizeof' to an incomplete type
mod_sql_mysql.c:623: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:624: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:655: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:656: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:657: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:674: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:675: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:676: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:677: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_select':
mod_sql_mysql.c:798: warning: implicit declaration of function `mysql_real_query'
mod_sql_mysql.c:798: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_insert':
mod_sql_mysql.c:912: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_update':
mod_sql_mysql.c:1011: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_query':
mod_sql_mysql.c:1127: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:1142: warning: implicit declaration of function `mysql_field_count'
mod_sql_mysql.c:1142: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_escapestring':
mod_sql_mysql.c:1222: warning: implicit declaration of function `mysql_escape_string'
mod_sql_mysql.c: In function `cmd_checkauth':
mod_sql_mysql.c:1289: warning: implicit declaration of function `make_scrambled_password'
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/modules'
make: *** [modules] Error 2

was stimmt da nicht?
User avatar
superbike
 
Posts: 38
Joined: 17. November 2004 15:17

Postby Wiedmann » 18. March 2005 16:16

mod_sql_mysql.c:137:19: mysql.h: No such file or directory
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby deepsurfer » 18. March 2005 16:35

der fehler liegt wohl darin das das mod_sql nicht dabei ist, weder in xampp noch in meiner testumgebung (redhat 9.1)

Hier ein weiterer LINK mit download von mod_sql
http://www.castaglia.org/proftpd/module ... f_sql.html

du musst nur die ./configure Anweisung erweitern um die pfadangaben von XAMPP und dem richtigen pfad zum mod_sql
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby Wiedmann » 18. March 2005 16:46

der fehler liegt wohl darin das das mod_sql nicht dabei ist, weder in xampp noch in meiner testumgebung (redhat 9.1)

Du solltest dir die Compilermeldungen von oben nochmal durchlesen...
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby deepsurfer » 18. March 2005 16:49

schäääämmmm .... war mal wieder zu voreilig....
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby superbike » 18. March 2005 17:10

jo das mysql.h fehlt in diesem Verzeichnis. Habs woanders, kannich das einfach umkopieren?
User avatar
superbike
 
Posts: 38
Joined: 17. November 2004 15:17

Postby superbike » 18. March 2005 17:25

hab mal die Parameter von ./configure hinterfragt.
Bin zum Schluss gekommen, dass das für mich so heissen muss:
./configure \--with-modules=mod_sql:mod_sql_mysql \--with-includes=/opt/lampp/include/mysql \--with-libraries=/opt/lampp/lib/mysql .
make gibt nun:
Code: Select all
cd lib/ && make lib
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/lib'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/lib'
cd src/ && make src
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/src'
make[1]: Nothing to be done for `src'.
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/src'
cd modules/ && make modules
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/modules'
gcc  -DLINUX  -I.. -I../include -I/opt/lampp/include/mysql -O2 -Wall -c mod_sql_mysql.c
srcdir=. ./glue.sh mod_core.o mod_xfer.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_sql.o mod_sql_mysql.o mod_cap.o
gcc  -DLINUX  -I.. -I../include -I/opt/lampp/include/mysql -O2 -Wall -c module_glue.c
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/modules'
make[1]: Entering directory `/opt/lampp/proftpd-1.2.10/lib/libcap'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/lampp/proftpd-1.2.10/lib/libcap'
gcc -Llib  -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/child.o src/log.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/ident.o src/data.o src/modules.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_cap.o modules/mod_sql_mysql.o modules/mod_sql.o  modules/module_glue.o -L/opt/lampp/lib/mysql -lsupp -lcrypt  -Llib/libcap -lcap  -lm -lz -lmysqlclient
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [proftpd] Error 1

was ist nun mit cannot find -lz :oops: ?
User avatar
superbike
 
Posts: 38
Joined: 17. November 2004 15:17

Postby Wiedmann » 18. March 2005 19:01

Der sucht die Dateien von der zlib, die du natürlich auch haben solltest...

Und du solltest im sagen wo er sie findet.:
Code: Select all
LD_LIBRARY_PATH="/opt/lampp/lib"; export LD_LIBRARY_PATH
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby superbike » 18. March 2005 21:02

Und du solltest im sagen wo er sie findet.:

jo musste zlib devel noch installieren, nun läuft make fehlerfrei durch.... :oops:
Aber anmelden kann ich mich trozdem nicht ...
User avatar
superbike
 
Posts: 38
Joined: 17. November 2004 15:17

Postby Gunah » 12. April 2005 20:59

./configure \--with-modules=mod_sql:mod_sql_mysql \--with-includes=/opt/lampp/include/mysql \--with-libraries=/opt/lampp/lib/mysql


ich verstehe nich weil ich da auch Probiere wo ich das Angeben muss
habe das System Suse Linux 9.1, und weiss nich wo ich das angeben muss oder wie ich das in den Terminal angeben muss :-/

MfG Gunah

Edit:// das wird im Terminal angezeigt
Code: Select all
bash: ./configure: No such file or directory
Gunah
 
Posts: 24
Joined: 18. September 2004 21:15

Postby Gunah » 22. April 2005 22:39

muss ich ProFTPD nochmal nue installen oder wie, ggut das eienr antwoetet
Gunah
 
Posts: 24
Joined: 18. September 2004 21:15


Return to ProFTPD

Who is online

Users browsing this forum: No registered users and 4 guests