PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache will php nicht



nahemoth
29.08.05, 10:30
Hi,
ich hab mir nen apache installiert, via "apt-get install apache php4 php4-cgi mysql-server phpmyadmin"
das problem ist aber, dass er kein php unterstützt.
an was könnte das liegen?

danke

Pingu
29.08.05, 10:34
das problem ist aber, dass er kein php unterstützt.
an was könnte das liegen?
Daran daß Du das Manual nicht gelesen hast? http://www.php.net/manual/de/install.unix.php#install.unix.apache
Insebesondere ab Punkt 14.

Pingu

marce
29.08.05, 10:34
PEBKAC?

Aufruf: 1 Runde Freiglaskugeln für alle!!!

wie äussert sich das Problem denn? Was steht im log?

nahemoth
29.08.05, 10:43
hm, ok, ich hab nochmal von vorne angefangen, und am ende von apt-get kam dann folgende meldung:

Syntax error on line 546 of /etc/apache/httpd.conf:
Invalid command 'If', perhaps mis-spelled or defined by a module not included in the server configuration
invoke-rc.d: initscript apache, action "restart" failed.
dpkg: Fehler beim Bearbeiten von phpmyadmin (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tomek
29.08.05, 11:24
Erstmal hättest du hier lesen sollen:
http://www.linuxforen.de/forums/showthread.php?t=169531

Dann wäre dir aufgefallen, dass du vergessen hast etwas zu installieren:

apt-get install libapache-mod-php4

Dann zur letzten Fehlermeldung:

Syntax error on line 546 of /etc/apache/httpd.conf:
Invalid command 'If', perhaps mis-spelled or defined by a module not included in the server configuration
Was soll man dazu noch sagen? Ganz einfach: Fehlermeldung lesen und den Fehler korrigieren.

Pingu
29.08.05, 11:28
Was könnte ein solche Fehlermeldung wohl heißen?

Syntax error on line 546 of /etc/apache/httpd.conf:
Invalid command 'If', perhaps mis-spelled or defined by a module not included in the server configuration
invoke-rc.d: initscript apache, action "restart" failed.
Jetzt stellt sich wohl die Frage was steht bei
on line 546 of /etc/apache/httpd.conf

Pingu

nahemoth
29.08.05, 11:41
ok, der apache läuft :)
aber noch kein php :(

marce
29.08.05, 11:54
Daran daß Du das Manual nicht gelesen hast? http://www.php.net/manual/de/install.unix.php#install.unix.apache
Insebesondere ab Punkt 14.

Pingu
Punkt 16?

*zehnZeichen*

nahemoth
29.08.05, 12:14
naja, ich habs danach gemacht: *link* (http://www.debianhowto.de/de:howtos:woody:apache_mod_php)

marce
29.08.05, 12:19
und um nochmal zu fragen:

- wie äußert sich's
- was steht im Log?
- ist heute Montag?
- Was gab's zu Essen?

nahemoth
29.08.05, 13:49
hehe, ganz einfach, php wird nicht unterstützt, er will php-files beim öffnen downloaden.

Tomek
29.08.05, 14:08
Was sagt denn:

dpkg -l|egrep 'apache|php'
grep -i addtype /etc/apache/httpd.conf
cat /etc/apache/modules.conf

marce
29.08.05, 14:17
bevor wir hier weiter noch im Nebel rumraten - lösch auch mal den Browsercache, das ist immer gern gesehen...

nahemoth
29.08.05, 15:07
dpkg -l|egrep 'apache|php' sagt:

ii apache 1.3.33-6 versatile, high-performance HTTP server
ii apache-common 1.3.33-6 support files for all Apache webservers
rc apache-ssl 1.3.33-6 versatile, high-performance HTTP server with
ii apache2-utils 2.0.54-4 utility programs for webservers
ii libapache-mod- 4.3.10-15 server-side, HTML-embedded scripting languag
rc libapache2-mod 1.999.21-1 Integration of perl with the Apache2 web ser
ii php4 4.3.10-15 server-side, HTML-embedded scripting languag
ii php4-cgi 4.3.10-15 server-side, HTML-embedded scripting languag
ii php4-cli 4.3.10-15 command-line interpreter for the php4 script
ii php4-common 4.3.10-15 Common files for packages built from the php
ii php4-mysql 4.3.10-15 MySQL module for php4
rc php4-pear 4.3.10-15 PEAR - PHP Extension and Application Reposit
ii phpmyadmin 2.6.2-3 set of PHP-scripts to administrate MySQL ove


grep -i addtype /etc/apache/httpd.conf sagt:

# AddType allows you to tweak mime.types without actually editing
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
AddType image/bmp .bmp
AddType text/x-hdml .hdml
AddType text/html .shtml


und cat /etc/apache/modules.conf sagt:

# Autogenerated file - do not edit!
# This file is maintained by the apache package.
# To update it, run the command:
# /usr/sbin/apache-modconf apache
ClearModuleList
AddModule mod_so.c
AddModule mod_macro.c
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

rodgerwilco
29.08.05, 16:08
Hi,
ich hab mir nen apache installiert, via "apt-get install apache php4 php4-cgi mysql-server phpmyadmin"
das problem ist aber, dass er kein php unterstützt.
an was könnte das liegen?

danke

Hatte das gleiche Problem. Mein Vorschlag wäre: Lösch erstmal alles wieder runter bis auf den MySQL-Server und phpmyadmin und dann nimm Apache2 (apt-get install apache2) und installiere anschließend das entsprechende PHP-Modul (apt-get install libapache-mod-php4). Da du ja MySQL noch benutzen möchtest, müsstest du dann noch in der Datei /etc/php4/apache2/php.ini das Kommentarzeichen vor der Zeile "extension=mysql.so" entfernen. Dann sollte es laufen.

Gruß
rodger