This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Wednesday, February 23, 2011

create and configure htaccess for codeigniter

  1. Create .htaccess file on index.php.
    RewriteEngine On
    RewriteBase /sitename
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    
    
    php_flag display_errors on
  2. Enable rewrite_module on apache server.
  3. Enable include_module on apache server.
  4. Enable cgi_module on apache server.
  5. Enable short open tag on php server.
  6. Configure config.php become.
    $config['index_page'] = "";

Thursday, February 3, 2011

Install mikrotik in VMware

  1. Install VMware.
  2. Create virtual machine for windowsclient New->Virtual Machine.
  3. Edit Windows client virtual machine setting
  4. For windows client Network adapter1->VMnet1
  5. Create virtual machine for mikrotik New->Virtual Machine.
  6. Edit mikrotik Virtual Machine Setting
  7. For mikrotik Network adapter1->bridged and Netwok adapter2->VMnet1
  8. Add network address on network adapter1 (public)
  9. ip address add address=192.168.1.128/24 interface=ether1
  10. Add dns address
  11. ip dns set allow-remote-requests=yes primary-dns=192.168.1.254
  12. Set gateway address
  13. ip route add gateway=192.168.1.254
  14. Check connnection with ping request "ping google.com".
  15. Add network address on network adapter2 (local)
  16. ip address add address=172.168.1.254/24 interface=ether2
  17. Nat and masquerade firewall for continue data packet
  18. ip firewall nat add action=masquerade chain=srcnat out-interface=ether1
  19. Ip address setting for client
  20. ip address=172.168.1.2, gateway=172.168.1.254, dns=172.168.254