Master-Slave MySQL-5.1 Replication

Environment: RHEL: 5.3 MySQL: 5.1.54 Master : 1. MySQL user and group 2. Download and install MySQL 3. Create database 4. Master config 5. Password for root 6. Launch master 7. Create account for replication Slave : 1. Copy master application and data as slave 2. Slave Config 3. Launch Slave Test : 1. Check […]

Posted in MySQL, RHEL | Tagged , | 2 Comments

Example of nginx.conf

Download example of nginx config file : nginx.conf

Posted in Nginx | Tagged , , , | Leave a comment

Customizing Magento Module with Event-Observer

1. About the Module : This module is for media sync when deploying magento as distributed application Module located at : app/code/local/Kim/Syncmedia/ There are only 4 files list below to make that all : 2. app/code/local/Kim/Syncmedia/controllers/indexController.php 3. app/code/local/Kim/Syncmedia/etc/config.xml 4. app/code/local/Kim/Syncmedia/Model/Observer.php 5. Finally you need to enable the module with : app/etc/modules/Kim_Syncmedia.xml

Posted in Magento | Tagged | 2 Comments

PHP-FPM for RHEL

1. Patch PHP-FPM to PHP 2. PHP Configure Options for CGI/FastCGI (for help) 3. Install PHP 4. Modify php.ini and php-fpm.conf 5. Test and Start

Posted in PHP, RHEL | Tagged , | Leave a comment