July 27, 2005

 Image caching via Apache to improve performance

Using Apache with the mod_expire module, you can define the Webserver to allow the client to "cache" images within @Mail, including java script and CSS files.

This greatly improves the load-time of the WebMail interface and reduces the bandwidth loads on the server.

Validate you are running Apache with the "expires_module" defined in the httpd.conf . This generally comes installed under Apache 2.X , older Apache 1.X is an option module build.

To enable edit the httpd.conf and define:

ExpiresActive On
ExpiresByType text/css "access plus 1 day"
ExpiresByType text/java script "access plus 1 day"
ExpiresByType image/gif A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/png A2592000

Next, restart the Webserver and any images used within @Mail are cached for 30-days from the original access-time.


Filed under: Interface — Ben Duncan @ 10:10 am

 

July 18, 2005

 Error: “undefined reference to `mpz_powm’&

When you recieve an error like this, when compiling ClamAV:../libclamav/.libs/libclamav.so: undefined reference to `mpz_powm'
../libclamav/.libs/libclamav.so: undefined reference to `mpz_get_ui'

Just do the following:

(more...)


Filed under: Anti-Virus — info @ 6:22 am

 

July 7, 2005

 “Bad Interpreter, permission denied” E

When you get the following error when compiling software:

"bash: ./configure: /bin/sh: bad interpreter: Permission denied"

This usually means that you are compiling your package in a partition which does not allow the execution of code. Normally, this occurs on user-mounted systems, where the following options are de facto:

/dev/hda-foo on /directory/foo type ext3 (rw,noexec,nosuid,nodev)

To fix this problem, you can either:

- unmount the partition, and re-mount it with the proper options,
- or move the binary/package to another partition that has exec rights


Filed under: OS — John Contad @ 6:21 am