Archive for November, 2010
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 [...]
There’s a lot of attack going on on the web as we speak now. Without any invitation or any vulnerability exist on your web-apps, you will still see some attempt to hack into your site in apache log files. It doesn’t matter if you’re vulnerable or not, they will still come and try. Some of [...]
ffmpeg, command line media manipulation software
0 Comments Published November 18th, 2010 in Web design.Have you encounter any problem in converting media files, such as 3gp, mov, flv, mp3 and mp4. ffmpeg could be your best option, and besides, it is free. There’s alot of options which you can manipulate, from audio bitrate, video bitrate, sampling rate, stereo or mono, formats, and much more. I’ve collected some cheat sheet, [...]
Log rotate – make sure it doesn’t grow out of control
0 Comments Published November 12th, 2010 in linux, Open Source, Security.Server logs are very useful, only when you need it. And you never know when you might need them. You don’t want your application to white log file, and you’ll forgot about it until you run out of disk space. I’ve once encounter a log file thats 2GB in size. What you want to do [...]
Mysql backup script – backup all database
0 Comments Published November 11th, 2010 in bash, linux, Open Source.I did use this script to backup all mysql database in a server. It will search for all databases, and perform mysqldump on each database, and compress them into one big file. #!/bin/sh # System + MySQL backup script # Copyright (c) 2008 Marchost # This script is licensed under GNU GPL version 2.0 or [...]
Sed remove lines with matching expression
0 Comments Published November 10th, 2010 in bash, linux, performance.I’ve tried ab, Apache benchmark to test my web servers performance, and I can see, there’s alot of line in access log, the entry by ‘ab’, with the pattern line below xxxx.xxx.xxx.xxx – - [10/Nov/2010:21:13:22 +0800] “GET / HTTP/1.0″ 200 6639 “-” “ApacheBench/2.0.40-dev” I dont like to mess my apache log with these entries, that [...]



