Hallo,
manchmal werden bei mir php-Dateien geparst und andere wieder zum Download angeboten. Wenn ich die Dateien umbennen (z.B von info.php auf inf.php), werrden die zum Download angebotenen wieder geparst.
Weiss jemand Rat?
Ich habe vHosts drauf, Confixx und folgende Pakete auf einem Debian (stable/testing):
apache2-mpm-prefork/testing uptodate 2.0.49-1
apache2-prefork-dev/testing uptodate 2.0.49-1
apache2-common/testing uptodate 2.0.49-1
libapache2-mod-security/testing uptodate 1.7.1-1
apache2-doc/testing uptodate 2.0.49-1
libapache2-mod-python-doc/testing uptodate 3.1.3-1
libapache2-mod-python/testing uptodate 3.1.3-1
libapache2-mod-python2.3/testing uptodate 3.1.3-1
libapache2-mod-php4/testing uptodate 4:4.3.4-4
php4-cgi/testing uptodate 4:4.3.4-4
php4-mysql/testing uptodate 4:4.3.4-4
php4-imagick/testing uptodate 0.9.7-1.2
php4-gd2/testing uptodate 3:4.3.2+rc3-2
Mir ist es unerklärlich, wie das zustande kommt, denn entweder es geht, oder es geht nicht. Hat jemand eine Erklärung für mich?
Danke
Alexander Maringer
php manchmal geparst,manchmal als Download
Re: php manchmal geparst,manchmal als Download
Die php.ini:
engine = On
short_open_tag = On
asp_tags = Off
precision = 12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 16M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
register_globals = Off
register_argc_argv = On
post_max_size = 8M
gpc_order = "GPC"
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = On
default_socket_timeout = 60
extension=mysql.so
extension=gd.so
extension=imagick.so
define_syslog_variables = Off
SMTP = localhost
sql.safe_mode = Off
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
dbx.colnames_case = "unchanged"
bcmath.scale = 0
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
sockets.use_system_read = On
Sollte noch was fehlen, einfach schreiben.
engine = On
short_open_tag = On
asp_tags = Off
precision = 12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 16M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
register_globals = Off
register_argc_argv = On
post_max_size = 8M
gpc_order = "GPC"
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = On
default_socket_timeout = 60
extension=mysql.so
extension=gd.so
extension=imagick.so
define_syslog_variables = Off
SMTP = localhost
sql.safe_mode = Off
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
dbx.colnames_case = "unchanged"
bcmath.scale = 0
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
sockets.use_system_read = On
Sollte noch was fehlen, einfach schreiben.
Re: php manchmal geparst,manchmal als Download
Wahrscheinlich hast du in Confixx (oder von Hand) bei manchen Kunden PHP deaktiviert. Da gibts momentan noch einen Bug der dieses Verhalten verursacht.
Re: php manchmal geparst,manchmal als Download
Wenn mal einer das Problem haben sollte, die Lösung habe ich gefunden. Apache-Error-Logs durchsehen, bei hoher Prozessorlast und auffälligen Einträgen im Log, mal die http.conf auf Timout, Min/MaxSpareServers, etc durchsehen. Bei mir hat es geholfen. Rennt wieder wie er soll.
Re: php manchmal geparst,manchmal als Download
Oder Du machst beim PHP mal ein Update auf 4.3.7.
Das löst auch das Problem.
aLEX
Das löst auch das Problem.
aLEX
Re: php manchmal geparst,manchmal als Download
Fehlanzeige, das hatte ich gemacht und es hat leider definitv nicht mein Problem gelöst.Oder Du machst beim PHP mal ein Update auf 4.3.7.
Ciao
Alexander