PHP pages staying cached until Apache restarts

We've installed Cool Stack CSKamp on a Sun T2000 with Solaris 2.10. We've finally gotten Apache, PHP, and MySQL to all talk together, mostly. One big problem we're seeing is that changes made to php pages don't display on the Web until we restart Apache. This isn't practical for us.

Here is the top portion of our php.ini file in case it helps:

[PHP]

safe_mode = 0;

cgi.fix_pathinfo = 1

memory_limit = 64M; Maximum amount of memory a script may consume (8MB)

default_socket_timeout = 1800

[Session]

session.use_cookies = 1

session.cookie_lifetime = 0

session.gc_probability = 1

session.gc_divisor= 5000

session.gc_maxlifetime = 6000

session.entropy_file = "/dev/urandom"

session.cache_expire = 0

session.cache_limiter = cache

;session.save_path = "5;/tmp"

include_path=/usr/local/lib:/opt/coolstack/php5/lib/php:.:/opt/coolstack/lib:/u sr/local/etc/httpd/htdocs/umhome/

extension_dir=/opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613

#commented out then uncommented - PFP

extension="mysql.so"

extension="mysqli.so"

extension="apc.so"

extension="gd.so"

# hardened-php - uncomment to enable. See http://hardened-php.net

#extension="suhosin.so"

apc.enabled=1

apc.shm_segments=1

apc.optimization=0

apc.shm_size=128

apc.ttl=120

apc.user_ttl=120

apc.gc_ttl=120

apc.stat=0

apc.num_files_hint=1024

apc.user_entries_hint=100

apc.mmap_file_mask=/dev/zero

;apc.enable_cli=1

; Allow or prevent persistent links.

#mysql.allow_persistent = Off

; Maximum number of persistent links. -1 means no limit.

;mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.

;mysql.max_links = -1

...

We are also seeing Warnings about function.include on our pages where both files mentioned are in the locations it says:

Warning: include(http://www.olemiss.edu/depts/biology/navigation.php) [function.include]: failed to open stream: No such file or directory in /usr/local/etc/httpd/htdocs/umhome/depts/biology/people/staff/index.php on line 87

Any help would be urgently appreciated!

[2313 byte] By [robasaurusa] at [2007-11-26 22:28:27]
# 1

This is an easy one.

Set apc.stat = 1 in your php.ini.

This will force APC to re-read your PHP file on every request. The downside is that you lose performance. So once you're PHP files are stable, remember to turn this setting back to 0.

Shanti

P.S: And don't forget to give me the Duke stars :-)

shantiSa at 2007-7-10 11:31:37 > top of Java-index,Open Source Technologies,OpenSPARC...