Postgresql connection to 8.1 and 8.2 server.

2007-10-23 Thread Martin Marques
I need to connect to a local Postgresql 8.2 server and to a remote 
server with Postgresql 8.1.


Both 8.1-client and 8.2-client are installed, but I can't get 
/etc/postgresql-common/user_clusters configured correctly so that psql 
8.1 will be used when trying to connect to the 8.1 server and psql 8.2 
to the local 8.2 server.


Even more, it always gets the first definition that is in user_clusters.

user_clusters looks like this:

# USER  GROUP   VERSION CLUSTER DATABASE

*   *   8.2 main*
*   *   8.1 remote-server:5432   *

Any ideas?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Problemas with fail2ban

2007-10-07 Thread Martin Marques
I started seeing that fail2ban is not working properly on my debian 
server, while working in other places where I'm using other distros.


I started searching and found this in the logs after putting in 
debugging and restarting fail2ban:


2007-10-07 10:03:12,744 fail2ban.actions.action: DEBUG  iptables -N 
fail2ban-ssh

iptables -A fail2ban-ssh -j RETURN
iptables -I INPUT -p tcp --dport ssh,sftp -j fail2ban-ssh
2007-10-07 10:03:12,748 fail2ban.filter.datedetector: DEBUG  Sorting the 
template list
2007-10-07 10:03:12,752 fail2ban.actions.action: ERROR  iptables -N 
fail2ban-ssh

iptables -A fail2ban-ssh -j RETURN
iptables -I INPUT -p tcp --dport ssh,sftp -j fail2ban-ssh returned 200


What does the error mean? The fail2ban-ssh chain exists in iptables:

Chain fail2ban-ssh (0 references)
target prot opt source   destination
RETURN all  --  anywhere anywhere

But fail2ban doesn't block when I get up to 7 fails from the same IP, 
while I have it configured to ban at 3.


Any ideas?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Can't execute PHP script

2007-09-12 Thread Martin Marques

Randy Patterson wrote:


In the file;

/var/log/apache2/error.log

The only error that was listed concerned loading the favicon.ico file. Nothing 
regarding PHP.


Thanks,
Randy


Try with:

# a2enmod php5

Then restart apache2

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




PHP5 CLI + curl = Segmentation fault

2007-09-12 Thread Martin Marques
I have a script writen in PHP which is working on a production server 
ok. The thing is that I was adding some new functionalities to it and 
when testing it on my development server I get segmentation faults just 
when ending. Script executes great up to the end, but then sends the 
segmentation fault message to the STDOUT.


Both server are Debian etch updated, and the differences are in extra 
libraries installed in the development server.


Getting in deeper, commenting the extension lines in 
/etc/php5/conf.d/*.ini I found that the curl.so extension is what's 
giving these segmentation faults.


Should I file a bug report of dig in deeper?

Aparently mod_php5 for apache doesn't give eny trouble.

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: KDE login manager?

2007-05-13 Thread Martin Marques

Eric A. Bonney escribió:


Does KDE have a login manager similar to Gnome?  When my laptop boots up 
it first enters a login manager if you will that is Gnome.  Then when I 
login it brings up the KDE desktop.  Does KDE have anything similar?


$ apt-cache search kdm | grep kdm
kde-kdm-themes - Themes for the K Display Manager
kdm - X display manager for KDE
kdmtheme - theme manager for KDM


--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-
Martín Marqués  |   Programador, DBA
Centro de Telemática| Administrador
   Universidad Nacional
del Litoral
-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Idiot needs help enabling php in apache or apache2

2007-05-05 Thread Martin Marques

Land Haj wrote:

--- Indraveni <[EMAIL PROTECTED]> wrote:


Hi,
 
You add the following lines in your apache conf file,

probably, your httpd.conf or apache.conf file.

AddType application/x-httpd-php php PHP
AddType application/x-httpd-php-source .phps


let me know, if it works




It did, because it made me discover that I needed to clear the browser cache
:). I truly am an idiot! Sorry for bothering, and thanks a lot!


Nah, just add the apropiate links from mods-available to mods-enabled. 
Something like:


ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/php5.conf /etc/apache2/mods-enabled

Restart apache2 and you are done.

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]