[Resolved] php.ini question with eaccelerator.

VortMax

Well-Known Member
#1
Hello,
I am trying to take advantage of this feature:

http://www.litespeedtech.com/support/forum/showpost.php?p=14399&postcount=21

However, I am unable to locate the the correct php.ini file to affect changes to the eaccelerator configuration. There was no reference to the cache in the /etc/php.ini file. The only place I see it is in lsws/php/php.ini but making changes there do not affect the configuration of eaccelerator.

Any other places I can look? I am thinking perhaps that it was compiled into lsws when I created my php compile.

Please Help!.
 
Last edited by a moderator:

VortMax

Well-Known Member
#3
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini


This is what I get.

The problem is there are no references to eaccelerator in that file. But I know for certain that the extension is loaded and working. Any other ideas?

Code:
Version 	0.9.5.3
Caching Enabled 	true
Optimizer Enabled 	true
Memory Size 	33,
554,376 Bytes
Memory Available 	1,312 Bytes
Memory Allocated 	33,
553,064 Bytes
Cached Scripts 	244
Removed Scripts 	0
Cached Keys 	0 

eaccelerator.allowed_admin_path	no value	no value
eaccelerator.cache_dir	/var/cache/php-eaccelerator	/var/cache/php-eaccelerator
eaccelerator.check_mtime	1	1
eaccelerator.compress	1	1
eaccelerator.compress_level	9	9
eaccelerator.debug	0	0
eaccelerator.enable	1	1
eaccelerator.filter	no value	no value
eaccelerator.log_file	no value	no value
eaccelerator.name_space	no value	no value
eaccelerator.optimizer	1	1
eaccelerator.shm_max	0	0
eaccelerator.shm_only	0	0
eaccelerator.shm_prune_period	0	0
eaccelerator.shm_size	0	0
eaccelerator.shm_ttl	3600	3600
 

VortMax

Well-Known Member
#5
Thanks, I found it now. It was in php.d/eaccelerator.ini.

You wouldn't happen to have handy the cron command to clear out that folder would ya?
 

NiteWave

Administrator
#6
You wouldn't happen to have handy the cron command to clear out that folder would ya?
just an sample FYI: add a line to /etc/crontab
Code:
0 0 * * * root (find /var/cache/php-eaccelerator -type f -exec rm -rf {} \;)
will clean the disk cache at 0:0 AM every day.
 
Top