Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: sourceserver.info. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

1

Samstag, 22. Juni 2013, 15:30

PHPMyAdmin Error

Hallöchen.

Ich wollte mir auf den Server phpmyadmin installieren

Quellcode

1
apt-get install phpmyadmin

1.) Browser -> IP/phpmyadmin/ ist nichts
2.) Die php datein sind nicht im /var/www/ Pfad sondern im /usr/share/phpmyadmin/
-> verschieben nach /var/www/ lässt bei IP/phpmyadmin/ zwar die Seite erscheinen, aber bei der anlemdung komtm immer Error #1045
-> die datei in der apache.conf angepasst gehabt selber Fehler.
3.) Bei der Reinstallation kam auch immer nur der Fehler.

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 An error occurred while removing the database:
 â
 â ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
 â password: YES)
 â
 â For some reason it was not possible to perform some of the actions
 â necessary to remove the database for phpmyadmin.  At this point you have
 â two options: you can find out what has caused this error and fix it, or
 â you can refuse the offer for help removing the database (the latter
 â implies you will have to remove the database manually).
 â
 â If at this point you choose "retry", you will be prompted with all the
 â configuration questions once more and another attempt will be made at
 â performing the operation. "retry (skip questions)" will immediately
 â attempt the operation again, skipping all questions.  If you choose
 â "abort", the operation will fail and you will need to downgrade,
 â reinstall, reconfigure this package, or otherwise manually intervene to
 â continue using it.
 â
 â                                  <Ok>


und ganz deinstallieren kann man es auch nicht?! Acces denied Error #1045

Hat jemand eine Idee. Ich bin da nicht so gut vertraut mit :D

MfG

PS:

Quellcode

1
2
 cat /proc/version
Linux version 2.6.32-5-amd64 (Debian 2.6.32-39squeeze1) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Jan 9 20:49:59 UTC 2012
Come to the dark side,
we have cookies ;)

Lacrimosa99

Fortgeschrittener

Beiträge: 275

Wohnort: Leipzig

Beruf: IT-Systemintegrator

Rootserver vorhanden: Ja

  • Nachricht senden

2

Samstag, 22. Juni 2013, 15:36

Warum nimmst das alte phpMyAdmin System aus dem Debian Repos?

www.phpmyadmin.net wäre die bessere Wahl... setz ne Subdomain auf und installier die aktuelle Version... die alte kannst mit "aptitude remove phpmyadmin" oder "apt-get autoremove --purge phpmyadmin" wieder löschen (als Root ausführen)...

MfG




Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

3

Samstag, 22. Juni 2013, 15:47

Beim deinstallieren kommt leider wie gesagt immer folgender Fehler:
aptitude remove phpmyadmin:

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The following packages will be REMOVED:
  phpmyadmin
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 17.7 MB will be freed.
(Reading database ... 35829 files and directories currently installed.)
Removing phpmyadmin ...
/var/lib/dpkg/info/phpmyadmin.prerm: line 5: /usr/share/dbconfig-common/dpkg/prerm.mysql: No such file or directory
dpkg: error processing phpmyadmin (--remove):
 subprocess installed pre-removal script returned error exit status 1
configured to not write apport reports
                                      /var/lib/dpkg/info/phpmyadmin.postinst: line 35: /usr/share/dbconfig-common/dpkg/postinst.mysql: No such file or directory
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

bzw:
apt-get autoremove --purge phpmyadmin

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 An error occurred while removing the database:
 â
 â ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
 â password: YES)
 â
 â For some reason it was not possible to perform some of the actions
 â necessary to remove the database for phpmyadmin.  At this point you have
 â two options: you can find out what has caused this error and fix it, or
 â you can refuse the offer for help removing the database (the latter
 â implies you will have to remove the database manually).
 â
 â If at this point you choose "retry", you will be prompted with all the
 â configuration questions once more and another attempt will be made at
 â performing the operation. "retry (skip questions)" will immediately
 â attempt the operation again, skipping all questions.  If you choose
 â "abort", the operation will fail and you will need to downgrade,
 â reinstall, reconfigure this package, or otherwise manually intervene to
 â continue using it.
 â
 â                                  <Ok>

Als root eingelogt und ausgeführt.

