TopicNavigationUser login |
ArticleSide-by-side Apache 2.2 and Ruby on Rails on RHEL3/4Download the latest Apache 2.2 sources from http://httpd.apache.org/download.cgi Untar the sources, and configure and install: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate \ --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-rewrite make make install
Submitted by jkelly on Wed, 2007-07-11 18:53. categories [ Apache | Article | Ruby ]
read more | 1 attachment
Basic LAMP Performance TuningLinux: sysctl -w vm.swappiness=20 echo "vm.swappiness = 20" >> /etc/sysctl.conf Installing qmail-scanner with PleskA couple of notes... using psa-spamassassin will result in all messages being scanned twice, which creates a lot of overhead. CGI troubleshootingSetting up: Addhandler AddHandler cgi-script .cgi .pl Options +ExecCGI ScriptAlias (if needed) Investigating outgoing spam issues on Plesk serversUse the modified qmHandle's qmHandle -tt to see the top senders/recipients. Look at one of the spam messages and look at the Received line, which will either show you a UID or received from network. If it shows you a UID, then the spam is coming from a compromised script. Qmail Logging DemystifiedHere's a typical log sequence for a message sent to a remote system from the local system: 1 @4000000038c3eeb027f41c7c new msg 93869 Snapshot script for crashing boxesThis script will be updated and available at: http://partytime.wackyfunster.com/leet/snapshot.sh Integrating ClamAV with Plesk/QmailHere are the steps for integrating ClamAV with Plesk/Qmail: * Stop all Plesk services and remove the drweb rpms service psa stopall rpm –e drweb drweb-qmail --nodeps --force * Add the Atomic Rocket Turtle archive to the rhn sources Process accountingMore to come up2date psacct chkconfig psacct on service psacct start cd /usr/local/bin wget wackyfunster.com/leet/sa-analysis wget wackyfunster.com/leet/sa-report chmod +x sa-*
Submitted by jkelly on Fri, 2006-09-15 01:53. categories [ Article | General Linux | Redhat Linux ]
Multiple queues in sendmailBy default, sendmail sends from a single queue. Needless to say, this is not ideal from a performance perspective. Fortunately, setting up sendmail to use multiple queues is easy! First, create a directory for each queue you want, e.g. mkdir /var/spool/mqueue/q{1,2,3,4,5}
Ensure that the permissions and ownerships are correct for your mail install (should be the same as /var/spool/mqueue). Edit /etc/mail/sendmail.cf to include a QUEUE_DIR definition with a wildcard including the appropriate directories: define(`QUEUE_DIR', `/var/spool/mqueue/q*')dnl Resolving issues with content created by apache/phpPlesk content within a specific domain should all be owned by (domain user):psacln, however many CMSes create content via php as apache:apache, which can lead to issues. Unfortunately, there is no good, clean "fix" for this that I'm aware of (other than setting up php in suexec mode, which opens a whole new "can of worms"), however a solution that I have used to great success in the past is setting up file acls for the appropriate domain user on each domain. Upgrading PleskNote: this article needs to be rewritten for Plesk 8.x. It should still have some useful information though! Preparing for a Plesk upgrade: Note: I have written a script which takes care of most of this, downloads appropriate tarballs, etc. however I recommend that you only use it if you know what you're doing. It can be found here for Plesk 7.5.4, or here for Plesk 8.x (downloads both 8.0 and 8.1 tarballs). Troubleshooting Plesk UpgradesError: Trying to apply 7.5.4 changes to database... ERROR 1067 (42000) at line 1: Invalid default value for 'srv_bandwidth' Fix: Brute-force login prevention via pam_ablpam_abl (the pam auto blacklist module) is a great way to protect against brute force attacks. It works by keeping track of failed login attempts, and blacklisting hosts (and/or users) that exceed a specified number of failed logins. Extracting files from an RPMIn order to perform operations on a .rpm file, we use the rpm2cpio and cpio utilities. In order to list the files in an rpm: rpm2cpio (rpm name) |cpio -itv To extract an individual file from an rpm (into the current directory): rpm2cpio (rpm name) |cpio -idv (filename) And to extract all files from the rpm (once again, into the current directory): rpm2cpio (rpm name) |cpio -idv
Submitted by jkelly on Fri, 2006-08-18 06:48. categories [ Article | General Linux | Redhat Linux ]
read more
Upgrading MySQLThis article relates to upgrading MySQL on Redhat linux, but may be applicable to other OSes as well. Here's the short version:
Submitted by jkelly on Sun, 2006-08-13 08:02. categories [ Article | MySQL | Redhat Linux ]
read more
Adding MySQL Users / Setting User PrivilegesThe syntax for adding a user is: mysql> GRANT [privs] ON [db] TO [user]@[host] IDENTIFIED BY [pass]; e.g. mysql> GRANT ALL PRIVILEGES ON testdb.* TO 'bob'@'localhost' IDENTIFIED BY '3kuh3Ok'; Would grant all privileges on the testdb database to the local user bob, with password 3kuh3Ok. MySQL Performance TuningMatt Mongomery at MySQL has developed a great MySQL "tuning primer" that will suggest basic performance tuning settings. It is available at: http://www.day32.com/MySQL/tuning-primer.sh MySQL should be allowed at least 48 hours of normal operation before running, to allow for the best suggestions. |
Linux JournalSlashdot |