PHP geht nach Apache-Update nicht mehr



Fantasyelf

New Member
Hallo,

seit gestern habe ich ein Problem.

Serverinfos:
- Stratoserver
- Ubuntu 10.04 64-Bit
- Plesk 10.4.4
- Apache 2 2.2.14 mit fcgi
- PHP 5.3.2

Der Server hat wie üblich die automatischen Updates gemacht. Aber diesmal muß was schief gegangen sein. Der Apache wurde diesmal geupdatet. Seit dem gehen keine PHP-Seiten mehr. Im Anhang befindet sich die dpkg.txt.
In der error.log habe ich nichts dazu gefunden.

Lösungsversuch:
Nach genauerem Suchen habe ich herausgefunden, das in
Code:
/etc/apache2/mods-enabled
zwei neue Dateien sind (mit dem Datum vom Update): cgid.conf und cgid.load
Mit
Code:
a2dismod cgid
habe ich das Modul deaktiviert und neugestartet, aber es hat nicht geholfen.

Kann man mit ein paar Konsolenbefehlen überprüfen, woran es genau liegt? So genau kenne ich mich da nicht aus. Ich würde mich freuen, wenn mir jemand helfen könnte.
 

Attachments

Code:
ls -l /etc/apache2/mods-enabled/
Code:
find /etc/apache2/
 
Wo die Dateien sind weiß ich, habe sie über
Code:
mc
gefunden.
Ich dachte eher an solche Befehle, die eine Webseitenanfrage simulieren und einen Fehler ausgeben. Gibt es sowas überhaupt?
 
Bitte führe die beiden Befehle von meinem vorigem Post aus und poste die Ausgabe hier.
 
Ach so, hier die Ausgabe zu den 2 Befehlen.

Code:
ls -l /etc/apache2/mods-enabled/
insgesamt 4
lrwxrwxrwx 1 root root 30 2012-02-24 18:34 actions.conf -> ../mods-available/actions.conf
lrwxrwxrwx 1 root root 30 2012-02-24 18:34 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root 28 2012-02-24 18:34 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 2012-02-24 18:34 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 2012-02-24 18:34 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 34 2012-02-24 19:19 auth_digest.load -> ../mods-available/auth_digest.load
lrwxrwxrwx 1 root root 33 2012-02-24 18:34 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 2012-02-24 18:34 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 2012-02-24 18:34 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 2012-02-24 18:34 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 2012-02-24 18:34 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 2012-02-24 18:34 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 2012-02-24 18:34 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 25 2012-02-24 18:35 bw.load -> ../mods-available/bw.load
lrwxrwxrwx 1 root root 27 2012-07-22 11:47 cgid.conf -> ../mods-available/cgid.conf
lrwxrwxrwx 1 root root 27 2012-07-22 11:47 cgid.load -> ../mods-available/cgid.load
lrwxrwxrwx 1 root root 26 2012-02-24 18:34 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 29 2012-02-24 19:19 dav_fs.conf -> ../mods-available/dav_fs.conf
lrwxrwxrwx 1 root root 29 2012-02-24 19:19 dav_fs.load -> ../mods-available/dav_fs.load
lrwxrwxrwx 1 root root 26 2012-02-24 19:19 dav.load -> ../mods-available/dav.load
lrwxrwxrwx 1 root root 31 2012-02-24 19:19 dav_lock.load -> ../mods-available/dav_lock.load
lrwxrwxrwx 1 root root 30 2012-02-24 18:34 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 2012-02-24 18:34 deflate.load -> ../mods-available/deflate.load
-rw-r--r-- 1 root root 166 2012-02-24 18:36 dir.conf
lrwxrwxrwx 1 root root 26 2012-02-24 18:34 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 2012-02-24 18:34 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 30 2012-03-08 13:44 expires.load -> ../mods-available/expires.load
lrwxrwxrwx 1 root root 28 2012-02-24 18:35 fcgid.conf -> ../mods-available/fcgid.conf
lrwxrwxrwx 1 root root 28 2012-02-24 18:35 fcgid.load -> ../mods-available/fcgid.load
lrwxrwxrwx 1 root root 30 2012-02-24 18:36 include.load -> ../mods-available/include.load
lrwxrwxrwx 1 root root 25 2012-02-24 18:35 jk.load -> ../mods-available/jk.load
lrwxrwxrwx 1 root root 27 2012-02-24 18:34 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 2012-02-24 18:34 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 2012-02-24 18:34 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 2012-02-24 18:34 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 2012-02-24 18:34 perl.load -> ../mods-available/perl.load
lrwxrwxrwx 1 root root 29 2012-02-24 18:34 python.load -> ../mods-available/python.load
lrwxrwxrwx 1 root root 33 2012-02-24 18:34 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 2012-02-24 18:34 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 30 2012-02-24 18:36 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 31 2012-02-24 18:34 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 2012-02-24 18:34 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 26 2012-02-24 18:36 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 2012-02-24 18:36 ssl.load -> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 2012-02-24 18:34 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 2012-02-24 18:34 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 2012-02-24 18:36 suexec.load -> ../mods-available/suexec.load
lrwxrwxrwx 1 root root 30 2012-02-24 18:36 userdir.conf -> ../mods-available/userdir.conf
lrwxrwxrwx 1 root root 30 2012-02-24 18:36 userdir.load -> ../mods-available/userdir.load