Edit:
Warum nimmst das alte phpMyAdmin System aus dem Debian Repos?

Ich dachte, dass es egal ist soweit :D
Come to the dark side,
we have cookies ;)

Lacrimosa99

Fortgeschrittener

Beiträge: 275

Wohnort: Leipzig

Beruf: IT-Systemintegrator

Rootserver vorhanden: Ja

  • Nachricht senden

4

Samstag, 22. Juni 2013, 15:55

dann versuch bitte "dpkg --force-all -r phpmyadmin"... dieser Befehl sollte 100% klappen... ist aber net ganz ungefährlich ;)

Schau auch bitte warum der Root MySQL Zugang nicht funktioniert... entweder PW falsch eingegeben oder nicht sauber ausgeführt.. könnte auch "hacked" sein, was ich aber nicht hoffe ;)

MfG




MadMakz

Super Moderator

Beiträge: 1 878

Wohnort: ~#

Rootserver vorhanden: Ja

  • Nachricht senden

5

Samstag, 22. Juni 2013, 16:20

Schon klar das sich die Dist-Versionen zu den herrkömmlichen unterscheiden?

Config wird aus /etc/phpmyadmin gelesen.

Angesprochen wird phpmyadmin über einen vHost bzw. alias mit pfad /usr/share/phpmyadmin/ (/usr/share ist immer für alle Nutzer lesbar). Ansonnsten einen Symlink setzten aber nicht einfach woanders hin kopieren, darin besteht kein Sinn.

Wenn man nicht irgendwelche Specialfeatures braucht reichen die Repo-Versionen vollkommen. Sicherheitspatche werden ja portiert.

Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

6

Samstag, 22. Juni 2013, 16:23

klappt auch nicht ;D

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 apt-get autoremove --purge phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  phpmyadmin*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 17.7 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 35829 files and directories currently installed.)
Removing phpmyadmin ...
/var/lib/dpkg/info/phpmyadmin.prerm: line 5: /usr/share/dbconfig-common/dpkg/prerm.mysql: No such file or directory
dpkg: error processing phpmyadmin (--purge):
 subprocess installed pre-removal script returned error exit status 1
configured to not write apport reports
                                      /var/lib/dpkg/info/phpmyadmin.postinst: line 35: /usr/share/dbconfig-common/dpkg/postinst.mysql: No such file or directory
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@rs206395:/home# dpkg --force-all -r phpmyadmin
(Reading database ... 35829 files and directories currently installed.)
Removing phpmyadmin ...
/var/lib/dpkg/info/phpmyadmin.prerm: line 5: /usr/share/dbconfig-common/dpkg/prerm.mysql: No such file or directory
dpkg: error processing phpmyadmin (--remove):
 subprocess installed pre-removal script returned error exit status 1
/var/lib/dpkg/info/phpmyadmin.postinst: line 35: /usr/share/dbconfig-common/dpkg/postinst.mysql: No such file or directory
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 phpmyadmin


Psswort neu setzten klappt aber auch nicht :D

Spoiler Spoiler

Quellcode

1
2
3
4
5
mysql> mysql use
    -> update user set password=PASSWORD("") where user='root';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql use
update user set password=PASSWORD("") where user='root'' at line 1
mysql>
Come to the dark side,
we have cookies ;)

MadMakz

Super Moderator

Beiträge: 1 878

Wohnort: ~#

Rootserver vorhanden: Ja

  • Nachricht senden

7

Samstag, 22. Juni 2013, 16:26

aptitude reinstall dbconfig-common

dann sollte er über phpmyadmin mäckern und das es, als "solution", entfehrnt werden soll -> y

wenn nicht dann nochmals

aptitude purge phpmyadmin

oder dpkg --purge phpmyadmin

Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

8

Samstag, 22. Juni 2013, 16:34

Symlink geht wie genau?
ln -s <destination file or directory> <name of the symlink>
ln -s /usr/share/phpmyadmin/ /phpmyadmin/

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 aptitude purge phpmyadmin
The following packages will be REMOVED:
  phpmyadmin{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 17.7 MB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 35829 files and directories currently installed.)
