|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-23 07:11 UTC] andre dot lagadec at education dot gouv dot fr
Description: ------------ Environnement ============= Systeme Solaris 9 Apache 2.0.59 PHP-4.3.10 APC-3.0.14 How PHP is compiled ======================= './configure' '--with-config-file-path=/usr/local/apache2/conf' '--prefix=/usr/local/apache2-0_php4_3_10 ' '--exec-prefix=/usr/local/apache2-0_php4_3_10' '--with-expat-dir=/usr/local' '--with-png-dir=/usr/sfw' '--with-jpeg-dir=/usr /sfw' '--with-freetype-dir=/usr/sfw' '--with-xpm-dir=/usr/sfw' '--with-iconv=/usr/local' '--with-iconv-dir=/usr/local' '--with -curl=/usr/local' '--with-openssl=/usr/local/ssl' '--with-dom=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-gd=/usr/ local' '--enable-gd-native-ttf' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-oci8=/produits/oracle/product/8.1.7' '--wit h-ldap' '--enable-ftp' '--with-gettext' '--enable-track-vars' '--enable-libgcc' '--enable-inline-optimization' Commands to compile APC ======================= phpize ./configure --enable-apc --with-apxs=/usr/local/apache2/bin/apxs --with-php-config=/usr/local/apache2_php4_3_10/bin/php-config make make install Added lines in php.ini ====================== extension_dir = "/usr/local/apache2-0_php4_3_10/lib/php/extensions/no-debug-non-zts-20020429" extension=apc.so ; apc.enabled=1 apc.mode=shm ; apc.shm_segments=1 ; apc.shm_size=128 ; apc.shm_size=1 ; apc.ttl=7200 ; apc.user_ttl=7200 ; apc.num_files_hint=1024 ; apc.mmap_file_mask=/tmp/apc.XXXXXX ; apc.enable_cli=1 If I run with PHP Cli this script <?php phpinfo(); ?> I get for APC, theses lines apc APC Support => disabled Version => 3.0.14 MMAP Support => Enabled MMAP File Mask => Locking type => File Locks Revision => $Revision: 3.140 $ Build Date => May 23 2007 12:44:08 Directive => Local Value => Master Value apc.cache_by_default => On => On apc.enable_cli => Off => Off apc.enabled => On => On apc.file_update_protection => 2 => 2 apc.filters => no value => no value apc.gc_ttl => 3600 => 3600 apc.include_once_override => Off => Off apc.localcache => Off => Off apc.localcache.size => 512 => 512 apc.max_file_size => 1M => 1M apc.mmap_file_mask => no value => no value apc.num_files_hint => 1000 => 1000 apc.report_autofilter => Off => Off apc.shm_segments => 1 => 1 apc.shm_size => 30 => 30 apc.slam_defense => 0 => 0 apc.stat => On => On apc.stat_ctime => Off => Off apc.ttl => 0 => 0 apc.user_entries_hint => 4096 => 4096 apc.user_ttl => 0 => 0 apc.write_lock => On => On Reproduce code: --------------- <? phpinfo(); ?> Or any other php code. Actual result: -------------- Blank page PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 15:00:02 2025 UTC |
Hi For APC works, does PHP compile with these options ? --enable-sysvsem --enable-sysvshm --enable-sysvmsg On Solaris, is it necessary to add line in /etc/system to define shared memory like this ? set shmsys:shminfo_shmmax=16777216 Thanks for your help. ALSuggested patch for latest cvs version (a better one might be submitted): --- apc_sma.c.old 2007-07-18 16:12:02.593750000 +0200 +++ apc_sma.c 2007-07-18 16:12:41.781250000 +0200 @@ -85,9 +85,13 @@ size_t next; /* offset in segment of next free block */ #ifdef APC_SMA_CANARIES size_t canary; /* canary to check for memory overwrites */ +#else + size_t dummy1; #endif #ifdef __APC_SMA_DEBUG__ size_t id; /* identifier for the memory block */ +#else + size_t dummy2; #endif };