Code:
find /etc/apache2/
/etc/apache2/
/etc/apache2/magic
/etc/apache2/ports.conf
/etc/apache2/mods-available
/etc/apache2/mods-available/substitute.load
/etc/apache2/mods-available/deflate.load
/etc/apache2/mods-available/info.conf
/etc/apache2/mods-available/fcgid.conf
/etc/apache2/mods-available/include.load
/etc/apache2/mods-available/status.conf
/etc/apache2/mods-available/mem_cache.load
/etc/apache2/mods-available/authz_default.load
/etc/apache2/mods-available/cgi.load
/etc/apache2/mods-available/cache.load
/etc/apache2/mods-available/suexec.load
/etc/apache2/mods-available/bw.load
/etc/apache2/mods-available/authz_dbm.load
/etc/apache2/mods-available/auth_digest.load
/etc/apache2/mods-available/proxy_ajp.load
/etc/apache2/mods-available/mime.load
/etc/apache2/mods-available/mime_magic.conf
/etc/apache2/mods-available/reqtimeout.conf
/etc/apache2/mods-available/proxy_balancer.load
/etc/apache2/mods-available/rewrite.load
/etc/apache2/mods-available/reqtimeout.load
/etc/apache2/mods-available/authn_default.load
/etc/apache2/mods-available/speling.load
/etc/apache2/mods-available/dav_lock.load
/etc/apache2/mods-available/disk_cache.conf
/etc/apache2/mods-available/info.load
/etc/apache2/mods-available/userdir.load
/etc/apache2/mods-available/alias.conf
/etc/apache2/mods-available/log_forensic.load
/etc/apache2/mods-available/alias.load
/etc/apache2/mods-available/unique_id.load
/etc/apache2/mods-available/proxy.conf
/etc/apache2/mods-available/ssl.conf
/etc/apache2/mods-available/asis.load
/etc/apache2/mods-available/imagemap.load
/etc/apache2/mods-available/headers.load
/etc/apache2/mods-available/setenvif.load
/etc/apache2/mods-available/deflate.conf
/etc/apache2/mods-available/authz_owner.load
/etc/apache2/mods-available/auth_basic.load
/etc/apache2/mods-available/charset_lite.load
/etc/apache2/mods-available/jk.load
/etc/apache2/mods-available/expires.load
/etc/apache2/mods-available/actions.conf
/etc/apache2/mods-available/ldap.load
/etc/apache2/mods-available/authz_host.load
/etc/apache2/mods-available/version.load
/etc/apache2/mods-available/dir.load
/etc/apache2/mods-available/cgid.conf
/etc/apache2/mods-available/authn_anon.load
/etc/apache2/mods-available/cern_meta.load
/etc/apache2/mods-available/mime_magic.load
/etc/apache2/mods-available/negotiation.conf
/etc/apache2/mods-available/mem_cache.conf
/etc/apache2/mods-available/file_cache.load
/etc/apache2/mods-available/perl.load
/etc/apache2/mods-available/fcgid.load
/etc/apache2/mods-available/mime.conf
/etc/apache2/mods-available/dav_fs.load
/etc/apache2/mods-available/authnz_ldap.load
/etc/apache2/mods-available/dbd.load
/etc/apache2/mods-available/autoindex.conf
/etc/apache2/mods-available/cgid.load
/etc/apache2/mods-available/authn_file.load
/etc/apache2/mods-available/authn_dbd.load
/etc/apache2/mods-available/authn_alias.load
/etc/apache2/mods-available/authz_user.load
/etc/apache2/mods-available/ident.load
/etc/apache2/mods-available/filter.load
/etc/apache2/mods-available/actions.load
/etc/apache2/mods-available/negotiation.load
/etc/apache2/mods-available/dav.load
/etc/apache2/mods-available/proxy_ftp.load
/etc/apache2/mods-available/status.load
/etc/apache2/mods-available/vhost_alias.load
/etc/apache2/mods-available/authn_dbm.load
/etc/apache2/mods-available/ssl.load
/etc/apache2/mods-available/dir.conf
/etc/apache2/mods-available/proxy_http.load
/etc/apache2/mods-available/usertrack.load
/etc/apache2/mods-available/dav_fs.conf
/etc/apache2/mods-available/proxy.load
/etc/apache2/mods-available/proxy_scgi.load
/etc/apache2/mods-available/authz_groupfile.load
/etc/apache2/mods-available/dump_io.load
/etc/apache2/mods-available/env.load
/etc/apache2/mods-available/python.load
/etc/apache2/mods-available/ext_filter.load
/etc/apache2/mods-available/autoindex.load
/etc/apache2/mods-available/disk_cache.load
/etc/apache2/mods-available/proxy_connect.load
/etc/apache2/mods-available/setenvif.conf
/etc/apache2/mods-available/userdir.conf
/etc/apache2/httpd.conf
/etc/apache2/workers.properties
/etc/apache2/httpd.pem
/etc/apache2/envvars
/etc/apache2/conf.d
/etc/apache2/conf.d/localized-error-pages
/etc/apache2/conf.d/zz010_psa_httpd.conf
/etc/apache2/conf.d/extendedstatus
/etc/apache2/conf.d/security
/etc/apache2/conf.d/charset
/etc/apache2/sites-enabled
/etc/apache2/sites-enabled/000-default
/etc/apache2/sites-available
/etc/apache2/sites-available/default-ssl
/etc/apache2/sites-available/default
/etc/apache2/apache2.conf
/etc/apache2/mods-enabled
/etc/apache2/mods-enabled/deflate.load
/etc/apache2/mods-enabled/fcgid.conf
/etc/apache2/mods-enabled/include.load
/etc/apache2/mods-enabled/status.conf
/etc/apache2/mods-enabled/authz_default.load
/etc/apache2/mods-enabled/cgi.load
/etc/apache2/mods-enabled/suexec.load
/etc/apache2/mods-enabled/bw.load
/etc/apache2/mods-enabled/auth_digest.load
/etc/apache2/mods-enabled/mime.load
/etc/apache2/mods-enabled/reqtimeout.conf
/etc/apache2/mods-enabled/rewrite.load
/etc/apache2/mods-enabled/reqtimeout.load
/etc/apache2/mods-enabled/dav_lock.load
/etc/apache2/mods-enabled/userdir.load
/etc/apache2/mods-enabled/alias.conf
/etc/apache2/mods-enabled/alias.load
/etc/apache2/mods-enabled/ssl.conf
/etc/apache2/mods-enabled/setenvif.load
/etc/apache2/mods-enabled/deflate.conf
/etc/apache2/mods-enabled/auth_basic.load
/etc/apache2/mods-enabled/jk.load
/etc/apache2/mods-enabled/expires.load
/etc/apache2/mods-enabled/actions.conf
/etc/apache2/mods-enabled/authz_host.load
/etc/apache2/mods-enabled/dir.load
/etc/apache2/mods-enabled/cgid.conf
/etc/apache2/mods-enabled/negotiation.conf
/etc/apache2/mods-enabled/perl.load
/etc/apache2/mods-enabled/fcgid.load
/etc/apache2/mods-enabled/mime.conf
/etc/apache2/mods-enabled/dav_fs.load
/etc/apache2/mods-enabled/autoindex.conf
/etc/apache2/mods-enabled/cgid.load
/etc/apache2/mods-enabled/authn_file.load
/etc/apache2/mods-enabled/authz_user.load
/etc/apache2/mods-enabled/actions.load
/etc/apache2/mods-enabled/negotiation.load
/etc/apache2/mods-enabled/dav.load
/etc/apache2/mods-enabled/status.load
/etc/apache2/mods-enabled/ssl.load
/etc/apache2/mods-enabled/dir.conf
/etc/apache2/mods-enabled/dav_fs.conf
/etc/apache2/mods-enabled/authz_groupfile.load
/etc/apache2/mods-enabled/env.load
/etc/apache2/mods-enabled/python.load
/etc/apache2/mods-enabled/autoindex.load
/etc/apache2/mods-enabled/setenvif.conf
/etc/apache2/mods-enabled/userdir.conf
 
