Tuesday, October 13, 2009

joomla and different templates

i needed to use , associate, multiple a different template for each menu item...


here's what I found, 't was easy:

http://www.joomlatribune.com/joomla-tutorials/how-to-use-sections-with-different-templates.html

Saturday, October 10, 2009

segmentation fault

in ubuntu, when i installed php5-curl, the next day when I executed a cli script, i got the error "segmentation fault"...

this post helped me get over it: from http://bugs.php.net/bug.php?id=43823


...
I'm having the same problem on 3 diferent Linux distributions Ubuntu,
Debian and Centos. The last one is a 64bits OS.

On Ubuntu and Debian it was solved changing the order of the extensions
on the ini files. In my case I had to load Postgres extension before
CURL.

Friday, October 9, 2009

Option Indexes apache directory listing

today I had a rough time trying to set up my apache for it to show the files in a directory using "Option Indexes"

I fiiinally found out that not only this directive is necessary, but also to have "autoindex" module enabled.

on ubuntu this is done: "a2enmod autoindex"

that's all....

if you want to protect directory listing under a user/password, google this on .htaccess (this is only hint of my file a friend helped me configure):

$ cat .htaccess
AuthUserFile /var/www/data-planteles/.htpasswd
AuthName "my unique name"
AuthType Basic
require valid-user

cancel script completely on ctrl-c

I found this question interesting: basically how to cancel completely a script and all child processes : You do this by creating a subro...