Skip to main content

Oldposts

2007


Relay access denied

·151 words·1 min
If you’re checking through your mail logs, or you catch a bounced e-mail with “554 relay access denied” in the bounce, the issue can be related to a few different things:

Horde refreshes when logging in

·51 words·1 min
If you find that Horde (with Plesk) keeps refreshing when you attempt to log in, and there are no errors logged on the screen or in Apache’s logs, check the session.

Plesk SQL Statements

·126 words·1 min
When you need to find information about anything in Plesk, here’s some SQL statements that you can use:

Add SPF records to all domains in Plesk

·127 words·1 min
If you find yourself in the situation where you need to bulk add SPF records to every domain in Plesk, you can use this huge one-liner:

Telnet POP3 Commands

·36 words·1 min
If you ever need to communicate with a POP3 server via telnet to test it, here’s some commands you can use:

SSL connection to a non-secure port

·57 words·1 min
If you have weird SSL errors and this one appears, you are trying to speak SSL to a daemon that doesn’t understand it:

Disable SSH timeouts

·65 words·1 min
To pretty much completely disable SSH timeouts, simply adjust the following directives in /etc/ssh/sshd_config:

Pre-upgrade Plesk Backup

·48 words·1 min
Before you upgrade Plesk, it’s always a good idea to make a backup and also make your ip and shell maps:

Disable SSLv2 in Lighttpd

·30 words·1 min
As with most things, turning off SSLv2 in Lighttpd is much easier than in Apache.

Plesk Database Schematic

·34 words·1 min
I’ve heard a lot of people are interested in something like this, so I decided to create it.

Lighttpd proxy to Tomcat

·459 words·3 mins
It seems like lighttpd and Tomcat are at the forefront of what is ‘hot’ these days.

Setting the hostname in Sendmail

·33 words·1 min
If you need to change the hostname that Sendmail announces itself as, just add the following to sendmail.

Reset MySQL root password

·92 words·1 min
If you’ve forgotten the root password for a MySQL server, but you know the system root, you can reset the MySQL root password pretty easily.

Adjust max_execution_time for Horde in Plesk

·151 words·1 min
Often times, the wonderful webmail application known as Horde will spin out of control and cause unnecessary resource usage and often cause defunct Apache processes to appear.

Forcing HTTPS with PHP

·22 words·1 min
To force HTTPS with a PHP script, just put this snippet near the top:

Redhat ES DST Links

·12 words·1 min
If you need Redhat DST change information, you can get it here.

Finding compromised scripts

·53 words·1 min
If your server is sending out spam because of some bad scripts, hunt that stuff down:

Disabling SSLv2 in Plesk

·59 words·1 min
To disable SSLv2 server-wide on a Plesk server, add this in your /etc/httpd/conf.

Hide Apache Version

·23 words·1 min
If you want to hide the current version of Apache and your OS, just replace

New DST changes for 2007

·43 words·1 min
As you may or may not know, there’s new Daylight Savings Time changes in 2007.

Understanding LVM

·671 words·4 mins
LVM is handy when you want additional flexibility to grow or shrink your storage space safely without impacting filesystems negatively.

Bulk IP update in Plesk

·442 words·3 mins
There’s lots of situations where you’d want to use a bulk IP change in Plesk:

Finding compromised mail accounts in Plesk

·291 words·2 mins
If odd bounced e-mails are coming back to the server or the server is listed in a blacklist, some accounts may be compromised on the server.

Cisco Logging to RHEL

·111 words·1 min
If you have a Cisco device logging to RHEL, here’s all that’s necessary:

Wave the Plesk magic wand

·51 words·1 min
If Plesk ever appears to be out of sync with the configuration files, or if there’s a Plesk issue that’s occurring that makes no sense at all, just stand back and wave the Plesk magic wand:

Make Apache logs mimic IIS

·31 words·1 min
To make Apache write logs similar to IIS, toss this into your Apache configuration:

Moving mail between some Plesk servers

·115 words·1 min
If you’re migrating a domain, sometimes their mail will go to the old server for a while after you’ve changed the DNS.

Verify that SSLv2 is disabled

·74 words·1 min
If you’re looking to get PCI/CISP compliance, or you just like better security, disable SSL version 2.

Plesk admin user can’t login

·47 words·1 min
Okay, so you’ve verified that the correct admin password is being used, but you still can’t login?

Argument list too long

·39 words·1 min
If you have a ton of files in a directory and you need to remove them, but rm says that the “argument list [is] too long”, just use find and xargs:

Strip off www from URLs with mod_rewrite

·56 words·1 min
If you need to remove subdomains from the URL that users enter to visit your website, toss this into your VirtualHost directive:

Sum Apache Bandwidth From Logs

·34 words·1 min
If you’re not a fan of scientific notation, use this to calculate the apache bandwidth used from log files in MB:

Repairing the qmail queue

·280 words·2 mins
There’s three main things to remember when it comes to the qmail queue:

Securing MySQL

·419 words·2 mins
If you work on enough servers, you discover that a lot of people put the security of their MySQL server on the back burner.

MySQL Row & Data Limits

·197 words·1 min
As most folks know, by default, MySQL limits the size of a MyISAM table at 4GB.

2006


About Sticky Bits

·333 words·2 mins
Sticky bits help you take file permissions to the next level.

Can’t Kill Sendmail Processes

·98 words·1 min
If you find yourself in the sticky situation where kill -9 still won’t kill a sendmail process, check the process list.

Fedora/RHEL/Centos Won’t Init

·127 words·1 min
In the event that a Fedora/RHEL/CentOS box won’t perform the init (which comes right after the initial kernel load), don’t fret - it can be fixed.

Raising MaxClients? Change ServerLimit.

·114 words·1 min
Remember, if you raise MaxClients for an MPM in Apache, you must raise the ServerLimit directive, which is normally set to 256 on most servers.

Rootkit Checks on RHEL

·206 words·1 min
If you think you have a rooted RHEL box, you’ll want to run the usual rkhunter, chkrootkit, and you will want to inspect for rogue processes.

Group Editing With FTP

·223 words·2 mins
So you have multiple users that need to read and write to certain files on the filesystem?

Fixing Invalid HELO’s

·329 words·2 mins
If your server is spewing an invalid HELO, you could be blacklisted pretty quickly.