Code:
cat /etc/apache2/mods-enabled/dir.conf
<IfModule mod_dir.c>

DirectoryIndex at_domains_index.html index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml index.cfm

</IfModule>
 
Code:
dpkg -l | egrep '(apache|php)'
ii apache2 2.2.14-5ubuntu8.9 Apache HTTP Server metapackage
ii apache2-mpm-worker 2.2.14-5ubuntu8.9 Apache HTTP Server - high speed threaded mod
ii apache2-utils 2.2.14-5ubuntu8.8 utility programs for webservers
ii apache2.2-bin 2.2.14-5ubuntu8.9 Apache HTTP Server common binary files
ii apache2.2-common 2.2.14-5ubuntu8.9 Apache HTTP Server common files
ii libapache-asp-perl 2.59-5.94884 Apache::ASP - Active Server Pages for Apache
ii libapache2-mod-bw 0.8-11090515 Bandwidth Limiter module for Apache2
ii libapache2-mod-fcgid-psa 2.3.6-11081018 Alternative FastCGI module for Apache2
ii libapache2-mod-jk 1:1.2.28-2 Apache 2 connector for the Tomcat Java servl
ii libapache2-mod-perl2 2.0.4-6ubuntu1 Integration of perl with the Apache2 web ser
ii libapache2-mod-python 3.3.1-8ubuntu2 Python-embedding module for Apache 2
ii libapache2-reload-perl 0.10-2 Reload Perl modules when changed on disk
ii php5 5.3.2-1ubuntu4.17 server-side, HTML-embedded scripting languag
ii php5-cgi 5.3.2-1ubuntu4.17 server-side, HTML-embedded scripting languag
ii php5-cli 5.3.2-1ubuntu4.17 command-line interpreter for the php5 script
ii php5-common 5.3.2-1ubuntu4.17 Common files for packages built from the php
ii php5-curl 5.3.2-1ubuntu4.17 CURL module for php5
ii php5-gd 5.3.2-1ubuntu4.17 GD module for php5
ii php5-imap 5.3.2-0ubuntu2 IMAP module for php5
ii php5-ioncube-loader 4.0.7-11030112 PHP ionCube Loader
ii php5-mysql 5.3.2-1ubuntu4.17 MySQL module for php5
ii php5-sqlite 5.3.2-1ubuntu4.17 SQLite module for php5
ii php5-xsl 5.3.2-1ubuntu4.17 XSL module for php5
 
