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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
Pages
Categories
Topics
apache apache ddos spam apache referrer ddos apache referrer spam awk bash centos cli client_pref 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 ocr OpenIPMI openvz optical character recognition permission denied php php4 php5 plesk plesk 8.0.x rpm sendmail sort spam spamassassin suspend templates tesseract upgrade yumLinks
