Hallo ihrs,
ich habe seit neuem einige merkwürdige Probleme mit meinem Webserver. Zabbix-Grafiken können nicht mehr geladen werden und bei Worpress ist das Layout völlig versemmelt.
Ich tippte auf fehlende Abhängigkeiten, irgendwas, was mit Grafiken zu tun hat und versuchte zunächst eine Reinstallation. Dabei fiel mir auf, dass meine Session in dem Wordpress nicht gelöscht wurde. Ich versuchte eine Komplettdeinstallation, doch ein "aptitude remove apache2 php5" löschte nur die Perl-Module und das Zabbix-Frontend. Aber wenigstens tat es das. Denn weder der Apache noch PHP5 wurden gelöscht.
Ich versuchte es direkt: "aptitute remove apache2 && aptitude remove php5". Das Reultat: Der Webserer läuft fröhlich weiter und liefert PHP-generierte Docs. Die CLI von PHP läuft ebenfalls.
Ich habe ein paar Befehle in die Konsole gehämmert:
root@kronos:~# aptitude remove apache2
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
root@kronos:~# aptitude show apache2
Package: apache2
State: not installed
Version: 2.2.15-6
Priority: optional
Section: httpd
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Uncompressed Size: 36.9k
Depends: apache2-mpm-worker (= 2.2.15-6) | apache2-mpm-prefork (= 2.2.15-6) | apache2-mpm-event (= 2.2.15-6) | apache2-mpm-itk (= 2.2.15-6), apache2.2-common (= 2.2.15-6)
Provided by: apache2-mpm-event, apache2-mpm-itk, apache2-mpm-prefork, apache2-mpm-worker
Description: Apache HTTP Server metapackage
The Apache Software Foundation's goal is to build a secure, efficient and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the
Internet.
It features support for HTTPS, virtual hosting, CGI, SSI, IPv6, easy scripting and database integration, request/response filtering, many flexible authentication schemes, and more.
Homepage: http://httpd.apache.org/
root@kronos:~# /etc/init.d/apache2 status
Apache2 is running (pid 29627).
Alles anzeigen
Der Apache2 wird nicht entfernt, weil er entfernt ist. Der Status wird als "nicht installiert" angegeben. Jedoch läuft er fleißig und eine Statusüberprüfung bestätigt dies.
Das gleiche Spiel könnte ich wahrscheinlich mit PHP wiederholen.
Habe ich da was verpasst?
Ich sichere mal meine php.ini und versuche dort ein purge. Mal sehen, was draus wird. Aber eig. sollte ein remove doch reichen, oder?
EDIT: Noch mal ein wenig mit PHP5 gespielt:
root@kronos:~# aptitude purge php5
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
root@kronos:~# aptitude install php5
The following NEW packages will be installed:
php5
0 packages upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 0B/1072B of archives. After unpacking 20.5kB will be used.
Selecting previously deselected package php5.
(Reading database ... 94253 files and directories currently installed.)
Unpacking php5 (from .../archives/php5_5.3.2-2_all.deb) ...
Setting up php5 (5.3.2-2) ...
root@kronos:~# aptitude purge php5
The following packages will be REMOVED:
php5{p}
0 packages upgraded, 0 newly installed, 1 to remove and 18 not upgraded.
Need to get 0B of archives. After unpacking 20.5kB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 94247 files and directories currently installed.)
Removing php5 ...
root@kronos:~# aptitude show php5
Package: php5
State: not installed
Version: 5.3.2-2
Priority: optional
Section: php
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Uncompressed Size: 20.5k
Depends: libapache2-mod-php5 (>= 5.3.2-2) | libapache2-mod-php5filter (>= 5.3.2-2) | php5-cgi (>= 5.3.2-2), php5-common (>= 5.3.2-2)
Description: server-side, HTML-embedded scripting language (metapackage)
This package is a metapackage that, when installed, guarantees that you have at least one of the three server-side versions of the PHP5 interpreter installed. Removing this package won't remove PHP5 from
your system, however it may remove other packages that depend on this one.
PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers
to write dynamically generated pages quickly. This version of PHP5 was built with the Suhosin patch.
Homepage: http://www.php.net/
root@kronos:~# php5 -r 'echo time(); '
1279585674
Alles anzeigen
EDIT2: Mir ist gerade aufgefallen, dass es sich immer nur im ein paar kB an Daten handelt, die er angeblich installiert und deinstalliert.