Macht ja nichts. Wir sind alle nicht vollkommen. Ich kann ja auch ein Fehler gemacht haben. Also mit deinem Feedback, kann ich ja schon mal weiter an dem Fehler arbeiten.
Dafür ein herzlichen Dank!
Macht ja nichts. Wir sind alle nicht vollkommen. Ich kann ja auch ein Fehler gemacht haben. Also mit deinem Feedback, kann ich ja schon mal weiter an dem Fehler arbeiten.
Dafür ein herzlichen Dank!
Nein Dedicated. Ich habe vollen zugriff.
Wahrscheinlich muss ich das mal bei den Developern als Bug declarieren...
Genau das ist das Problem. Ich habe ja den Link gepostet oben zu dem Script. Das habe ich getestet. Geht nicht. Das hat aber mal funktioniert. Ich bekomme immer ein False. Wenn ich jetzt im TMP Dir gucke, wird immer nur eine phpXXXXXX Datei erstellt. Rein theoretisch muss es aber eine upload_XXXXXXX sein. Was es nicht ist.
Trotzdem danke für deine Hilfe.
APC Version3.1.15-dev
PHP Version5.3.17APC Hostxxxxx
Server SoftwareApache
Shared Memory1 Segment(s) with 256.0 MBytes
(mmap memory, pthread read/write Locks locking)
Start Time2013/11/10 09:11:00Uptime 6 hours and 1 minuteFile Upload Support1
File Cache Information
Cached Files244 ( 18.6 MBytes)
Hits109326
Misses365
Request Rate (hits, misses)5.06 cache requests/second
Hit Rate5.05 cache requests/second
Miss Rate0.02 cache requests/second
Insert Rate0.02 cache requests/second
Cache full count0
User Cache Information
Cached Variables0 ( 0.0 Bytes)
Hits0
Misses1180
Request Rate (hits, misses)0.05 cache requests/second
Hit Rate0.00 cache requests/second
Miss Rate0.05 cache requests/second
Insert Rate0.00 cache requests/second
Cache full count0
Runtime Settings
apc.cache_by_default1
apc.canonicalize1
apc.coredump_unmap0
apc.enable_cli1
apc.enable_opcode_cache1
apc.enabled1
apc.file_md50
apc.file_update_protection2
apc.filters
apc.gc_ttl3600
apc.include_once_override0
apc.lazy_classes0
apc.lazy_functions0
apc.max_file_size10M
apc.mmap_file_mask/tmp/apc.0YGoLo
apc.num_files_hint1024
apc.preload_path
apc.report_autofilter0
apc.rfc18671
apc.rfc1867_freq100k
apc.rfc1867_nameAPC_UPLOAD_PROGRESS
apc.rfc1867_prefixupload_
apc.rfc1867_ttl3600
apc.serializerdefault
apc.shm_segments1
apc.shm_size256M
apc.slam_defense1
apc.stat1
apc.stat_ctime0
apc.ttl0
apc.use_request_time1
apc.user_entries_hint4096
apc.user_ttl7200
apc.write_lock1
Nicht nur. APC selbst scheint auch zu funktionieren, aber ich bekomme ein false wenn ich die Datei hochlade. Wie gesagt, auch selbst mit scripts die funktionieren sollten. Siehe link.
/etc/php5/conf.d/apc.ini
extension=apc.so
; This can be set to 0 to disable APC. This is
; primarily useful when APC is statically compiled
; into PHP, since there is no other way to disable
; it (when compiled as a DSO, the zend_extension
; line can just be commented-out).
; (Default: 1)
;
apc.enabled=1
; The number of shared memory segments to allocate
; for the compiler cache. If APC is running out of
; shared memory but you have already set
; apc.shm_size as high as your system allows, you
; can try raising this value.
; (Default: 1)
;
apc.shm_segments=1
; The size of each shared memory segment in MB.
; By default, some systems (including most BSD
; variants) have very low limits on the size of a
; shared memory segment.
; (Default: 30)
;
apc.shm_size=256M
; The optimization level. Zero disables the
; optimizer, and higher values use more aggressive
; optimizations. Expect very modest speed
; improvements. This is experimental.
; (Default: 0)
;
apc.optimization=0
; A "hint" about the number of distinct source files
; that will be included or requested on your web
; server. Set to zero or omit if you're not sure;
; this setting is mainly useful for sites that have
; many thousands of source files.
; (Default: 1000)
;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number
; of distinct user cache variables to store.
; Set to zero or omit if you're not sure;
; (Default: 100)
;
;apc.user_entries_hint = 100
; The number of seconds a cache entry is allowed to
; idle in a slot in case this cache entry slot is
; needed by another entry. Leaving this at zero
; means that your cache could potentially fill up
; with stale entries while newer entries won't be
; cached.
; (Default: 0)
;
; apc.ttl=7200
; The number of seconds a user cache entry is allowed
; to idle in a slot in case this cache entry slot is
; needed by another entry. Leaving this at zero
; means that your cache could potentially fill up
; with stale entries while newer entries won't be
; cached.
; (Default: 0)
;
apc.user_ttl=7200
; The number of seconds that a cache entry may
; remain on the garbage-collection list. This value
; provides a failsafe in the event that a server
; process dies while executing a cached source file;
; if that source file is modified, the memory
; allocated for the old version will not be
; reclaimed until this TTL reached. Set to zero to
; disable this feature.
; (Default: 3600)
;
apc.gc_ttl = 3600
; On by default, but can be set to off and used in
; conjunction with positive apc.filters so that files
; are only cached if matched by a positive filter.
; (Default: On)
;
apc.cache_by_default = On
; A comma-separated list of POSIX extended regular
; expressions. If any pattern matches the source
; filename, the file will not be cached. Note that
; the filename used for matching is the one passed
; to include/require, not the absolute path. If the
; first character of the expression is a + then the
; expression will be additive in the sense that any
; files matched by the expression will be cached, and
; if the first character is a - then anything matched
; will not be cached. The - case is the default, so
; it can be left off.
; (Default: "")
;
; apc.filters = ""
; If compiled with MMAP support by using --enable-mmap
; this is the mktemp-style file_mask to pass to the
; mmap module for determing whether your mmap'ed memory
; region is going to be file-backed or shared memory
; backed. For straight file-backed mmap, set it to
; something like /tmp/apc.XXXXXX (exactly 6 X's).
; To use POSIX-style shm_open/mmap put a ".shm"
; somewhere in your mask. eg. "/apc.shm.XXXXXX"
; You can also set it to "/dev/zero" to use your
; kernel's /dev/zero interface to anonymous mmap'ed
; memory. Leaving it undefined will force an
; anonymous mmap.
; (Default: "")
apc.mmap_file_mask=/tmp/apc.XXXXXX
;
; On very busy servers whenever you start the server or
; modify files you can create a race of many processes
; all trying to cache the same file at the same time.
; This option sets the percentage of processes that will
; skip trying to cache an uncached file. Or think of it
; as the probability of a single process to skip caching.
; For example, setting this to 75 would mean that there is
; a 75% chance that the process will not cache an uncached
; file. So the higher the setting the greater the defense
; against cache slams. Setting this to 0 disables this
; feature.
; (Default: 0)
;
;apc.slam_defense = 0
;
; When you modify a file on a live web server you really
; should do so in an atomic manner. That is, write to a
; temporary file and rename (mv) the file into its permanent
; position when it is ready. Many text editors, cp, tar and
; other such programs don't do this. This means that there
; is a chance that a file is accessed (and cached) while it
; is still being written to. This file_update_protection
; setting puts a delay on caching brand new files. The
; default is 2 seconds which means that if the modification
; timestamp (mtime) on a file shows that it is less than 2
; seconds old when it is accessed, it will not be cached.
; The unfortunate person who accessed this half-written file
; will still see weirdness, but at least it won't persist.
; If you are certain you always atomically update your files
; by using something like rsync which does this correctly, you
; can turn this protection off by setting it to 0. If you
; have a system that is flooded with io causing some update
; procedure to take longer than 2 seconds, you may want to
; increase this a bit.
; (Default: 2)
;
;apc.file_update_protection = 2
; Mostly for testing and debugging. Setting this enables APC
; for the CLI version of PHP. Normally you wouldn't want to
; create, populate and tear down the APC cache on every CLI
; request, but for various test scenarios it is handy to be
; able to enable APC for the CLI version of APC easily.
; (Default: 0)
;
apc.enable_cli=1
; apc.max_file_size Prevents large files from being cached.
; (Default: 1M)
;
apc.max_file_size = 10M
; Whether to stat the main script file and the fullpath
; includes. If you turn this off you will need to restart
; your server in order to update scripts.
; (Default: 1)
;
;apc.stat = 1
;
apc.write_lock = 1
apc.stat_ctime = 0
apc.rfc1867 = 1
apc.rfc1867_prefix = upload_
apc.rfc1867_name = APC_UPLOAD_PROGRESS
apc.rfc1867_freq = 100k
Alles anzeigen
Also die Fragen stellt mir keiner, der APC kennt. ![]()
Die Dateien werd ja beim hochladen in ein Tempfolder geladen. Per Javascript abfrage und der ID, kann man prüfen wie groß die Datei im tmp folder ist und bekommt damit einen Upload Status.
Hallo Leute,
Ich habe einen Linux Server auf 12.3 mit Plesk und so weiter...
Früher funktionierten meine Scripts mit APC, mitterweile nicht mehr. Auch nicht funktionierende fremd scripts. Ich habe mal ein paar durch getestet. Es gibt immer false und ich weiß nicht mehr weiter.
apc.ini
ZitatAlles anzeigenapc
APC Supportenabled
Version 3.1.15-dev
APC Debugging Disabled
MMAP Support Enabled
MMAP File Mask /tmp/apc.0YGoLo
Locking type pthread read/write Locks
Serialization Support php
DirectiveLocal ValueMaster Value
apc.cache_by_defaultOnOn
apc.canonicalizeOnOn
apc.coredump_unmapOffOff
apc.enable_cliOnOn
apc.enable_opcode_cacheOnOn
apc.enabledOnOn
apc.file_md5OffOff
apc.file_update_protection22
apc.filtersno valueno value
apc.gc_ttl36003600
apc.include_once_overrideOffOff
apc.lazy_classesOffOff
apc.lazy_functionsOffOff
apc.max_file_size10M10M
apc.mmap_file_mask/tmp/apc.0YGoLo/tmp/apc.0YGoLo
apc.num_files_hint10241024
apc.preload_pathno valueno value
apc.report_autofilterOffOff
apc.rfc1867OnOn
apc.rfc1867_freq100k100k
apc.rfc1867_nameAPC_UPLOAD_PROGRESSAPC_UPLOAD_PROGRESS
apc.rfc1867_prefixupload_upload_
apc.rfc1867_ttl36003600
apc.serializerdefaultdefault
apc.shm_segments11
apc.shm_size256M256M
apc.slam_defenseOnOn
apc.statOnOn
apc.stat_ctimeOffOff
apc.ttl00
apc.use_request_timeOnOn
apc.user_entries_hint40964096
apc.user_ttl72007200
apc.write_lockOnOn
Eigentlich sollte es ja funktioieren. Wenn ich im tmp folder beim Upload reinschaue, bekomme ich keine apc.XXXXXXX sondern immer eine phpXXXX.
Hab jetzt alles durch gelesen und getestet. Aber meistens ist das Problem ja vor einem und man sieht es nicht. Vielleicht habt ihr den Blick?
Vielen Dank schon mal!
Wikibear