Jump to content

how to configure 'cache' in apache2.2


galaxy

Recommended Posts

Hello,

 

I am newbie for Apache2.2. I'd like to ask about caching. ( OS = FreeBSD )

 

I put some lines in httpd.conf. Numbered lines are added as per http://httpd.apache.org/docs/2.2/mod/mod_cache.html. ( But it is meant for windows OS and thus, I changed directory "/var/cache/apache" instead of "c:/cacheroot")

 

 

LoadModule cache_module libexec/apache22/mod_cache.so

 

1. <IfModule mod_cache.c>

 

LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so

 

2. <IfModule mod_disk_cache.c>

3. CacheRoot /var/cache/apache/

4. CacheEnable disk /

5. CacheDirLevels 5

6. CacheDirLength 3

7. </IfModule>

 

restart apache.

 

 

questions :

 

1) in /libexec/apache22/, there are only files for extensions *.la *.a *.so ( there is no *.c)

 

2) there is no cache folder in /var/ altough I specified in httpd.conf.

 

 

3) when I used this command, htcacheclean -d15 -p/var/cache/apache -l100M , it doesnt work.

 

 

is there any other suggestion? Any help would be much appreciated.

 

rgds,

galaxy

Link to comment
https://forums.phpfreaks.com/topic/65637-how-to-configure-cache-in-apache22/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.