Titel: Proftp_admin Fehler Beitrag von: Lu Chen am 24. Januar 2006, 15:09:14 hallo zusammen...
habe proftpd installiert, und wollte nun mit proftpd_admin die ganze sache von einem anderen rechner über firefox steuern... leider kommt folgender fehler, und ich weiss nicht weiter.... do_select_db Selecting database failed with errors: No database selected hier mal meine include_config.php Code: <?php $config_enforce_oldstyle_config = false; $config_proftp_admin_version = file_get_contents('VERSION'); //$config_quota_quotatypes = array( "user", "group", "class", "all" ); $config_quota_quotatypes = array( "user" ); $config_valid_shells = file('/etc/shells'); if (isOldPHP()) { require_once('include_config_oldstyle.php'); } else { require_once('include_config_utils.php'); require_once('include_util.php'); $configuration = load_configuration(); $config_sysinfo_only = @$configuration['user_interface']['sysinfo_only']; $config_database_type = @$configuration['database']['type']; $config_database_host = @$configuration['database']['localhost']; $config_database_user = @$configuration['database']['root']; $config_database_passord = @$configuration['database']['x2811']; $config_database_database = @$configuration['database']['proftpd_admin']; $config_language = @$configuration['user_interface']['language']; $config_skip_mpoints = @(array)$configuration['user_interface']['skip_mountpoints']['mountpoint']; $config_ftp_default_home = @$configuration['proftpd']['create_users']['default_homedirectory']; $config_createuser_command = @$configuration['proftpd']['create_users']['createuser_command']; $config_ftp_root = @$configuration['proftpd']['generic']['ftp_root']; $config_ftp_sections_down = @(array)$configuration['user_interface']['sections']['download']; $config_ftp_sections_up = @(array)$configuration['user_interface']['sections']['upload']; $config_toplist_num_names = @$configuration['user_interface']['toplist_num_names']; $config_toplist_padlist = (bool)@$configuration['user_interface']['toplist_padlist']; $config_userview_logitems = @$configuration['user_interface']['userview_logitems']; $config_userview_striplogpath = (bool)@$configuration['user_interface']['userview_striplogpath']; $config_default_shell = @$configuration['proftpd']['create_users']['default_shell']; $config_style_name = @$configuration['user_interface']['style']; $config_path_to_who = @$configuration['file_paths']['generic']['who']; $config_path_to_ps = @$configuration['file_paths']['generic']['ps']; $config_path_to_df = @$configuration['file_paths']['generic']['df']; $config_path_to_sysctl = @$configuration['file_paths']['generic']['sysctl']; $config_path_to_kernel_config = @$configuration['file_paths']['generic']['kernel_configuration']; $config_path_to_ftpwho = @$configuration['file_paths']['generic']['ftpwho']; $config_path_to_proftpd = @$configuration['file_paths']['generic']['proftpd']; $path_to_ftpadmin_utils = @$configuration['file_paths']['generic']['ftpadmin_utils']; $config_ext['vhosts']['enabled'] = @$configuration['extensions']['vhosts']['enabled']; $config_ext['quota']['enabled'] = @$configuration['extensions']['quota']['enabled']; $config_ext['quota']['type'] = @$configuration['extensions']['quota']['type']; $config_ext['quota']['limittype'] = @$configuration['extensions']['quota']['limit_type']; $config_ext['quota']['per_session'] = @$configuration['extensions']['quota']['per_session']; $config_ext['quota']['down_files'] = @$configuration['extensions']['quota']['download_file_limit']; $config_ext['quota']['up_files'] = @$configuration['extensions']['quota']['upload_file_limit']; $config_ext['quota']['trans_files'] = @$configuration['extensions']['quota']['transferred_file_limit']; $config_ext['quota']['down_mb'] = byte2mb(@$configuration['extensions']['quota']['download_byte_limit']); $config_ext['quota']['up_mb'] = byte2mb(@$configuration['extensions']['quota']['upload_byte_limit']); $config_ext['quota']['trans_mb'] = byte2mb(@$configuration['extensions']['quota']['transferred_byte_limit']); } function isOldPHP() { global $config_enforce_oldstyle_config; if ($config_enforce_oldstyle_config == true) return true; $version = explode('.', phpversion()); if ($version[0] < 5) return true; else return false; } ?> kann mir jemand helfen.... thx Titel: Proftp_admin Fehler Beitrag von: VolGas am 25. Januar 2006, 04:46:02 Hallo,
mit dem PHP-File kann man gar nichts anfangen, mit der Fehlermeldung schon, denn da steht es ja klipp und klar: es fehlt die Angabe der Datenbank. Wahrscheinlich steht in irgend einer Datei, welcher Server, Datenbank, User, Passwort, etc. benutzt werden soll. Ich kenne proftpd_admin nicht, daher kann ich dazu leider nicht mehr sagen. Kurz zum Verständnis: In SQL werden Daten in sog. "Tabellen" abgelegt und diese wiederum sind organisiert in "Datenbanken". Zum Verbinden mit dem SQL-Server muß man ihn genau "adressieren" und sich dort mit einem zuvor angelegtem SQL-Usernamen und -passwort anmelden. Zumindest eines davon hat gefehlt. mfg. VolGas Titel: Proftp_admin Fehler Beitrag von: Anonymous am 25. Januar 2006, 07:06:07 richtig es steht in dieser datei.... und da steht alles drin.... meiner meinung nach auch richtig.... und nach der installations anleitung ist das die einzige datei ausser proftpd.conf die solche einstellung bekommt....
Titel: Proftp_admin Fehler Beitrag von: user72 am 03. Februar 2006, 20:13:01 das gleiche hab ich auch , in der anleitung steht das man was eintragen muss , was aber nicht geht
Code: The next thing you'll have to do i edit proFTPd Admin's own configuration file ("include_config.php") to your liking - the only thing that actually does need editing i where it says $MySQLuser and $MySQLpassord. You can enter "root" as the username, as well the password you set when we installed MySQL (using root-access isn't recommended, but then again this tool was meant to be accessible to anyone else than you anyway). Titel: Proftp_admin Fehler Beitrag von: VolGas am 03. Februar 2006, 20:30:35 Ich hätte es einmal damit versucht:
Code: $config_database_user = 'MeinUserName'; $config_database_passord = 'meinPasswort'; $config_database_database = 'meineDB'; ... Aber ob das so für das System vorgesehen ist, weiß ich nicht. Dieses Forum ist nur gedacht für den ProFTPD-Server, nicht für irgendwelche Administrations-Scripte. Wendet Euch doch bitte an ein/das entsprechendes Forum oder den/die Verfasser des Systems. mfg. VolGas Titel: Proftp_admin Fehler Beitrag von: user72 am 03. Februar 2006, 23:43:22 thx für die mühe , ich hab die datei gefunden wo die zugansdaten für mysql eingetragen werten , jetzt gehts
include_config_oldstyle.php muss bearbeitet werden |