March 2014

Run/Include php code in .shtml   To run php code in .shtml add below Apache directive’s either in .htaccess .   # vi .htaccess AddType text/html .shtml AddHandler server-parsed .shtml AddType application/x-httpd-php .shtml RemoveHandler .shtml .html .htm Options Indexes FollowSymLinks Includes XBitHack on DirectoryIndex index.shtml …

Database backup and restore with mysqldump command.   The mysqldump client is backup program. Also it can be use to dump a database or database collection for backup or transfer to another server. It takes backup in .sql format. Syntax: mysqldump -u username -pPassword database_name …

How to enable server side(SSI) include in Apache   What are SSI? SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing …

       Manually Sync Two MySQL Databases with mysqldump command Here we see how to sync two mysql databases with Linux mysqldump command.. For testing purpose I created two databases. Database 1 : sunil_test Database 2 : sunil_test1   Database 1: sunil_test   Database 2:  sunil_test1 …