HOW TO: SSH script freeze FIX
hit control+c if script seems to stop working...
A web and systems development journal (from a–too busy–web developer who does a lot of various IT work.)
hit control+c if script seems to stop working...
source: http://servermove.us/forum/viewtopic.php?t=251
Below are the Minimum Settings for proper security on your server. Failure to do so may (take this seriously) result in either server termination and/or support time charged to locate spamming issues and or hacks and kiddie scripts and hacks. This will also repair and keep repaired Fantastico if you are having the sourceguardian issue.
Choose the most appropriate question below to help solve your issue:
Overview:
Blocking and preventing brute force attacks is one of the main things you want to do on your web server to add a layer of security. While someone might not be targeting your site or server specifically, they will have automated tools that will try to guess random usernames and passwords that are common against your system. They’re essentially forcing their way to user only authorized area’s of a system, such as FTP accounts, e-mail accounts, databases, script based administration areas and root or any shell access are most common attempts. They will try multiple login attempts, guessing usernames and passwords, trying to force their way onto your machine.
# find . -exec grep 'text to find' {} \; -print 2>/dev/null
After a recent update to cPanel/WHM 9.9.9, outgoing emails stopped working on the RHE server (CentOS server wasn't affected).
Found this fix:
/scripts/exim4
/scripts/upcp
if that doesn't work... do
RESOLUTION: When mail should be delivered off-server for a domain, the domain should be:
1. Removed from /etc/localdomains
2. Added to /etc/remotedomains
optional: then run /scripts/mailperm
SitePoint
MysqlConnectClass (good explanation of thinking the OOP way):
http://www.sitepoint.com/forums/showpost.php?p=683454&postcount=4
Advanced PHP Resources:
http://www.sitepoint.com/forums/showthread.php?t=78687
What kernel/distro are you running? Show us the md5sum of sshd,
uname -r
cat /etc/*-release
md5sum /usr/sbin/sshd
I'm getting to know far more about servers than I ever wanted to, after hundreds of hours of Google research trying to squeeze/beat performance out of Apache. I do have 15 years programming experience in other areas, and I've reached the conclusion that the only experts in Apache/Linux are the programmers who wrote (and poorly documented) all this stuff. So I've gathered everything I could learn after countless hours of frustration and I'm writing this up in return for the immense amount of help I've received from the documentation of others.
http://forums.cpanel.net/showthread.php?s=&threadid=18781&highlight=reverse+dns
source http://www.askdavis.com/qmailtoaster/
Nate Davis - [email protected]
Last Edited: January 12th 2004
http://www.lifewithdjbdns.org/
http://cr.yp.to/djbdns/frombind.html
Everything is there , and the best part is, it is not cryptic like DJB's page!
Hello,
This is a combination of posts I have used in the past and have adapted to provide an excellent DNS solutions.
The prerequisites for this are just Two Servers and in this implementation 4 IP's(2 per server) as it makes it more understandable. Also you will require a web accessible domain on each server.
Basically it will allow you to use a combination of two servers to do your DNS for you one being the primary and one the secondary. You could use this for every two sets of servers you own OR possibly adapt it so that all your servers use just the two sets.
It is my intention to eventually use this solution so that DJBDns is used instead of Bind because it is so flakey and buggy in my opinion.
DJB has a $500 reward for any exploits discovered thats how good it is!
Anyway enough chat lets get down to business....................
What we are aiming for is the following set up
NS1.JOELMOSS.COM PRIMARY NS FOR SERVER 1 ON SERVER 1
NS2.JOELMOSS.COM SECONDARY NS FOR SERVER 1 ON SERVER 2
NS3.JOELMOSS.COM PRIMARY NS FOR SERVER 2 ON SERVER 2
NS4.JOELMOSS.COM SECONDARY NS FOR SERVER 2 ON SERVER 1
ÂÂ
good place to test your nameserver...
HOW-TO: Setting up Nameservers w/o Using Primary Server IP
There have been a number of threads with various bits and pieces of this process, but I haven't seen the entire thing in one place, so here goes. As always, modifying your server is done at your own risk and I accept no responsibility for anything that may happen.