• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] apache start nicht

webgitter

Newbie
hallo,

ich hab ein aehnliches problem wie in thread http://www.linux-club.de/ftopic81667.html

mein apache will nicht mehr starten.
ich koennte mir vorstellen das es an einem yast update lag, das ich vor einigen wochen gemacht habe. allerdings lief bis gestern alles super!

einen fehler konnte ich schon lösen (habe einfach in config ausgeschlossen)
Code:
Module "/usr/lib/apache2-prefork/frontpage.so" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2d.

hier mein problem

Code:
Starting httpd2 (prefork) Syntax error on line 19 of /etc/apache2/httpd.include:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

mein System:
Suse9.3
Strato vServer
Apache2
Plesk

DANKE schon mal!
 
Wo ist denn das Problem?
Der Apache ist doch so nett und beschreibt den Fehler ausführlich.

Außerdem: Wie soll dir denn jemand helfen, wenn du nicht den entsprechenden Teil der Apache-Konfiguration postest.

Vermutlich steht die Option php_admin_flag an einer Stelle, an der sie nichts zu suchen hat.
 
OP
W

webgitter

Newbie
danke für deine antwort

hier auszug aus dem httpd.include file.

Code:
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<IfModule !mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<Directory "/var/www/vhosts">
	AllowOverride All
	Options SymLinksIfOwnerMatch
	Order allow,deny
	Allow from all
	php_admin_flag engine off
</Directory>

zeile 19 ist "php_admin_flag engine off"

hab die zeile auch rausgnommen und auf on gesetzt.
ausserdem hab mal alle php module über yast nach installiert. im yast log werden die rpm installationen auch bestätigt. aber alles ohne erfolg.

ich vermute das mod_php nicht geladen wird! mein problem ist, dass ich nicht weiß von wo ich dieses modul genau laden muss. und in welchem file es stehen muss.

in httpd.conf werden bei mir nur zeilen includiert.

Code:
........
# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf

# IP addresses / ports to listen on
Include /etc/apache2/listen.conf

# predefined logging formats
Include /etc/apache2/mod_log_config.conf

# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf

# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf

# optional cookie-based user tracking
# read the documentation before using it!!
Include /etc/apache2/mod_usertrack.conf

# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf

# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf

# set up (customizable) error responses
Include /etc/apache2/errors.conf

# global (server-wide) SSL configuration, that is not specific to 
# any virtual host
Include /etc/apache2/ssl-global.conf
.....


danke
 
Für PHP musst du den entsprechenden Application-Handler definieren.
Unter Apache 2 (SUSE) ist dafür das Verzeichnis /etc/apache2/conf.d vorgesehen.
/etc/apache2/conf.d/php5
Code:
<IfModule mod_php5.c>
        AddHandler application/x-httpd-php .php4
        AddHandler application/x-httpd-php .php5
        AddHandler application/x-httpd-php .php
        AddHandler application/x-httpd-php-source .php4s
        AddHandler application/x-httpd-php-source .php5s
        AddHandler application/x-httpd-php-source .phps
        DirectoryIndex index.php4
        DirectoryIndex index.php5
        DirectoryIndex index.php
</IfModule>

Vorher solltest du allerdings sicherstellen, dass das Apache-PHP-Modul installiert und geladen ist.

Paket: apache2-mod_php5
Modul laden:
Code:
a2enmod php5
(oder in /etc/apache2/sysconfig.d/loadmodule.conf eintragen)
 
OP
W

webgitter

Newbie
hi,

danke für deine hilfe! es

in der datei


etc/sysconig/apache2


fehlte bei
Code:
apache_modules= "........."

php5

:?: aber wie das passieren konnte frag ich mich immer noch.
 

Dr. Glastonbury

Advanced Hacker
Moin,
wenn das Problem damit gelöst ist, dann kennzeichne das doch bitte durch ein [gelöst] im Titel -> einfach den ersten Post editieren ;)
 
Oben