Da fehlt das Paket libapache2-mod-php5,
Einfach mittels
Code:
apt-get install libapache2-mod-php5
nachinstallieren.
 
Ok habe ich, jetzt gehen aber keine HTML-Seiten mehr.

Edit: Habe das fcgi-Modul disabled, HTML geht wieder, PHP immer noch nicht.
 
Last edited by a moderator:
Was sagt ein
Code:
grep -Hir 'php' /etc/apache2/
und
Code:
find /etc/php5/
?
 
Code:
grep -Hir 'php' /etc/apache2/
/etc/apache2/mods-available/php5.conf:<IfModule mod_php5.c>
/etc/apache2/mods-available/php5.conf: SetHandler application/x-httpd-php
/etc/apache2/mods-available/php5.conf: <FilesMatch "\.phps$">
/etc/apache2/mods-available/php5.conf: SetHandler application/x-httpd-php-source
/etc/apache2/mods-available/php5.conf: # To re-enable php in user directories comment the following lines
/etc/apache2/mods-available/php5.conf: php_admin_value engine Off
/etc/apache2/mods-available/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
/etc/apache2/mods-available/php5.load:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
/etc/apache2/sites-available/default-ssl: <FilesMatch "\.(cgi|shtml|phtml|php)$">
/etc/apache2/apache2.conf:AddType application/x-httpd-php .php
/etc/apache2/apache2.conf:AddType application/x-httpd-php-source .phps
/etc/apache2/mods-enabled/php5.conf:<IfModule mod_php5.c>
/etc/apache2/mods-enabled/php5.conf: SetHandler application/x-httpd-php
/etc/apache2/mods-enabled/php5.conf: <FilesMatch "\.phps$">
/etc/apache2/mods-enabled/php5.conf: SetHandler application/x-httpd-php-source
/etc/apache2/mods-enabled/php5.conf: # To re-enable php in user directories comment the following lines
/etc/apache2/mods-enabled/php5.conf: php_admin_value engine Off
/etc/apache2/mods-enabled/dir.conf: DirectoryIndex at_domains_index.html index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml index.cfm
/etc/apache2/mods-enabled/php5.load:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

