Category Archives: Web

How to resolve error referring to the text “ap_cache_cacheable_hdrs_out” when starting Apache HTTP Server

I came across a need to enable the following links for the Apache HTTP Server, in order to enable response caching. Go to /etc/apache2 folder and give the following commands.

 

ln -s ../mods-available/file_cache.load file_cache.load

ln -s ../mods-available/mem_cache.conf mem_cache.conf

ln -s ../mods-available/mem_cache.load mem_cache.load

 

Once the above links were created, I tried to restart the server and it threw the following error

 

Read More

How to make video iPad, iPhone and iPod touch compatible with JavaScript, Flowplayer & HTML5–Internet–Tools & Tips for Multimedia Designers–Planet of the Web

How to make video iPad, iPhone and iPod touch compatible with JavaScript, Flowplayer & HTML5–Internet–Tools & Tips for Multimedia Designers–Planet of the Web.

Making your website video iPad friendly with JavaScript and HTML5

The iPad is a great device to watch video. According to newteevee.com, iPad users watch 3 times as much video as regular web users.

I can attest to that, I’d much rather watch movies on my iPad than on my iPhone, my laptop or…gasp…my TV. It’ also a great way to enjoy web tutorials since it frees your laptop’s screen to completely follow along with a tutorial.

Unfortunatelly, the excellent flowplayer, the video player I’m currently using, is a flash based player and Steve Jobs is not having any of that on his iPad. HTML5 is a good solution, but managing between the Flowplayer and HTML5 takes a bit of wrangling.

You might be thinking that it would be great to just use HTML5 for all of the videos, but it’s not supported by Internet Explorer 8, so until that happens we need a workaround. Luckily FlowPlayer can work in any browser as long as it has a flash plug-in, which means we can use it for everything except for Apple’s Mobile Devices and take care of those using HTML5. If you’re interested in HTML5, check out the excellent guide by Mark Pilgrim.

In the meantime you can use this technique to make sure your video plays on the iPad, the iPhone, and the iPod Touch, as well as in other browsers.

Read More

Run suid Perl scripts under Apache without suidperl using a really simple C wrapper

If Perl was installed on your computer without the ‘suidperl’ program, you can’t run suid Perl script.
One situation may be when you want to use your nifty administrative Perl tool from a web interface, i.e. run a script which requires root access.
Anyhow, your Apache server runs as user ‘http’ or ‘nobody’, which makes it impossible to use the Perl script with ‘suidperl’ missing.
Here is where we will use the C wrapper (calm down, you don’t need any C knowledge at all):
Assume that your Perl script is installed as ‘http://www.yourweb.com/cgi-bin/yourniftytool.pl’, but it doesn’t work very well… 🙁

Read More

Bad Behavior has blocked 56 access attempts in the last 7 days.