Access MySQL prompt on DirectAdmin
The default MySQL installations on Linux have root user as the Admin user that has full access. DirectAdmin setups another Database user da_admin as Super database user. Password for it is stored...
View ArticleBulk Update DNS zone files serial
DNS zone files in Bind are refreshed by increasing the serial number that is in the format yyyymmddXX (e.g 2010121101 i.e 11th December, 2010 and serial number is 01). In case all DNS zone files on the...
View ArticleExtract specific rows from the database
mysqldump can be used to generate SQL Script for the complete database or any specific table. In case we need to generate sql script for specific rows or need to extract rows on any criteria, this can...
View ArticleRecursively change permissions on Linux
Permissions are changed by chmod command in Linux. -r flag can be used with chmod command to recursively change permissions but it will change permissions for all files and folders. If different...
View ArticleBackup mysql stored procedures
mysqldump is the utility to backup mysql databases. By default it generate backup for the complete database. In case only backup of stored procedures is required, this can be done as: mysqldump...
View ArticleEnable cache in 3ware raid Card
tw_cli is the management utility for 3ware Raid card. In case the cache needs to be enabled on raid card, this can be done as: root@server [~]# /path/to/tw_cli //server> /c0/u0 set cache=on Setting...
View ArticlePure-Ftp File display limit
pure-ftp is a popular FTP Server. By default has a display limit of 2000 files, this prevents the server from showing more then 2000 files when you browse a directory with a FTP client. If there will...
View ArticleRepair rpm database on *nix
1. Check for processes holding the rpm database open (usually in MUTEX/FUTEX states): lsof | grep /var/lib/rpm If it finds any, kill -9 them all. 2. Delete any temporary DB files: rm -fv...
View Articlecustom virtualhost settings in cPanel
cPanel allows custom modification to any website Virtual Host section. httpd.conf in cPanel server is no longer used as a data store and it is rebuilt based on information stored at...
View Articlephp configuration using rebuild_phpconf in cpanel
cPanel allows php to be configured as DSO, suPHP and FastCGI. PHP can be reconfigured using /usr/local/cpanel/bin/rebuild_phpconf script. This also allows to set the default PHP version (4 or 5) and...
View Article