Archive for the 'PHP' Category
Purging in varnish.
0 Comments Published October 20th, 2011 in linux, monitoring, Open Source, performance, PHP.You might already know varnish. Its a so called website accelerator. It will sit in front of your web server as a reverse proxy, listening on port 80, handling static contents based on the configuration files, and pass all dynamic requests to the main web server behind it. varnish will help alot to reduce request [...]
Found a webshell in your server account? It might not be the only one
0 Comments Published March 4th, 2011 in bash, monitoring, Open Source, PHP, plugins, Security.Have you ever encounter your site have been compromised, and you found some weird file being uploaded into your hosting account? Thats what the first thing the attacker would want to do on a web attack, to upload a webshell. Webshell is some kind of web-based backdoor, usually protected by a password, and allow the [...]
Unable to locate wp-content folder
1 Comment Published November 26th, 2010 in Open Source, PHP, plugins, themes, Wordpress.I had a few encounters with this problem. I’m thinking of placing it here. I always forget where I got the solutions. This happens when you want to install plugin or themes, or upgrading them. Given that you have the FTP credentials correct, there some glitch where you might encounter this problem. One way, it [...]
I bump into a problem when I need to filter my application to be accessed from certain IP only. So, some googling around, i found s simple code to do this. $targetAddr = “192.168.1..*”; if (ereg($targetAddr, $_SERVER['REMOTE_ADDR'])) { echo “”; } else { die(“Sorry. Not allowed from your IP.”); } This simple script will allow [...]
mysql down? need restart? but when?
0 Comments Published September 29th, 2009 in bash, linux, Open Source, PHP.Last few weeks I have these problem, where my server could not handle so much connection made to the server. The server have been upgraded, and the loads have been reduced. But there is some connection that stuck, that makes my apache died. Last 2 days it happen once, when I got a LAST_ACK DDOS [...]
Spam Check with BotScout.com and StopForumSpam.com through PHP.
2 Comments Published September 25th, 2009 in HoneyPot, PHP, plugins, spam fighting, Wordpress.If you managing a wordpress site, or any CMS, I’m sure you will encounter spam activity. It is actually a bot, or a small program that will come and visit your site, to register or post a comment. Thanks to Akismet, a default plugin that bundled together in WordPress package, that blocked most of it. [...]



