PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SUSE 10.2 - PHP5 läuft nicht



gerdon
23.01.08, 10:10
Über die Softwareverwaltung wurde PHP5 nachinstalliert und läuft nicht.
In der loadmodule.conf ist das Modul auch nicht aufgeführt, obwohl es in dem erforderlichen Ordner liegt.
Ein manuelles Nachtragen nützt nichts, da die conf-Datei beim Apache-Start automatisch generiert wird.

Was ist nun zu tun?

marce
23.01.08, 10:17
welches Paket hast Du genau installiert? Es müsste eigentlich sowas wie httpphp5 oder so heissen, rein php5 als Paket dürfte nicht reichen.

gerdon
23.01.08, 10:45
Installiert ist das Paket PHP5 und das Apache-Modul, daneben noch einige Extension-Module (MySQL etc.).
Ein httpphp5-Paket o.ä. gibt es nicht bzw wird nicht aufgelistet.
Nach Yast ist also alles getan.

marce
23.01.08, 10:50
das Apache-Module meinte ich :-)


Ein manuelles Nachtragen nützt nichts, da die conf-Datei beim Apache-Start automatisch generiert wird.
wie meinst Du das?

gerdon
23.01.08, 11:19
Hier der Inhalt der loadmodule.conf:

#
# Files in this directory are created at apache start time by /usr/sbin/rcapache2
# Do not edit them!
#

# as listed in APACHE_MODULES (/etc/sysconfig/apache2)

LoadModule authz_host_module /usr/lib/apache2-prefork/mod_authz_host.so
LoadModule actions_module /usr/lib/apache2-prefork/mod_actions.so
LoadModule alias_module /usr/lib/apache2-prefork/mod_alias.so
LoadModule auth_basic_module /usr/lib/apache2-prefork/mod_auth_basic.so
LoadModule authz_groupfile_module /usr/lib/apache2-prefork/mod_authz_groupfile.so
LoadModule authn_file_module /usr/lib/apache2-prefork/mod_authn_file.so
LoadModule authz_user_module /usr/lib/apache2-prefork/mod_authz_user.so
LoadModule autoindex_module /usr/lib/apache2-prefork/mod_autoindex.so
LoadModule cgi_module /usr/lib/apache2-prefork/mod_cgi.so
LoadModule dir_module /usr/lib/apache2-prefork/mod_dir.so
LoadModule include_module /usr/lib/apache2-prefork/mod_include.so
LoadModule log_config_module /usr/lib/apache2-prefork/mod_log_config.so
LoadModule mime_module /usr/lib/apache2-prefork/mod_mime.so
LoadModule negotiation_module /usr/lib/apache2-prefork/mod_negotiation.so
LoadModule setenvif_module /usr/lib/apache2-prefork/mod_setenvif.so
LoadModule status_module /usr/lib/apache2-prefork/mod_status.so
LoadModule userdir_module /usr/lib/apache2-prefork/mod_userdir.so
LoadModule asis_module /usr/lib/apache2-prefork/mod_asis.so
LoadModule imagemap_module /usr/lib/apache2-prefork/mod_imagemap.so
LoadModule perl_module /usr/lib/apache2/mod_perl.so
LoadModule authz_default_module /usr/lib/apache2-prefork/mod_authz_default.so
#



In einem Releasenote hab ich nun folgendes gefunbden:


Enabling/disabling the PHP5 module for Apache
=============================================

- in /etc/sysconfig/apache2, add "php5" to APACHE_MODULES,
or remove it to disable
- possibly include /etc/apache2/conf.d/mod_php5.conf in individual virtual
host configuration
- restart the server with "rcapache2 restart"




Das "php5" habe ich in unter APACH_MODULES in "/etc/sysconfig/apache2" nachgetragen.
Jetzt funktioniert phpinfo.php, aber andere Scripte (noch) nicht und php5 ist in der loadmodule.conf eingetragen

Ich bin also erst mal ein Stück weiter.


- possibly include /etc/apache2/conf.d/mod_php5.conf in individual virtual
host configuration
Das sind für mich noch böhmische Dörfer. Was genau soll ich in dem VirtualHost eintragen?
Reicht ein einfaches include?

gerdon
24.01.08, 08:49
Ich komme nicht weiter.
Die phpinfo.php mit

<? phpinfo(); ?>
funzt.
Ein beliebiges Script wie

<? echo "Test"; ?>
bringt eine leere Seite mit folgendem Quelltext:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>