Code:
find /etc/php5/
/etc/php5/
/etc/php5/apache2
/etc/php5/apache2/php.ini.saved_by_psa
/etc/php5/apache2/php.ini.saved_by_psa.02.24;22:10
/etc/php5/apache2/.start
/etc/php5/apache2/php.ini
/etc/php5/apache2/conf.d
/etc/php5/cgi
/etc/php5/cgi/php.ini.saved_by_psa
/etc/php5/cgi/php.ini.saved_by_psa.02.24;22:10
/etc/php5/cgi/php.ini
/etc/php5/cgi/conf.d
/etc/php5/cli
/etc/php5/cli/php.ini.saved_by_psa
/etc/php5/cli/php.ini.bac
/etc/php5/cli/php.ini.saved_by_psa.02.24;22:10
/etc/php5/cli/php.ini
/etc/php5/cli/php.ini.bace
/etc/php5/cli/conf.d
/etc/php5/conf.d
/etc/php5/conf.d/mysql.ini
/etc/php5/conf.d/sqlite3.ini
/etc/php5/conf.d/pdo_mysql.ini
/etc/php5/conf.d/gd.ini
/etc/php5/conf.d/ioncube-loader-5.3.ini
/etc/php5/conf.d/xsl.ini
/etc/php5/conf.d/curl.ini
/etc/php5/conf.d/pdo_sqlite.ini
/etc/php5/conf.d/sqlite.ini
/etc/php5/conf.d/mysqli.ini
/etc/php5/conf.d/pdo.ini
/etc/php5/conf.d/imap.ini
 
Jetzt laufen alle PHP-Seiten wieder, obwohl es ja vorher mit FastCGI auch funktioniert hat, komisch. Plesk geht nicht mehr, aber da gucke ich später nach.

Vielen Dank für Deine Hilfe, PCFreund.
 
Informiere dich bitte einmal gründlich über CGI und FastCGI und dann siehst du dir nochmal den aktuellen Zustand deines Setups an.
 
Fazit:

FastCGI oder CGI haben nichts direkt mit PHP zu tun, sondern sind sprachenunabhängig. Wahrscheinlich läuft Perl darüber. "libapache2-mod-fcgid-psa" ist nur ein Modul für FastCGI.

Für mehrere vHosts ist fcgid besser, für eine Domain mod_php.

Ich bin aber erstmal froh, das es wieder geht. Es kamen nämlich schon ein paar Anrufe deswegen.

Irgendetwas muß beim Update schiefgelaufen sein. Wahrscheinlich wurde eine Konfiguration überschrieben. Der Server lief vorher monatelang ohne Fehler durch.
 
Der Server hat wie üblich die automatischen Updates gemacht.
Das ist bitte das Erste, was Du jetzt änderst, denn Du hast ja nun schmerzlich erlebt, weshalb man soetwas nicht macht.

Dein Autoupdate hat Dir die Apache-Konfiguration zerschossen, vermutlich so gar noch mehr, was Dir nur noch nicht aufgefallen ist.

Dein Autoupdate hat doch sicherlich jeden durchgeführten Schritt ordnungsgemäss mitgelogged, oder hast Du es etwa blind durchführen lassen?

Was ist mit Deinen Aufzeichnungen zu Deinen Änderungen der diversen Konfigurationen? Oder zumindest die Backups der Konfigurationen hast Du doch noch? Rauskramen und die neuen Konfigurationen manuell anpassen (vorher bitte die Dokumentationen zu den neuen Versionen lesen und berücksichtigen), Reboot, fertig.
 
Ich suche ja schon, wo ich die automatischen Updates ausstellen kann, finde aber nichts. In der /etc/crontab steht der Befehl nicht drin. Ich habe das Autoupdate nicht selbst eingestellt, das war schon bei der Installation dabei.

Edit 19:20Uhr: Habe was gefunden:

in /etc/cron.daily/apt:
...
# Create /etc/apt/apt.conf.d/02periodic file to set your preferences
...
# APT::Periodic::Enable "1";
# - Enable the update/upgrade script (0=disable)

Das habe ich gemacht:

/etc/apt/apt.conf.d/02periodic

APT::Periodic::Enable "0";

Somit sollte das Autoupdate deaktiviert sein.
 
Last edited by a moderator:
Back
Top