Archive for category Uncategorized

Tess

tess post

tt twitter micro3 Tess

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Incoming search terms:

  • openbsd proxmox
  • why is my wordpress site blank hello world

tt twitter micro3 Hello world!

Premature end of script headers: /cgi-bin/cachemgr.cgi

I have success install openbsd 4.9 on proxmox server (server virtual enviroment ) and will be replace oldest openbsd 4.7.

My Oldest Openbsd machine running DHCP server , Smokeping Graph ( Monitoring latency ) , MRTG (Multi Router Traffic Grapher) also SQUID ( proxy Cache ) Apache ( default installed come with openbsd ).

Basicly i must make sure my new machine working with squid and compatibel with my latest squid configuration ( exsample: No Facebook & Youtube on working hour ).

After finish install squid ( if you have problem install application on openbsd you follow in here )

If you have squid and want monitoring they was a great tool to do that , is call Cachemgr.

At Cachemgr will be show you healthy Squid so i configure squid to use it only 2 options must be activate.

cachemgr_pass your_password all

cache_mgr you_name_user

dont forget to squid -z [create swap disk) before runing squid.

You copy cachemgr.cgi from /usr/local/libexec/cachemgr.cgi to /var/www/cgi-bin/

and make newfiles cachemgr.conf put in /etc/

Ussually when monitoring your healthy squid using cachemgr.cgi you must activated your webserver then you can access in

http://ipyoursquidserver/cgi-bin/cachemgr.cgi

if you can’t access it and show error message internal error and you findout in apache error log like this :

error log from webserver “Premature end of script headers: /cgi-bin/cachemgr.cgi “

that show your cachemgr.cgi need to be check , as we know default webserver(apache) on openbsd running in chroot enviroment so when we installed script or application need more threatmen.

here to resolv it .

#ldd /usr/local/libexec/cachemgr.cgi
/usr/local/libexec/cachemgr.cgi:
Start End Type Open Ref GrpRef Name
1c000000 3c00e000 exe 1 0 0 /usr/local/libexec/cachemgr.cgi
0f554000 2f55c000 rlib 0 1 0 /usr/lib/libm.so.5.2
0c7b1000 2c7ba000 rlib 0 1 0 /usr/lib/libpthread.so.13.1
00084000 200b8000 rlib 0 1 0 /usr/lib/libc.so.58.0
0752a000 0752a000 rtld 0 1 0 /usr/libexec/ld.so

That show library file need to running cachemgr.cgi so you must copy it to chroot.

#mkdir -p /var/www/usr/lib/

#mkdir -p /var/www/usr/libexec

#cp /usr/lib/libm.so.5.2 /var/www/usr/lib/

#cp /usr/lib/libpthread.so.13.1 /var/www/usr/lib/

#cp /usr/lib/libc.so.58.0 /var/www/usr/lib/

#cp /usr/libexec/ld.so /var/www/usr/libexec/

and try againt …. you will show login page

and that it for to day have a nice day

Incoming search terms:

  • Premature end of script headers: cachemgr cgi
  • cachemgr cgi
  • premature end of script headers: smokeping cgi
  • Premature end of script headers cgi
  • Ejecutable cachemgr cgi de Squid
  • how to install cachemgr cgi
  • premature end of script headers cachemgr cgi
  • Premature end of script headers: /cgi-bin/cachemgr cgi
  • premature end of script headers: cgi
  • cache for cgi script

tt twitter micro3 Premature end of script headers: /cgi bin/cachemgr.cgi