Eric R. Thern
  • The worlds lousiest placeholder.*
  • Zoidial
  • Recent Posts
  • Research

Mysql plesk shortcuts

By Eric Thern On March 22, 2011 · Leave a Comment

Deleting a domain from plesk directly from mysql:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

select * from domains where id = 234
delete from domains where id = 234
delete from mail where id = 234
delete from domains where name =’domainname’;
delete from subdomains where id = 234
delete from [...]

Continue Reading →

Minimizing downtime associated with Web/DNS/Mail IP address migrations

By Eric Thern On April 3, 2010 · Leave a Comment

Migrating servers to new datacenters or IP addresses is never entirely problem free, usually due to many DNS servers on the internet not obeying TTL’s or caching old records for way too long.

These old cached DNS records (usually at different ISP’s, major mailservers like google, hotmail, yahoo, etc.) cause problems where they’ll route mail [...]

Continue Reading →

Moving wordpress from a subdirectory – and generation of 301 redirects from a google sitemap

By Eric Thern On February 25, 2010 · Leave a Comment

So I mistakenly have installed wordpress in a subdirectory on my site – this worked well for testing, but I didn’t buy this domain to have my entire site sitting within a subdirectory!

WordPress has a good guide on this subject, which has step by step instructions on migrating your installation from one directory to [...]

Continue Reading →

Dell 1650 server and IPMI support on CentOS 5

By Eric Thern On January 18, 2008 · Leave a Comment

So I bought a Dell 1650 server on ebay for cheap. I loaded it up with three 36gb U160 10,000 RPM SCSI disks in a RAID 5 array, loaded up CentOS 5 and off I went.

Once it was at the data centre, I wanted to monitor the system a bit. This meant I wanted [...]

Continue Reading →

Sendmail premissions error stopping mail from sending on CentOS 5.1

By Eric Thern On January 17, 2008 · Leave a Comment

Really stupid issue with permissions on CentOS 5.1 and real easy fix, since there were improper permissions on the mqueue and clientmqueue directories.

The Error message:

Tried to send mail via command line using ‘mail’ command, and it returned this error:

can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode [...]

Continue Reading →

FreeBSD Plesk 8 – installing php5 as CGI alongside php4

By Eric Thern On November 26, 2007 · Leave a Comment

If you have ever needed php5 to run along side php4, you can always compile php5 as a CGI, and let php4 remain as an apache module.

Here we’ve compiled php5 from FreeBSD’s ports, and have installed it as a CGI so that specific vhosts will run on this new php5. The installation was done [...]

Continue Reading →

Updating Spamassassin on FreeBSD and Plesk

By Eric Thern On November 21, 2007 · Leave a Comment

Updating Spamassassin on Plesk and FreeBSD is quite simple without breaking things since the Spamassassin on Plesk is pretty standard.

System: FreeBSD 6.x
Plesk Version: 8.0.x

May work with other versions.

The stock plesk Spamassassin is a 3.1.x variant, which gets pretty old pretty quick. You can upgrade this via the ports by passing [...]

Continue Reading →

Keeping servers and workstations on time using cron and ntpdate

By Eric Thern On October 3, 2007 · Leave a Comment

I’m a fan of having all my computers report the same time, especially when I have to cross reference logs on different servers and require the times to all match up.

I’ve used rdate to update time in the past, but lately have been using ntpdate, which seems to be quite a bit better.

One [...]

Continue Reading →

Dealing with Apache referrer spam

By Eric Thern On September 29, 2007 · Leave a Comment

I’ve had a number of sites get hammered by referrer spam lately, and had to look into methods of stopping, or at least slowing the attacks.

Referrer spam is when a group of random (probably trojan or hacked computers) or single computers hit random pages on your site with faked referrer values, typically all [...]

Continue Reading →

FreeBSD pkgdb.db error

By Eric Thern On April 4, 2007 · 1 Comment

What happens with FreeBSD pkg and ports ends up with a corrupted database?

This happens from time to time, here’s how it was solved:

# pkgdb -F
—> Checking the package registry database
[Updating the pkgdb in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb [...]

Continue Reading →
  • Categories

    • apache (4)
    • freebsd (4)
    • general (1)
    • linux & freebsd (13)
    • php (1)
    • plesk (3)
    • sendmail (2)
    • system administration (1)
    • uncategorized (1)
    • vmware (1)
  • Recent

    • GPS data conversion
    • Mysql plesk shortcuts
    • Linux (desktop or server) with md RAID-10
    • Minimizing downtime associated with Web/DNS/Mail IP address migrations
    • VMWare 2.0.x and CentOS 5.4 glibc crashes and instabilities – a workaround solution
  • Topics

    apache apache ddos spam apache referrer ddos apache referrer spam awk bash centos cli client_pref cron dell 1650 djpeg freebsd freebsd 6.x gocr grep httpd.conf image text recognition ipmi ipmitool linux linux & freebsd lm_sensors mailscanner mod_rewrite mod_rewrite blocking of spam ntpdate ocr OpenIPMI optical character recognition permission denied php php4 php5 plesk plesk 8.0.x rpm sendmail sort spam spamassassin suspend tesseract time yum
  • Links

    • Thern Incorporated
  • Admin Links

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Eric R. Thern

Pages

  • Recent Posts
  • Research
  • The worlds lousiest placeholder.*
  • Zoidial

The Latest

  • GPS data conversion
    Handy gpsbabel conversions: Google KML to GPX: To translate waypoints into tracks, […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2011 Eric R. Thern
Platform by PageLines