Archive for June, 2007

Remove all open_basedir restrictions in Plesk

If you want to remove all of the open_basedir restrictions for all sites in Plesk, simply create a file called /etc/httpd/conf.d/zzz_openbasedir_removal.conf and add this text within it:
<DirectoryMatch /var/www/vhosts/(.*)/httpdocs/>
php_admin_value open_basedir none
</DirectoryMatch>
Just a note, this isn’t a terribly great idea from a security standpoint.

Basic SNMP Configuration

If you want to get a really basic, wide-open for localhost setup for SNMP, just toss the following into /etc/snmp/snmpd.conf:
com2sec local 127.0.0.1/32 public

group MyROGroup v1 local
group MyROGroup v2c local
group MyROGroup usm [...]

Sub-par DNS stuff at DNSStuff

If you’re like me, you’re frustrated with DNSStuff’s actions lately. You only get 4 lookups without making a login, and even when you make a login, you have to log back in each time you access the site. Even a dim-witted web developer would know how to use cookies to automate this process [...]

Corrupt /dev/null

If you find that /dev/null is no longer a block device, and it causes issues during init on Red Hat boxes, you will need to follow these steps to return things to normal:

Reboot the server
When grub appears, edit your kernel line to include init=/bin/bash at the end
Allow the server to boot into the emergency shell
Run [...]

500 OOPS error from vsftpd

If you find yourself with the ever-so-peculiar 500 OOPS error from vsftpd when you attempt to login over SSH, there could be a few different things at play. Generally, this is the type of error you will get:

500 OOPS: cannot change directory:/home/someuser
500 OOPS: child died

You can search for a solution in this order:
Home Directory
Does [...]