PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP 4.3.6win - will net so wie ich will!



XYRUS
06.06.2004, 16:47
ich glaub das es an meine php.ini liegt, denn meine alte PHP Version inkl. der alten PHP.ini funzt! Aber die neue PHP Version mit der aktuellen (auch schon etwas angepassten ini) mag einfach nicht laufen.

Ich weiß, die Config durchwurschteln ist echt viel arbeit - aber ich wüsste nicht an wen ich mich wenden sollte.

Achja ich möchte wegen Sicherheitslücken PHP updaten.

hier nun die ini:



;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = Off
output_buffering = 4096
;output_handler =
zlib.output_compression = On
;zlib.output_handler =
implicit_flush = On
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = Off

; Safe Mode
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
;open_basedir =
disable_functions =
disable_classes =
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300
max_input_time = 60
memory_limit = 8M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

error_reporting = E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
;html_errors = Off
;docref_root = "/phpmanual/"
;docref_ext = .html
;error_prepend_string = "<font color=ff0000>"
;error_append_string = "</font>"
;error_log = filename
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

;arg_separator.output = "&amp;"
;arg_separator.input = ";&"
variables_order = "EGPCS"
register_globals = On
register_argc_argv = On
post_max_size = 8M
gpc_order = "GPC"

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

auto_prepend_file =
auto_append_file =

default_mimetype = "text/html"
;default_charset = "iso-8859-1"

;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; Windows: "\path1;\path2"
include_path = ".;c:\php\includes;d:\www;"

doc_root =
user_dir =
extension_dir = "C:/php/extensions"
enable_dl = On
cgi.force_redirect = 1
cgi.nph = 1
fastcgi.impersonate = 1;
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

file_uploads = On
;upload_tmp_dir =
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

allow_url_fopen = On
from="john@doe.com"
default_socket_timeout = 60

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
extension=php_gd.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Syslog]
define_syslog_variables = Off

[mail function]
; For Win32 only.
SMTP = 127.0.0.1

; For Win32 only.
sendmail_from = webmaster@******.de

[Java]
;java.class.path = .\php_java.jar
;java.home = c:\jdk
;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
;java.library.path = .\

[SQL]
sql.safe_mode = Off

[ODBC]
;odbc.default_db = Not yet implemented
;odbc.default_user = Not yet implemented
;odbc.default_pw = Not yet implemented

odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1

[MySQL]
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

[Session]
session.save_handler = files
;session.save_path = c:/php/sessiondata
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.entropy_length = 16
;session.entropy_file = /dev/urandom
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="

[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
;mssql.connect_timeout = 5
;mssql.timeout = 60
;mssql.textlimit = 4096
;mssql.textsize = 4096
;mssql.batchsize = 0
;mssql.datetimeconvert = On
mssql.secure_connection = Off
;mssql.max_procs = 25

[Sockets]
sockets.use_system_read = On

pogo
06.06.2004, 17:28
Was bedeutet, dass es nicht funktioniert?
Im Zweifel würde ich erstmal testen, ob es mit der original php.ini geht.
Und dann nach und nach eigene Änderungen vornehmen und zwischendurch immer mal wieder testen, ob es geht.

XYRUS
06.06.2004, 17:30
hab inzwischen eine Fehlermeldung:

Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.

g: Function registration failed - duplicate name - imagegd in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagedestroy in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagegammacorrect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefill in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefilledpolygon in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefilledrectangle in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefilltoborder in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefontwidth in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefontheight in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imageinterlace in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imageline in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imageloadfont in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagepolygon in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagerectangle in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagesetpixel in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagestring in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagestringup in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagesx in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagesy in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagedashedline in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagettfbbox in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagettftext in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imageftbbox in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagefttext in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - imagetypes in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - jpeg2wbmp in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - png2wbmp in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - image2wbmp in Unknown on line 0 PHP Warning: gd: Unable to register functions, unable to load in Unknown on line 0

Bei der original .ini bekomme ich nur:

Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.

pogo
06.06.2004, 17:36
Änder in deiner php.ini:

cgi.force_redirect = 1

in

cgi.force_redirect = 0

XYRUS
06.06.2004, 17:43
LOL -> und schon gehts ;)

evtl. noch 1 - 2 Tipps auf was ich Achten soll bei Win32 OS? und was ich tunen kann?

pogo
06.06.2004, 20:29
Leider nicht von mir.