WARNING !!! DONT DO THIS ON A LIVE PRODUCTION SERVER IF YOU DONT WANT TO GET YOUR ASS FIRED UP WITH THE LATEST TACTICAL WATER GUN THAT YOUR BOSS JUST BOUGHT
I have been dealing with this freaking computer for almost 10 years and still computers are dip shit. They still don't survive on a spilled coffee on the keyboard. Still they burn on a cigar.
Sometimes they look awfully that I don't want to look at it (eeeeeeeew) that sticky feeling while pressing that enter button!
I just want to share some troubleshooting technique ( sound preety guru) to those noobs (like me) out there that go for the aspirin when that headache starts when your boss or someone from those website services who cuts an amount on your work that YOU just signed up gets a bit really frustrating. ( no nagging! you signed up for those you freak! =) .
1. There is a weird cpu/ram high usage! What the fuck was eating the pinless i7 core!
- ants
- cockroach
- rats
- the secretary with the nice legs
use top and tail those two cum almost do the trick on linux and for windogs go check another site. I aint tellin yah!
tail the logs tail -f /var/log/messages tail -f /var/log/httpd/error.log or something like these those in the folder of /vae/log can save our brain going nuts. and keep the nutting on the secretary.
I'm not a guru im spiderdude so don't comment that you can do much better. I hate you =)
check the free ram - free m command
Some times the problem is not a problem you begin to install weird stiuff on the server and blame it with high usage FFSAKE! of course those DEMONIC HORDES that you install will become daemons ( enggg.. check daemon on wikipedia) that suck up the entire universe of the computer. Go upgrade your processor to eight core bad ass cpu.
Check for stale running programs the most culprits are httpd and mysql since they are the ones I always see ( i see dead proceeeesssss waaaaaaaaaa 4th dimension ghosties) try to assasinate them using the power of kill command like killall httpd this will kill all apache process and then run the service httpd start command on mysql i forgot and i hate to google right now google it for yourself if not mistaken its service mysql stop then service mysqld start ( i just put the warning sign above just now.)
Some culprits are also hacked server that has malicious codes injected on pages that activates when a user visits the site. image if you have a websie that is compromised and asking and asking sql commands on the server? you just need 1000 people that activates the sql and youll get a freaking high cpu usage due to httpd and mysq request. so ou can also limit this via child process or something like that in httpd.conf go to /etc/httpd/conf/httpd.conf and check for the settings. read on apache or google how to limit httpd resources.
This articles applies same to the ram basically two swords with no handle stucked in your ears both sides passing to the ear drum and pituitary gland.
2. Virus attack page - your website is compromised. Check the root logins and bash history. check for global infection on php.ini- secure /tmp folder there are lots of howto to secure the tmp folder. why it is 777? since many resources use that folder and pass programs, pages and poo on that folder if you set it in other than 777 the glorious number your mysql might not work or some problem will arise.
3. Install anti ddos and create firewall rules in ip tables.
If your mysql is just accessed by local server pages just cut the traffic coming from outside and secure it.
Secure the ftp to be chrooted and only the home folder of the user is accessible.
Check the website page permissions.
Do the mumbo jumbo password creation weird cryptic ensomatic passwords. like WE!@#DSD!#!WDQ@W#!~###QWEQWDSDASDsDSDASD!@#!DWDsdsdsdAS
DQWERETTHTJYJFGDFGERDFSGERFSDFSDFds
like that.
and the last part, DON'T FIX WHAT IS NOT BROKEN, BREAK IT FIRST = )

0 comments:
Post a Comment