You are here

Tip

Cyrus sasld testsaslauthd connect() : No such file or directory 0

Submitted by Druss on Wed, 2012-07-11 01:22

While trying to debug a postfix authentication issue in Debian 6, I had to use testsaslauthd to test things out:
testsaslauthd -s smtp -u foo@example.com -p test

only to get the following error:
connect() : No such file or directory 0

This is apparently because a lot of people (and authors) follow the same guide for configuring postfix and saslauthd. One of the steps missing is to symlink and saslauthd directory to a location within postfix. To fix:

Nagios: error: Could not stat() command file /var/lib/nagios3/rw/nagios.cmd

Submitted by Druss on Mon, 2012-07-09 19:39

I've been trying to .. empower .. the Nagios 3 web interface in Ubuntu/Debian to allow me to turn off service checking at will. I do this when I am checking logs etc. to debug some issue and all the spam from Nagios' polling is getting in the way. Nagios comes with an option to "disable active checks of this service" which when click should, well, disable active checks of the service. Clicking it, however, resulted in the following message:

Nagios is currently not checking for external commands.

Drupal: PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY'

Submitted by Druss on Sat, 2012-07-07 23:38

While setting up Drupal on a friend's Ubuntu server, I ran into the following error message:

PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /var/www/mysite/includes/database/mysql/database.inc on line 42

This basically simply means that the PHP PDO extension has not been installed. It can be installed via something along the lines of:
sudo aptitude install php5-mysql

While you are at it, make sure that all the other PHP extensions that Drupal requires are also installed.

Postfix/Sendmail: Frequent emails from smmsp to root

Submitted by Druss on Fri, 2012-07-06 03:31

I just finished setting up postfix on a Debian 6 machine. All is peachy. However, when I checked my mail logs to see how things were going I noticed a number of entries for messages being sent from smmsp@example.com to root. Checking root's mail led to messages with the following content:
/usr/share/sendmail/sendmail: line 880: /usr/sbin/sendmail-msp: No such file or directory

Command-line downloading files behind an authentication wall

Submitted by Druss on Sat, 2012-06-30 00:25

I often find myself in situations where I want to download a file from the command-line using tools such as wget. While there are many reasons to doing so, today I needed to do it due to the size of the file and the fact that I needed it on a webserver of mine. So instead of downloading it first to my desktop and then uploading it to my server, I wanted to simply download the file directly from my webserver via the command-line.

Linking Adsense account to Google Analytics account

Submitted by Druss on Mon, 2012-05-21 23:40

The new Google Analytics interface is quite nice if often annoying. One of the many issues I have been having with it is linking the Adsense account for one particular domain to its equivalent Analytics account. Most of the help documentation is for the previous version of the Analytics interface and the newer docs are not terribly helpful at all. The latter simply keeps asking me to go to the Admin tab and linking the Adsense account by clicking on it or something trivial like that.

Pages

Subscribe to RSS - Tip