Apc and upload file (rfc1867)

software development

#1

I have tried both php5 install scripts in the wiki ( install script and dev installand get the custom php install working fine with either one (phpinfo() shows the custom installation working fine with correct paths to php and php.ini).

APC installs with no errors using http://wiki.dreamhost.com/Pecl_APC and the module ends up in ~/php5/lib/php/extensions/apc.so which I think is correct. And the necessary changes have been made to php.ini

phpinfo() show the APC enabled but if I modify php.ini file width apc.rfc1867=On and apc.mmap_file_mask=/home/username/tmp/apc.XXXXXX, when I upload the file, I can’t read the upload status
(/home/username/tmp/apc.XXXXXX file not exist).

I must create a progressbar for upload any file, but when I submit the form, I can’t get the status of cache with this command:

$status = apc_fetch(‘upload_’.$id);

(return false)

my php.ini file:

[apc]
extension="apc.so"
apc.rfc1867=On
apc.enabled=1
apc.shm_segments=1
apc.shm_size=16
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/home/myname/tmp/apc.XXXXXX
;apc.enable_cli=1
apc.max_file_size=200M

my php script work in MAMP with APC enabled, but in dreamhost no!

Any ideas?