Seekbrain.com

Brain Seeking at it’s Best

Code Snippet

Filed under: Software — Perlboy at 10:29 am on Saturday, February 18, 2006

Command to find all PHP rpms and print on one line:

rpm -qa | grep ‘^php-’ | perl -pe ’s/\n/ /g;’

Combined command to find all PHP rpms and remove them:

rpm -e `rpm -qa | grep ‘^php-’ | perl -pe ’s/\n/ /g;’`

Have fun!

Stuart

Saslauthd & Postfix

Filed under: Software — Perlboy at 1:14 pm on Thursday, February 16, 2006

This is mainly posted for those people searching on Google.

I just setup a Postfix install with Saslauthd authentication (to an LDAP backend). Postfix refused to do TLS authentication stating (in the maillog):

warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory

This message isn’t at all helpful in actually TELLING us how to fix this problem. However, it turns out that the build of Postfix Redhat ships looks for Saslauthd’s socket in /var/state/saslauthd while the Redhat shipped Saslauthd version sets itself up in /var/run/saslauthd. Changing the SOCKETDIR (/etc/sysconfig/saslauthd) to /var/state/saslauthd fixes the Postfix issue.

To get testsaslauthd to work I also removed the now deprecated /var/run/saslauthd directory and symlinked it directly to /var/state/saslauthd

Hopefully this will be useful to another frustrated admin like myself.

Stuart

PHP4, PHP5 & MySQL RPMs Released

Filed under: Software — Perlboy at 7:03 am on Friday, January 20, 2006

Heya,

I’ve released RPMs for the following package sets:

  • PHP 4.4.2 Standard Build
  • PHP 5.1.2 CGI Build (ie. for side by side operation between PHP4 & PHP5)
  • MySQL 4.1.16 Standard Build

I’ve only compiled & tested these for the following distributions:

  • Redhat Enterprise 3 (CentOS3)
  • Redhat Enterprise 4 (CentOS4)

Compiled RPMs & Source RPM packages are available from:

http://www.seekbrain.com/downloads/psa/

These should also be yum’able. :)

If you have problems with a package, post a comment and I’ll see what I can do.

Enjoy,

Stuart

P.S. If you want to use PHP5 without needing a shebang line on your .php5 scripts add the following to your rc.local:

# Allow PHP5 to run without shebang
modprobe binfmt_misc
echo ':PHP5:E::php5::/usr/bin/php5/php:' > /proc/sys/fs/binfmt_misc/register

Redhat integrates OpenVZ

Filed under: Software — Perlboy at 9:21 pm on Thursday, January 19, 2006

Hmm!

This looks interesting indeed. Redhat are teaming up with OpenVZ to integrate the partitioning technology into the Fedora Core.

I’m keen Redhat, where do we start! :)

Stuart

Yay

Filed under: Software — Perlboy at 8:59 am on Friday, September 9, 2005

Well,

I did an upgrade of 32 Plesk servers last weekend. 7.5.4 is many times faster then it’s predecessors. I’ve also built in PHP4, PHP5-CGI & MySQL RPMs which I’ll release and announce here sometime in the next week or so. MySQL 4.1 is quite handy but requires the old-passwords addition to it’s runtime parameters to not break PHP4 functionaility under Plesk.

In other news, we had our Project Plan review this morning and I have to prove our use of our SRS later today. It’s now 9am and I’m rather bored waiting around though. :o I guess now might be an ideal time to begin my Individual Component due next week. Ick…

Have now started a fulltime job at an “undisclosed” employer (for now because I know who reads this blog ;)). Have been coding C and Perl for the past 2 weeks and lately just felt like I could handle human interaction unless it was put into an IF() THEN { } ELSE { } statement. Oh god…

Nonetheless, the cluster is looking pretty funky and we’ve managed to create an enterprise solution using fairly commodity hardware. What can I say, it takes skills to make something available 24/7 guarenteed and not spend 50K doing so. :)
Serverpeak stuff has been going well with a continual increase of server management plans keeping income coming in. We also released dedicated servers with our bottom of the line (P4 1.6Ghz, 512MB RAM) selling out within 2 weeks. That was a tad crazy. :-/ In the meantime we’ve discontinued our sale of support desk plans purely because I’m unable to commit the time required to ensure a good quality of service for our customers.

Umm, that about wraps it up for me. Sal and I are currently considering looking at a house in Ashgrove for next year (it’s closer to my employer). I also have to sort out my Passport photo before Mrs. Park gives me another reving. They’re in Turkey at the moment so we have a car for 6 weeks. Yippeee…

Now I just have to get my Ps and stop being a lazy mutha….

Anyways, that’s about it for me. Adios amigos.

Stu

« Previous PageNext Page »