Debianzone http://debianzone.posterous.com Most recent posts at Debianzone posterous.com Tue, 29 Jun 2010 10:46:31 -0700 MySql Database Replication http://debianzone.posterous.com/mysql-database-replication http://debianzone.posterous.com/mysql-database-replication When we search for `Database Replication` we will find lots of tutorials, so here I wont add new one, I am just highlighting one of the best tutorials to refer. http://www.howtoforge.com/mysql_database_replication This article contains simple copy & paste steps to configure MySql replication, if you need more detailed indepth explanation on different configuration settings then go to http://dev.mysql.com/doc/refman/5.0/en/replication.html

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/894020/a9105079458196173bfc8734807b32ed.jpeg http://posterous.com/users/4xlDDq0UWIA9 Sandeep Manne smanne Sandeep Manne
Wed, 17 Mar 2010 17:16:00 -0700 Page level caching using nginx http://debianzone.posterous.com/page-level-caching-using-nginx http://debianzone.posterous.com/page-level-caching-using-nginx

Many of our dynamic sites contain rarely updated content (ex. blog archive page). By adding nginx server as proxy server infront of your apache server you can server those pages like static pages instead of running the page for every request, this will boost your site speed from 50% - 400%. We need apache, nginx to work with this tutorial To install nginx on debian please follow this link http://timothybowler.com/2009/11/25/compiling-nginx-on-debian-lenny/ Note: Dont install using aptitude it contains older version where gzip and proxy module not available, Modify apache ports.conf to run apache on port 8080 Add this lines to default site of nginx [shell]

server { listen 80; server_name debianzone.com; location / { proxy_pass http://debianzone.com:8080; proxy_cache debianzone-cache; proxy_cache_valid 200 302 60m; proxy_cache_valid 404 1m; } } [/shell] Add this in http section of nginx.conf[shell] http { proxy_cache_path /var/www/cache levels=1:2 keys_zone=debianzone-cache:8m max_size=1000m inactive=600m; proxy_temp_path /var/www/cache/tmp; }

[/shell]

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/894020/a9105079458196173bfc8734807b32ed.jpeg http://posterous.com/users/4xlDDq0UWIA9 Sandeep Manne smanne Sandeep Manne
Sat, 05 Dec 2009 11:59:40 -0800 Changing host name of Linux server http://debianzone.posterous.com/changing-host-name-of-linux-server http://debianzone.posterous.com/changing-host-name-of-linux-server To change the host name of current session use
/bin/hostname your-host-name
To change the host name permanently use
/etc/hostname
/etc/init.d/hostname.sh start

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/894020/a9105079458196173bfc8734807b32ed.jpeg http://posterous.com/users/4xlDDq0UWIA9 Sandeep Manne smanne Sandeep Manne
Sat, 28 Nov 2009 14:16:55 -0800 Intel poulsbo Drivers for Ubuntu http://debianzone.posterous.com/intel-poulsbo-drivers-for-ubuntu http://debianzone.posterous.com/intel-poulsbo-drivers-for-ubuntu Many people after installing Ubuntu for the first time or after Kernel update facing the problems with display drivers of Intel Poulsbo chipset. Here is steps to repair your display For new installation: Update aptitude sources
vi /etc/apt/sources.list
and add this lines
  • deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main
  • deb-src http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main
Then
apt-get update
apt-get install xserver-xorg-video-psb
For people facing problem with display after updating kernel use this
sudo dpkg-reconfigure psb-kernel-source

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/894020/a9105079458196173bfc8734807b32ed.jpeg http://posterous.com/users/4xlDDq0UWIA9 Sandeep Manne smanne Sandeep Manne
Sat, 28 Nov 2009 13:50:46 -0800 Debian / Ubuntu Apache SSL Configuration http://debianzone.posterous.com/debian-ubuntu-apache-ssl-configuration http://debianzone.posterous.com/debian-ubuntu-apache-ssl-configuration Hey you are planning to start a e-commerce website, then you must know about SSL without which no one will trust your website as a safe place to use their cards… What is SSL? SSL (Secure Socket Layer) is a protocol used for secure data transfer. This is done by using private keys and certificates. A private key is used to encrypt the data which you are sending and the server can only decrypt this data with the private key available with it, A certificate is used to authentic yourself before proceeding. So we need two things to make our website secure for online transactions. In this article i will explain how to generate a private key, certificate request with open-ssl and apache, get certificate from CA (Certificate Authority), configure your server to respond for ssl requests. Different types of certificates Before going to configuration I will explain about the different types of certificates available in the market and when to use which. The certificates are mainly divided into High Assurance and Low Assurance, High assurance is needed for sites dealing with financial transactions, low assurance is needed for internal corporate networks or small websites and mainly used for secure login to site and sending sensitive documents securely. Remember every byte you are sending through http protocol means non-ssl layer can be seen or accessed by anyone. Configuration: I used Apache 2, Debian Linux, Openssl for this configuration. First step is to install Apache: Go to console mode [shell]aptitude install apache2 [/shell] next install openssl to generate keys and certificates or certificate requests [shell]aptitude install openssl [/shell] next generate certificate request and key using openssl [shell]openssl req -new -nodes -keyout linuxforu.key -out linuxforu.csr[/shell] Here you want to fill up details like Country code, State, City, Company name, the most important thing is common name, it must be same as your website name (suppose you website is www.linuxforu.com then the common name must be linuxforu.com). This will generate two files in your directory one is a private key file (myserver.key) and another one is certificate request file (myserver.csr) Now you need to get a certificate from some certificate vendors like verisign or comodo or anyother of your choice. The certificate request which we already generated is used to get this the certificate vendors will ask you to paste the certificate request. Comodo is providing a free trail certificate which is valid for 3 months. (Comodo Free Trail). Remember every certificate has some validity after that if we use the same certificate browser will through security error. After getting the certificates you want to enable ssl module in apache and configure it [shell]a2enmod ssl vi /etc/apache2/sites-available/default[/shell] [shell]ServerName linuxforu DocumentRoot /var/www/ SSLEngine On SSLCertificateFile /etc/apache2/ssl/linuxforu.cert SSLCertificateKeyFile /etc/apache2/ssl/linuxforu.key[/shell] [shell]Options Indexes FollowSymLinks AllowOverride All Order deny,allow Allow from all[/shell] Then restart your server [shell]/etc/init.d/apache2 restart[/shell] We all know that a default http request will be sent to port 80, in the same way default https request will be forwarded to port 443 so we configured the server for listening 443 port. You are done now access your website with https://server.com If you face any problems you want to check this things first Whether the server is hearing port 443 or not to find this type [shell]lsof -i tcp:443[/shell] Next check whether your port 443 is forwarded or not. If you face any new problems other than this please post a comment and we will try to solve it.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/894020/a9105079458196173bfc8734807b32ed.jpeg http://posterous.com/users/4xlDDq0UWIA9 Sandeep Manne smanne Sandeep Manne