Removing phpmyadmin ...
/var/lib/dpkg/info/phpmyadmin.prerm: line 5: /usr/share/dbconfig-common/dpkg/prerm.mysql: No such file or directory
dpkg: error processing phpmyadmin (--purge):
 subprocess installed pre-removal script returned error exit status 1
configured to not write apport reports
                                      /var/lib/dpkg/info/phpmyadmin.postinst: line 35: /usr/share/dbconfig-common/dpkg/postinst.mysql: No such file or directory
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Come to the dark side,
we have cookies ;)

MadMakz

Super Moderator

Beiträge: 1 878

Wohnort: ~#

Rootserver vorhanden: Ja

  • Nachricht senden

9

Samstag, 22. Juni 2013, 16:37

Linux basics vermittel ich hier nicht, dazu sind andere Foren da.

Erstmal ist das PRoblem auch das dbonfig-common geschrottet ist. Durch fehlerhafte DeInstallation von phpMyAdmin oder etwas anderes zuvor.

Hast du aptitude reinstall dbconfig-common gemacht?

Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

10

Samstag, 22. Juni 2013, 16:40

ja, kommen leider immer die selben Fehler.
Also eher der Annahme, das ich den Server einfach neu aufsetzten soll?
Come to the dark side,
we have cookies ;)

MadMakz

Super Moderator

Beiträge: 1 878

Wohnort: ~#

Rootserver vorhanden: Ja

  • Nachricht senden

11

Samstag, 22. Juni 2013, 16:42

Andernfalls noch probieren phpmyadmin zurückzusetzten

aptitude reinstall phpmyadmin && aptitude purge phpmyadmin

wenn das nicht geht muss ich mich selber erst noch einmal schlau machen.

Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

12

Samstag, 22. Juni 2013, 16:47

Danke erstmal für die schnelle Hilfe ;)
Klappt leider auch nicht.

Ich werde mich erstmal hinsetzen udn ein wenig google :D
oder weiter fragen :D
Come to the dark side,
we have cookies ;)

Pitbull

Schüler

Beiträge: 125

Wohnort: Oldenburg

Rootserver vorhanden: Ja

  • Nachricht senden

13

Sonntag, 23. Juni 2013, 02:25

Hast du auch in der nano /etc/apache2/conf.d/phpmyadmin.conf

Code:
# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
[...]

Drin stehen?

Blacksilver

Fortgeschrittener

  • »Blacksilver« ist der Autor dieses Themas

Beiträge: 298

Wohnort: 127.0.0.1

Beruf: FISI

Rootserver vorhanden: Nein

  • Nachricht senden

14

Sonntag, 23. Juni 2013, 03:40

es wurde keine Datei erstellt beim installieren, die so heißt.
Könntest du mir die ganze Datei zeigen/schicken?

Edit:
Lautet die so?

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
        Options Indexes FollowSymLinks
        DirectoryIndex index.php

        <IfModule mod_php5.c>
                AddType application/x-httpd-php .php
                php_flag magic_quotes_gpc Off
                php_flag track_vars On
                php_flag register_globals Off
                php_value include_path .
        </IfModule>

</Directory>

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
    <IfModule mod_authn_file.c>
    AuthType Basic
    AuthName "phpMyAdmin Setup"
    AuthUserFile /etc/phpmyadmin/htpasswd.setup
    </IfModule>
    Require valid-user
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
    Order Deny,Allow
    Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
    Order Deny,Allow
    Deny from All
</Directory>


Für andere habe ich folgendes gemacht:

Spoiler Spoiler

Zitat


/var/lib/dpkg/info/phpmyadmin.prerm

Diese Zeilen auskommentieren:

Code: Alles auswählen

Quellcode

1
2
3
4
5
    . /usr/share/debconf/confmodule
    . /usr/share/dbconfig-common/dpkg/prerm.mysql
    if ! dbc_go phpmyadmin $@ ; then
        echo 'Automatic configuration using dbconfig-common failed!'
    fi



Danach mit "dpkg -P phpmyadmin" durchlaufen.

Unter /var/lib/dpkg/info herum fummeln kann boese enden.


RE-EDIT:
Fast Vergessen :D
Jetzt geht es ;)

Danke nochmal :))
Come to the dark side,
we have cookies ;)

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Blacksilver« (23. Juni 2013, 05:50)


Ähnliche Themen