Month: July 2015

Backup all databases nightly w/ mysqldump

5 July 2015

  Backup all databases nightly w/ mysqldump This is something very useful and everybody should be doing this. Because you can’t trusted the hosting provider backup.  So you should always make your own backup and here is the tools will help you make your own mysql backup with ease. #!/bin/bash DB_BACKUP=”/backups/mysql_backup/`date +%Y-%m-%d`” DB_USER=”root” DB_PASSWD=”secretttt” HN=`hostname | […]

Apache Error: “semget: No space left on device”

5 July 2015

Apache Error: “semget: No space left on device” If Apache fails, and will not successfully start again, check the error log. If you see an error similar to the following, it could indicate that your server has run out of semaphores. semget: No space left on device To see how many semaphores are being used, SSH to […]

HOWTO: /dev file system in chroot-ed environment

5 July 2015

HOWTO: /dev file system in chroot-ed environment Chroot is an operation that changes the apparent root directory for the current running process and their children. A program that is run in such a modified environment cannot access files and commands outside that environmental directory tree. This modified environment is called a chroot jail. As a a traditional UNIX […]