Blogroll
-
Sponsor
Recent Comments
- kpsolution on How to limit connections per User IP in Apache 2.2 CentOs
- kpsolution on How to limit connections per User IP in Apache 2.2 CentOs
- Imazabe on How to limit connections per User IP in Apache 2.2 CentOs
- Thanks on GoDaddy NameServer not registered
- kpsolution on MySql Error#1005 – Can’t create table (errno: 121)
Author Archives: Ketan Patel
How to add a user to a group?
I keep on forgetting this command, so I put it here to remember it forever. To add a user ‘ketan’ to the group ‘admin’, do the following gpasswd -a ketanĀ admin Such a simple and each to use command!!!
How to create SVN repository?
This post will help you create a new SVN repository and it assumes you have the SVN installed & configured on your computer/server. To create the repository for first time, issue the following command svnadmin create –fs-type fsfs /var/www/subversion/kpsolution Then … Continue reading
mysqld.log grows too big in size
Recently on one of our new servers, we had an issue where the mysql daemon had halted on bus error. We couldn’t stop the mysql daemon using /etc/init.d/mysqld stop Then I looked at the error-log file for mysql in /var/log/mysql-error.log … Continue reading
How to create a simple linux device driver
Here, I would show you how to create a simple linux driver that does nothing! This just a demo to show you how to compile, install and remove the device driver. Before we get started, you need to make sure … Continue reading
Posted in compile, kernel, linux
Leave a comment
How to remove all comments in a file
If you are ever stuck in situation where you want to remove all the comments regardless of what they are in a source file. Here’s a small command that you can issue in VIM. It is for pattern search and … Continue reading
Posted in linux, php, Tips
Leave a comment
How to clear sendmail queue
If you ever felt the need of flushing the sendmail queue then this post will be handy to you. How to flush sendmail queue under linux sendmail mailq command in linux how to flush mail queue in sendmail under linux … Continue reading
Posted in linux, Tips
4 Comments
php header() function not working!
I was going nuts to find the problem why did the header() function didn’t redirect my page in some instance and did in others! Luckily I found this function ‘headers_sent()’ which will tell you if at any given point any … Continue reading
Posted in php
Leave a comment
Fatal error: Unable to read X bytes in file.php
If you got this error Fatal error: Unable to read X bytes in file.php, then: You have encoded your php files using Zend Encoder and uploaded to the server but gives you this error. This problem occurs due to your … Continue reading
Posted in php, zend
Leave a comment
MySQL not loaded in phpinfo()
This instruction is for LAMP technology. For WAMP, I will post later on. When you have mysql installed in your system, but you do not have mysql.so loaded in your php.ini file. Search for mysql.so in your php extensions directory. … Continue reading
Posted in linux
Leave a comment
How to edit HEX file in VI?
Open the hex file or any file that you want to edit in hex format in “vi“. Lets call that file “myFile.hex”. To open the file in “vi“, type in terminal “vi myFile.hex” After the file is opened in the … Continue reading