<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6769487235545671544</id><updated>2025-08-08T19:04:18.580-07:00</updated><category term="PostgreSQL"/><category term="indexer --all"/><category term="install on ubuntu"/><category term="pg_config"/><category term="sphinx.conf"/><category term="yum install g++"/><category term="&#39;mysql.servers&#39;"/><category term="CREATE TABLE `servers`"/><category term="CentOS.5.2"/><category term="CentOS.6.2"/><category term="D-Link N 150"/><category term="DWA-525"/><category term="IPTABLES"/><category term="Installation OpenERP v6.x.x"/><category term="M/Monit"/><category term="MAC Address"/><category term="Monit"/><category term="Monit with postgresql. server monitoring status"/><category term="Munin monitoring tool. proeccess monitoring"/><category term="Online Backup from Server to Server."/><category term="Postgresql with Phinx"/><category term="Project Menu add"/><category term="PyYaml"/><category term="RAILS_ENV"/><category term="RT3062PCI"/><category term="Recover MySQL root Password"/><category term="Redhat 5.6"/><category term="Restore Postgres"/><category term="Ruby"/><category term="Sever Monitoring Tools"/><category term="Sphinx"/><category term="Ubuntu server 10.10"/><category term="Wlan-card on Ubuntu-10.10"/><category term="apache"/><category term="arp -a"/><category term="backup through cron."/><category term="block"/><category term="commands"/><category term="conflict with php53-common"/><category term="create cron job."/><category term="create database"/><category term="create dump"/><category term="crontab"/><category term="databases"/><category term="dbmigrate"/><category term="editor"/><category term="error"/><category term="gem"/><category term="hostgator"/><category term="how to postgres"/><category term="httpd"/><category term="index-based search"/><category term="indexer"/><category term="kernal issue"/><category term="libapache2"/><category term="limit exceeded"/><category term="localhost"/><category term="make_sock"/><category term="manuall install"/><category term="network monitoring."/><category term="nonsuper users"/><category term="openerp-server"/><category term="openerp-web server"/><category term="openerp-web.py"/><category term="passenger"/><category term="perl script"/><category term="pg_dump"/><category term="pgsql"/><category term="php-5.2.x"/><category term="php53-mcrypt"/><category term="plugin"/><category term="port0.0.0.0"/><category term="project menu"/><category term="psql"/><category term="rails 1.0.1"/><category term="rails v=2.3.5"/><category term="redmine"/><category term="report through cron"/><category term="restart"/><category term="rpm"/><category term="sarg"/><category term="searchd"/><category term="server daemon"/><category term="services"/><category term="squid"/><category term="start"/><category term="system backup"/><category term="tabs"/><category term="use index based search postgress"/><category term="user"/><category term="yum install gcc"/><category term="yum install gcc."/><category term="zendoptimizer"/><title type='text'>Solutions Tribe</title><subtitle type='html'>Informative Blog for Technology Tutorials. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-1414078006088424734</id><published>2014-02-04T07:47:00.001-08:00</published><updated>2014-02-04T07:47:45.168-08:00</updated><title type='text'>Advantages of using Ubuntu instead of Windows</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&quot;Do what you want, but don&#39;t restrict for others the freedoms you have received.&quot;&lt;br /&gt;
&lt;br /&gt;
I am Ubuntu User from last 6 years, I have very good experience with Ubuntu. I was handy with Windows OS. When i shifted to ubuntu i was facing very few issues and i resolved within a week. After that i am using ubuntu non stop.&lt;br /&gt;
&lt;br /&gt;
I never try again windows and not even feel to use it again. I feel freedom from license software and enjoy the good world of freedom.&lt;br /&gt;
&lt;br /&gt;
Runs very smoothly even on my Atom n450/2GB netbook; Genuine Windows 7 
home basic (pre-loaded) is very sluggish, and nearly unusable at times.&lt;br /&gt;
&lt;br /&gt;
Extremely capable and extremely powerful for those who are not 
command-line phobic. It&#39;s powerful anyway, but you can reach new realms 
of possibilities with the command line.&lt;br /&gt;&lt;br /&gt;
Pro: Its faster, its free, it has 1000s of free software, easy to 
customize, a lot of different Ubuntu biased Operating systems to choose 
from, Ubuntu, Kubuntu, Xubuntu, Lubuntu, Edubuntu&lt;span style=&quot;font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;br /&gt;
Cons: Not great for gaming, can run Windows software under &quot;Wine&quot; but 
some programs might not work, or might have problems. (But Linux has an 
alternative software).&lt;br /&gt;
&lt;br /&gt;
So i will suggest every one to use the freedom world.&lt;br /&gt;
&lt;br /&gt;
Good Luck. &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/1414078006088424734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2014/02/advantages-of-using-ubuntu-instead-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/1414078006088424734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/1414078006088424734'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2014/02/advantages-of-using-ubuntu-instead-of.html' title='Advantages of using Ubuntu instead of Windows'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-4087133798941390190</id><published>2012-06-29T02:17:00.000-07:00</published><updated>2012-06-29T02:17:32.893-07:00</updated><title type='text'>error: Directory index forbidden by Options directive:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;#[root@localhost ]# tail -f /var/log/httpd/error_log&lt;/span&gt;
&lt;br /&gt;
In apache error log I got following error.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;[Wed Oct 07 15:59:50 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/testfolder/&lt;/span&gt;&lt;br /&gt;

I changed the AllowOverride option but nothing is happend. Then I read the welcome page text&lt;br /&gt;
“To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.”&lt;br /&gt;
I opend the welcome.conf file.&lt;br /&gt;

I found following lines in welcome.conf file.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;LocationMatch “^/+$”&amp;gt;&lt;br /&gt;
Options -Indexes&lt;br /&gt;
ErrorDocument 403 /error/noindex.html&lt;br /&gt;
&amp;lt;/LocationMatch&amp;gt;&lt;/span&gt;&lt;br /&gt;

I changed that to as follows:&lt;br /&gt;

&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;LocationMatch “^/+$”&amp;gt;&lt;br /&gt;
Options Indexes&lt;br /&gt;
ErrorDocument 403 /error/noindex.html&lt;br /&gt;
&amp;lt;/LocationMatch&amp;gt;&lt;/span&gt;&lt;br /&gt;

That solve my problem. Some time your selinux will cause the issue so you need to deactivate the selinux.&lt;br /&gt;
Some time File permission will also cause the issue.&lt;br /&gt;
You can change the file permission using following command, go to that directory and run following command.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;#chmod 777 *&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/4087133798941390190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/error-directory-index-forbidden-by.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4087133798941390190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4087133798941390190'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/error-directory-index-forbidden-by.html' title='error: Directory index forbidden by Options directive:'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-8495762470416772460</id><published>2012-06-16T06:33:00.002-07:00</published><updated>2012-06-16T06:33:21.594-07:00</updated><title type='text'>Verifying Which Ports Are Listening centos</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1: access your server and type the commands&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;screen&quot;&gt;nmap -sT -O localhost&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;if nmap is not installed then first installed the nmap utility and then run the command again&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;yum install nmap&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;2: cat /etc/services | grep 834&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;3: netstat -anp | grep 4444&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;4: lsof -i | grep 834&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;hope this will help some one.&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;regards:&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;imran&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;screen&quot;&gt;CTO www.wdnec.com&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/8495762470416772460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/verifying-which-ports-are-listening.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/8495762470416772460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/8495762470416772460'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/verifying-which-ports-are-listening.html' title='Verifying Which Ports Are Listening centos'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-7484209102046357636</id><published>2012-06-08T13:12:00.001-07:00</published><updated>2012-06-09T16:47:46.669-07:00</updated><title type='text'>Update an old debian: 404 Not Found; Err http://us.archive.ubuntu.com; Failed to fetch</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today I stumbled into a weird problem. My &lt;b&gt;debian server 5 couldn&#39;t update anymore&lt;/b&gt;. My /etc/apt/sources.list looked like this:&lt;br /&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&amp;nbsp; deb-src http://archive.ubuntu.com/ubuntu/&amp;nbsp; main restricted universe multiverse&lt;/div&gt;
&lt;b&gt;Running apt-get update&lt;/b&gt; gave all sorts of &lt;b&gt;problems&lt;/b&gt; as it couldn&#39;t find repository servers anymore:&lt;br /&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&amp;nbsp; $ sudo apt-get update&lt;br /&gt;
&amp;nbsp; Ign http://us.archive.ubuntu.com&amp;nbsp; Release.gpg&lt;br /&gt;
&amp;nbsp; Ign http://us.archive.ubuntu.com&amp;nbsp; Release&lt;br /&gt;
&amp;nbsp; Ign http://us.archive.ubuntu.com /main Packages&lt;br /&gt;
&amp;nbsp; Ign http://us.archive.ubuntu.com /universe Packages&lt;br /&gt;
&amp;nbsp; Ign http://us.archive.ubuntu.com /main Packages&lt;br /&gt;
&amp;nbsp; Ign http://us.archive.ubuntu.com /universe Packages&lt;br /&gt;
&amp;nbsp; Err http://us.archive.ubuntu.com /main Packages&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 404 Not Found [IP: 91.189.92.180 80]&lt;br /&gt;
&amp;nbsp; Err http://us.archive.ubuntu.com jaunty/universe Packages&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 404 Not Found [IP: 91.189.92.180 80]&lt;br /&gt;
&amp;nbsp; W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/main/&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 404 Not Found [IP: 91.189.92.180 80]&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/Packages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 404 Not Found [IP: 91.189.92.180 80]&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; E: Some index files failed to download, they have been ignored, or old ones used instead. &lt;/div&gt;
To &lt;b&gt;upgrade a really old Debian&lt;/b&gt; release, we first need to edit our sources.list and &lt;b&gt;change&lt;/b&gt; all &lt;b&gt;(xx.)archive.ubuntu.com&lt;/b&gt; to &lt;b&gt;old-releases.ubuntu.com&lt;/b&gt;.&lt;br /&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&amp;nbsp;&amp;nbsp; $ sudo emacs /etc/apt/sources.list&lt;/div&gt;
So &lt;b&gt;your lines should&lt;/b&gt; instead of &lt;br /&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&amp;nbsp;&amp;nbsp; deb http://archive.ubuntu.com/ubuntu jaunty main restricted universe&lt;/div&gt;
&lt;b&gt;look like&lt;/b&gt; &lt;br /&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&amp;nbsp;&amp;nbsp; deb http://old-releases.ubuntu.com/ubuntu main restricted universe&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;b&gt; it works &lt;/b&gt;the same &lt;b&gt;on other releases&lt;/b&gt;.&lt;br /&gt;
Now update the repos&lt;br /&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&amp;nbsp;&amp;nbsp; $ sudo apt-get update&lt;/div&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
Thanks to Matjaž Kljun for guiding to the solution.&lt;/div&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
Regards:&lt;/div&gt;
&lt;div style=&quot;background-color: #ffffd2;&quot;&gt;
Imran shahmeer&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/7484209102046357636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/update-old-debian-404-not-found-err.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7484209102046357636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7484209102046357636'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/update-old-debian-404-not-found-err.html' title='Update an old debian: 404 Not Found; Err http://us.archive.ubuntu.com; Failed to fetch'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-774014109548393659</id><published>2012-06-04T08:17:00.002-07:00</published><updated>2012-06-04T08:18:17.200-07:00</updated><title type='text'>Wired Vs Wireless LAN Pro &amp; Cons.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Computer networks for the home and small business can be built using either wired or wireless technology.&lt;br /&gt;
Wired Ethernet has been the traditional choice in homes, but Wi-Fi wireless technologies are gaining ground fast.&lt;br /&gt;
Below we compare wired and wireless networking in five key areas:&lt;br /&gt;
&lt;br /&gt;
ease of installation&lt;br /&gt;
total cost&lt;br /&gt;
reliability&lt;br /&gt;
performance&lt;br /&gt;
security&lt;br /&gt;
&lt;br /&gt;
About Wired LANs:&lt;br /&gt;
Wired LANs use Ethernet cables and network adapters. Although two computers can be directly wired to each other using an Ethernet crossover cable, wired LANs generally also require central devices like hubs, switches, or routers to accommodate more computers.&lt;br /&gt;
&lt;br /&gt;
Installation&lt;br /&gt;
&lt;br /&gt;
Ethernet cables must be run from each computer to another computer or to the central device. It can be time-consuming and difficult to run cables under the floor or through walls, especially when computers sit in different rooms. Some newer homes are pre-wired with CAT5 cable, greatly simplifying the cabling process and minimizing unsightly cable runs.&lt;br /&gt;
The correct cabling configuration for a wired LAN varies depending on the mix of devices, the type of Internet connection, and whether internal or external modems are used. However, none of these options pose any more difficulty than, for example, wiring a home theater system.&lt;br /&gt;
&lt;br /&gt;
Cost:&lt;br /&gt;
Ethernet cables, hubs and switches are very inexpensive. Some connection sharing software packages, like ICS, are free; some cost a nominal fee. Broadband routers cost more, but these are optional components of a wired LAN, and their higher cost is offset by the benefit of easier installation and built-in security features.&lt;br /&gt;
&lt;br /&gt;
Reliability:&lt;br /&gt;
Ethernet cables, hubs and switches are extremely reliable, mainly because manufacturers have been continually improving Ethernet technology over several decades. Loose cables likely remain the single most common and annoying source of failure in a wired network. When installing a wired LAN or moving any of the components later, be sure to carefully check the cable connections.&lt;br /&gt;
&lt;br /&gt;
Performance:&lt;br /&gt;
Wired LANs offer superior performance. Traditional Ethernet connections offer only 10 Mbps bandwidth, but 100 Mbps Fast Ethernet technology costs little more and is readily available. Although 100 Mbps represents a theoretical maximum performance never really achieved in practice, Fast Ethernet should be sufficient for home file sharing, gaming, and high-speed Internet access for many years into the future.&lt;br /&gt;
&lt;br /&gt;
Security&lt;br /&gt;
&lt;br /&gt;
For any wired LAN connected to the Internet, firewalls are the primary security consideration. Wired Ethernet hubs and switches do not support firewalls. However, firewall software products like ZoneAlarm can be installed on the computers themselves. Broadband routers offer equivalent firewall capability built into the device, configurable through its own software.&lt;br /&gt;
&lt;br /&gt;
Wireless LANs&lt;br /&gt;
&lt;br /&gt;
Popular WLAN technologies all follow one of the three main Wi-Fi communication standards. The benefits of wireless networking depend on the standard employed:&lt;br /&gt;
&lt;br /&gt;
Installation&lt;br /&gt;
&lt;br /&gt;
Wi-Fi networks can be configured in two different ways:&lt;br /&gt;
&quot;Ad hoc&quot; mode allows wireless devices to communicate in peer-to-peer mode with each other.&lt;br /&gt;
&quot;Infrastructure&quot; mode allows wireless devices to communicate with a central node that in turn can communicate with wired nodes on that LAN.&lt;br /&gt;
Most LANs require infrastructure mode to access the Internet, a local printer, or other wired services, whereas ad hoc mode supports only basic file sharing between wireless devices.&lt;br /&gt;
&lt;br /&gt;
Both Wi-Fi modes require wireless network adapters, sometimes called WLAN cards. Infrastructure mode WLANs additionally require a central device called the access point. The access point must be installed in a central location where wireless radio signals can reach it with minimal interference. Although Wi-Fi signals typically reach 100 feet (30 m) or more, obstructions like walls can greatly reduce their range.&lt;br /&gt;
&lt;br /&gt;
Cost:&lt;br /&gt;
&lt;br /&gt;
Wireless gear costs somewhat more than the equivalent wired Ethernet products. At full retail prices, wireless adapters and access points may cost three or four times as much as Ethernet cable adapters and hubs/switches, respectively. 802.11b products have dropped in price considerably with the release of 802.11g, and obviously, bargain sales can be found if shoppers are persistent.&lt;br /&gt;
&lt;br /&gt;
Reliability&lt;br /&gt;
&lt;br /&gt;
Wireless LANs suffer a few more reliability problems than wired LANs, though perhaps not enough to be a significant concern. 802.11b and 802.11g wireless signals are subject to interference from other home applicances including microwave ovens, cordless telephones, and garage door openers. With careful installation, the likelihood of interference can be minimized.&lt;br /&gt;
&lt;br /&gt;
Performance&lt;br /&gt;
&lt;br /&gt;
Wireless LANs using 802.11b support a maximum theoretical bandwidth of 11 Mbps, roughly the same as that of old, traditional Ethernet. 802.11a and 802.11g WLANs support 54 Mbps, that is approximately one-half the bandwidth of Fast Ethernet. Furthermore, Wi-Fi performance is distance sensitive, meaning that maximum performance will degrade on computers farther away from the access point or other communication endpoint. As more wireless devices utilize the WLAN more heavily, performance degrades even further.&lt;br /&gt;
Overall, the performance of 802.11a and 802.11g is sufficient for home Internet connection sharing and file sharing, but generally not sufficient for home LAN gaming.&lt;br /&gt;
&lt;br /&gt;
Security&lt;br /&gt;
&lt;br /&gt;
In theory, wireless LANs are less secure than wired LANs, because wireless communication signals travel through the air and can easily be intercepted.&lt;br /&gt;
WLANs protect their data through the Wired Equivalent Privacy (WEP) encryption standard, that makes wireless communications reasonably as safe as wired ones in homes.&lt;br /&gt;
No computer network is completely secure and homeowners should research this topic to ensure they are aware of and comfortable with the risks. Important security considerations for homeowners tend to not be related to whether the network is wired or wireless but rather ensuring:&lt;br /&gt;
&lt;br /&gt;
the home&#39;s Internet firewall is properly configured&lt;br /&gt;
the family is familiar with the danger of Internet &quot;spoof emails&quot; and how to recognize them&lt;br /&gt;
the family is familiar with the concept of &quot;spyware&quot; and how to avoid it.&lt;br /&gt;
babysitters, housekeepers and other visitors do not have unwanted access to the network&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; Regards:&lt;br /&gt;
Imran Shahmeer&lt;br /&gt;
skype : shahmeer07&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/774014109548393659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/wired-vs-wireless-lan-pro-cons.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/774014109548393659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/774014109548393659'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/06/wired-vs-wireless-lan-pro-cons.html' title='Wired Vs Wireless LAN Pro &amp; Cons.'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-2593962651723071300</id><published>2012-05-30T04:44:00.001-07:00</published><updated>2012-05-30T04:44:52.152-07:00</updated><title type='text'>To password protect your website make it private</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
To password protect your website, please follow these steps:&lt;br /&gt;
&lt;br /&gt;
Log into your Linux web server via Secure Shell (SSH).&lt;br /&gt;
Change into the directory you wish to password protect.&lt;br /&gt;
Note: If you wish to protect your entire website us the following command:&lt;br /&gt;
1:cd /vservers/username/htdocs&lt;br /&gt;
2:Create a file called .htaccess using the following command:&lt;br /&gt;
pico .htaccess&lt;br /&gt;
3:Enter the following information:&lt;br /&gt;
AuthType Basic&lt;br /&gt;
AuthName &quot;Please enter your Username and Password&quot;&lt;br /&gt;
AuthUserFile /vservers/username/htdocs/.htpasswd&lt;br /&gt;
AuthGroupFile /dev/null&lt;br /&gt;
Require valid-user&lt;br /&gt;
&lt;br /&gt;
4:Press ctrl+o to save the file.&lt;br /&gt;
5:Press ctrl+x to exit the file.&lt;br /&gt;
6:Create the .htpasswd file using the following command:&lt;br /&gt;
/usr/bin/htpasswd -c /vservers/username/htdocs/.htpasswd username&lt;br /&gt;
7:Enter the password you wish to use.&lt;br /&gt;
8:Re-enter the password.&lt;br /&gt;
9:Grant read access to each file using the following commands:&lt;br /&gt;
chmod a+r .htaccess&lt;br /&gt;
chmod a+r .htpasswd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Password protection by a single login:&lt;br /&gt;
Password files:&lt;br /&gt;
&lt;br /&gt;
Create the directory you want to password protect (example: membersonly)&lt;br /&gt;
Create a file /home/domain/public_html/membersonly/.htaccess in that director that looks something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthName &quot;Add your login message here.&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthType Basic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthUserFile /home/domain/public_html/membersonly/.htpasswd&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthGroupFile /dev/null&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;require user name-of-user&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
In this case the &quot;name-of-user&quot; is the login name you wish to use for accessing the web site.&lt;br /&gt;
One can use Apache directives to specify access and restriction:&lt;br /&gt;
AuthName &quot;Add your login message here.&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthType Basic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthUserFile /home/domain/public_html/membersonly/.htpasswd&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthGroupFile /dev/null&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Limit GET POST&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;require user name-of-user&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Limit&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The name of the access file .htaccess is specified by the httpd.conf directive AccessFileName.&lt;br /&gt;
Create (or clobber if it already exists) the password file /home/domain/public_html/membersonly/.htpasswd using the program htpasswd:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;htpasswd -c .htpasswd name-of-user&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Add a new user to the existing password file:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;htpasswd .htpasswd name-of-user&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Man page: htpasswd&lt;br /&gt;
Example file: .htpasswd&lt;br /&gt;
&lt;br /&gt;
user1:KgvCSeExtS4kM&lt;br /&gt;
USER1:KgvCSeExtS4kM&lt;br /&gt;
User1:KgvCSeExtS4kM&lt;br /&gt;
&lt;br /&gt;
Placing Authentication directives in httpd.conf exclusively instead of using .htaccess:&lt;br /&gt;
The purpose of using the &quot;distributed configuration file&quot; .htaccess is so that users may control authentication. It can also be set in the Apache configuration file httpd.conf WITHOUT using the .htaccess file. This can improve server performance as the server will not have to look for the .htaccess file in each subdirectory.&lt;br /&gt;
File: httpd.conf (portion)&lt;br /&gt;
..&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ...&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Directory /home/domain/public_html/membersonly&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AllowOverride AuthConfig&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthName &quot;Add your login message here.&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthType Basic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthUserFile /home/domain/public_html/membersonly/.htpasswd&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AuthGroupFile /dev/null&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;require user name-of-user&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ...&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ..&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/2593962651723071300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/to-password-protect-your-website-make.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/2593962651723071300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/2593962651723071300'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/to-password-protect-your-website-make.html' title='To password protect your website make it private'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-4513213301083002483</id><published>2012-05-30T04:41:00.000-07:00</published><updated>2012-05-30T04:41:21.228-07:00</updated><title type='text'>how to access through ssh amazon instance from ubuntu machine.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
how to ssh amazon instance from ubuntu.&lt;br /&gt;
&lt;br /&gt;
if you have the private key file of your amazon instance then its very easy to connect through ssh.&lt;br /&gt;
&lt;br /&gt;
if you don&#39;t have the keys then login to your amazon interface instance and create the key instance.pem and instance.ppk&lt;br /&gt;
&lt;br /&gt;
when you creat these both keys then download it you system. and saved it.&lt;br /&gt;
&lt;br /&gt;
One key .pem is used for linux connectivity and .ppk is used for windows putty connectivity.&lt;br /&gt;
&lt;br /&gt;
In ubuntu OS open your terminal and get the sudo rights.&lt;br /&gt;
&lt;br /&gt;
Alt+Ctrl+T then type the command&lt;br /&gt;
sudo -s&lt;br /&gt;
your password:&lt;br /&gt;
&lt;br /&gt;
go to your donwload folder and copy the keys to /home/yourname/.shh/ folder&lt;br /&gt;
&lt;br /&gt;
cd /home/myname/Download/&lt;br /&gt;
&lt;br /&gt;
cp instance.pem instance.ppk /home/myname/.shh&lt;br /&gt;
&lt;br /&gt;
trach out your amazon host name like bitnami and type the command in terminal&lt;br /&gt;
&lt;br /&gt;
shh -i instance.pem user@your.instance.amzon.com&lt;br /&gt;
&lt;br /&gt;
you will get connected.&lt;br /&gt;
&lt;br /&gt;
if you get the error&lt;br /&gt;
&lt;br /&gt;
permission denied due to the public key is onpen to others. then change the permission of .pem file&lt;br /&gt;
&lt;br /&gt;
chmod 600 instance.pem and again try to connect to server instance.&lt;br /&gt;
&lt;br /&gt;
this time you will connected if you have right usernam and .pem key.&lt;br /&gt;
&lt;br /&gt;
That&#39;s all&lt;br /&gt;
if you have any other question feel free to ask me&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Regards:&lt;/div&gt;
&lt;div&gt;
imran&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
shahmeer07 @skype&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/4513213301083002483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/how-to-access-through-ssh-amazon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4513213301083002483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4513213301083002483'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/how-to-access-through-ssh-amazon.html' title='how to access through ssh amazon instance from ubuntu machine.'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-8187473721132267461</id><published>2012-05-30T04:38:00.001-07:00</published><updated>2012-05-30T04:38:47.199-07:00</updated><title type='text'>protect your directory with .htaccess and .htpasswd username and password</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Do you want to password protect a directory on your website?&lt;br /&gt;
&lt;br /&gt;
Lets suppose you want to protect the folder ‘secretfolder’ located on this path on your server: &amp;nbsp;home/user/domain/secretfolder&lt;br /&gt;
&lt;br /&gt;
Password Protect Directory with htaccess&lt;br /&gt;
Step 1 – Create .htpasswd file with your desired username and password in any text editor (like Notepad) and save.&lt;br /&gt;
within the .htpasswd you will have the following info&lt;br /&gt;
&lt;br /&gt;
abc:9476nIHW7Esgw&lt;br /&gt;
&lt;br /&gt;
encrypt you password through some tool and put that here with username you can that from from here&lt;br /&gt;
http://www.4webhelp.net/us/password.php&lt;br /&gt;
&lt;br /&gt;
Step 2 – Create .htaccess file with the code below. It can be created using any text editor (like Notepad) and saved without the .txt extension.&lt;br /&gt;
&lt;br /&gt;
vim .htaccess&lt;br /&gt;
&lt;br /&gt;
AuthUserFile /home/user/domain/secretfolder/.htpasswd # please the location of .htpasswd file should be known to you. if not don&#39;t wast your time.&lt;br /&gt;
AuthType Basic&lt;br /&gt;
AuthName &quot;Login Details&quot;&lt;br /&gt;
Require valid-user&lt;br /&gt;
&lt;br /&gt;
Step 3 – Upload both these files in the same folder which you want to protect&lt;br /&gt;
Now whenever anyone accesses that directory or any files in it, they will be asked for login details. You web directory is now secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That&#39;s it&lt;br /&gt;
&lt;br /&gt;
Enjoy your Security at layer 1.&lt;br /&gt;
&lt;br /&gt;
Regards:&lt;br /&gt;
imran&lt;br /&gt;
skype: shahmeer07&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/8187473721132267461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/protect-your-directory-with-htaccess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/8187473721132267461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/8187473721132267461'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/protect-your-directory-with-htaccess.html' title='protect your directory with .htaccess and .htpasswd username and password'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-7378406731550283824</id><published>2012-05-30T04:36:00.000-07:00</published><updated>2012-05-30T04:36:37.059-07:00</updated><title type='text'>daily used command in linux server maintenance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
pwd&lt;br /&gt;
Print working directory, i.e., display the name of my current directory on the screen.&lt;br /&gt;
hostname&lt;br /&gt;
Print the name of the local host (the machine on which I am working). Use netconf (as root) to change the name of the machine.&lt;br /&gt;
&lt;br /&gt;
whoami&lt;br /&gt;
Print my login name.&lt;br /&gt;
&lt;br /&gt;
id username&lt;br /&gt;
Print user id (uid) and his/her group id (gid), effective id (if different than the real id) and the supplementary groups.&lt;br /&gt;
&lt;br /&gt;
date&lt;br /&gt;
Print the operating system current date, time and timezone. For an ISO standard format, I have to use: date -Iseconds&lt;br /&gt;
I can change the date and time to 2000-12-31 23:57 using this command: date 123123572000&lt;br /&gt;
or using these two commands (easier to remember):&lt;br /&gt;
date --set 2000-12-31&lt;br /&gt;
date --set 23:57:00&lt;br /&gt;
To set the hardware (BIOS) clock from the system (Linux) clock, I can use the command (as root): setclock&lt;br /&gt;
&lt;br /&gt;
The international (ISO 8601) standard format for all-numeric date/time has the form: 2001-01-31 (as in Linux default &quot;C&quot; localization). You can be more precise if you wish using, for example: 2001-01-31 23:59:59.999-05:00 (representing I milisecond before February 2001, in a timezone which is 5 hours behind the Universal Coordinated Time (UTC)) . The most &quot;kosher&quot; representation of the same point in time could be: 20010131T235959,999-0500. See the standard at ftp://ftp.qsl.net/pub/g1smd/8601v03.pdf.&lt;br /&gt;
time&lt;br /&gt;
Determine the amount of time that it takes for a process to complete + other process accounting. Don&#39;t confuse it with the date command (see previous entry). E.g. I can find out how long it takes to display a directory content using: time ls. Or I can test the time function with time sleep 10 (time the commands the does nothing for 10 seconds).&lt;br /&gt;
clock&lt;br /&gt;
hwclock&lt;br /&gt;
(two commands, use either). Obtain date/time from the computer hardware (real time, battery-powered) clock. You can also use one of this commands to set the hardware clock, but setclock may be simplier (see 2 commands above). Example: hwclock --systohc --utc sets the hardware clock (in UTC) from the system clock.&lt;br /&gt;
&lt;br /&gt;
who&lt;br /&gt;
Determine the users logged on the machine.&lt;br /&gt;
&lt;br /&gt;
w&lt;br /&gt;
Determine who is logged on the system, find out what they are doing, their processor ussage, etc. Handy security command.&lt;br /&gt;
&lt;br /&gt;
rwho -a&lt;br /&gt;
(=remote who) Determine users logged on other computers on your network. The rwho service must be enabled for this command to run. If it isn&#39;t, run setup (RedHat specific) as root to enable &quot;rwho&quot;.&lt;br /&gt;
&lt;br /&gt;
finger user_name&lt;br /&gt;
System info about a user. Try: finger root . One can use finger with any networked computer that exposes the finger service to the world, e.g., I can do (try): finger @finger.kernel.org&lt;br /&gt;
&lt;br /&gt;
last&lt;br /&gt;
Show listing of users last logged-in on your system. Really good idea to check it from time to time as a security measure on your system.&lt;br /&gt;
&lt;br /&gt;
lastb&lt;br /&gt;
(&quot;=last bad&quot;) Show the last bad (unsuccessful) login attempts on my system. It did not work on my system, so got it started with: touch /var/log/btmp&lt;br /&gt;
&lt;br /&gt;
&quot;There&#39;s a good reason why /var/log/btmp isn&#39;t available on any sane set-up - it&#39;s a world-readable file containing login mistakes. Since one of the most common login mistakes is to type the password instead of the username, /var/log/btmp is a gift to crackers.&quot; (Thanks to Bruce Richardson). It appears the problem can be solved by changing the file permissions so only root can use &quot;lastb&quot;:&lt;br /&gt;
chmod o-r /var/log/btmp&lt;br /&gt;
history | more&lt;br /&gt;
Show the last (1000 or so) commands executed from the command line on the current account. The &quot;| more&quot; causes the display to stop after each screenful. To see what another user was doing on your system, login as &quot;root&quot; and inspect his/her &quot;history&quot;. The history is kept in the file .bash_history in the user home directory (so yes, it can be modified or erased).&lt;br /&gt;
uptime&lt;br /&gt;
Show the amount of time since the last reboot.&lt;br /&gt;
&lt;br /&gt;
ps&lt;br /&gt;
(=&quot;print status&quot; or &quot;process status&quot;) List the processes currently run by the current user.&lt;br /&gt;
&lt;br /&gt;
ps axu | more&lt;br /&gt;
List all the processes currently running, even those without the controlling terminal, together with the name of the user that owns each process.&lt;br /&gt;
&lt;br /&gt;
top&lt;br /&gt;
Keep listing the currently running processes on my computer, sorted by cpu usage (top processes first). Press c when done.&lt;br /&gt;
&lt;br /&gt;
PID = process identification.&lt;br /&gt;
USER=name of the user who owns (started?) the process.&lt;br /&gt;
PRI=priority of the process (the higher the number, the lower the priority, normal 0, highest priority is -20, lowest 20.&lt;br /&gt;
NI=niceness level (i.e., if the process tries to be nice by adjusting the priority by the number given). The higher the number, the higher the niceness of the process (i.e., its priority is lower).&lt;br /&gt;
SIZE=kilobytes of code+data+stack taken by the process in memory.&lt;br /&gt;
RSS=kilobytes of physical (silicon) memory taken.&lt;br /&gt;
SHARE=kilobytes of memory shared with other processes.&lt;br /&gt;
STAT=state of the process: S-sleeping, R-running, T-stopped or traced, D-uniterruptable sleep, Z=zombie.&lt;br /&gt;
%CPU=share of the CPU usage (since last screen update).&lt;br /&gt;
%MEM=share of physical memory.&lt;br /&gt;
TIME=total CPU time used by the process (since it was started).&lt;br /&gt;
COMMAND=command line used to start the task (careful with passwords, etc., on command line, all permitted to run &quot;top&quot; may see them!&lt;br /&gt;
gtop&lt;br /&gt;
ktop&lt;br /&gt;
(in X terminal) Two GUI choices for top. My favourite is gtop (comes with gnome). In KDE, ktop is also available from the &quot;K&quot;menu under &quot;System&quot;-&quot;Task Manager&quot;.&lt;br /&gt;
uname -a&lt;br /&gt;
(= &quot;Unix name&quot; with option &quot;all&quot;) Info on your (local) server. I can also use guname (in X-window terminal) to display the info more nicely.&lt;br /&gt;
&lt;br /&gt;
XFree86 -version&lt;br /&gt;
Show me the version of X windows I have on my system.&lt;br /&gt;
&lt;br /&gt;
cat /etc/issue&lt;br /&gt;
Check what distribution you are using. You can put your own message in this text file--it&#39;s displayed on login. It is more common to put your site-specific login message to the file /etc/motd (&quot;motd&quot;=&quot;message of the day&quot;).&lt;br /&gt;
&lt;br /&gt;
free&lt;br /&gt;
Memory info (in kilobytes). &quot;Shared&quot; memory is the memory that can be shared between processes (e.g., executable code is &quot;shared&quot;). &quot;Buffered&quot; and &quot;cashed&quot; memory is the part that keeps parts of recently accessed files--it can be shrunk if more memory is needed by processes.&lt;br /&gt;
&lt;br /&gt;
df -h&lt;br /&gt;
(=disk free) Print disk info about all the filesystems (in human-readable form).&lt;br /&gt;
&lt;br /&gt;
du / -bh | more&lt;br /&gt;
(=disk usage) Print detailed disk usage for each subdirectory starting at the &quot;/&quot; (root) directory (in human legible form).&lt;br /&gt;
&lt;br /&gt;
cat /proc/cpuinfo&lt;br /&gt;
Cpu info--it shows the content of the file cpuinfo. Note that the files in the /proc directory are not real files--they are hooks to look at information available to the kernel.&lt;br /&gt;
&lt;br /&gt;
cat /proc/interrupts&lt;br /&gt;
List the interrupts in use. May need to find out before setting up new hardware.&lt;br /&gt;
&lt;br /&gt;
cat /proc/version&lt;br /&gt;
Linux version and other info.&lt;br /&gt;
&lt;br /&gt;
cat /proc/filesystems&lt;br /&gt;
Show the types of filesystems currently in use.&lt;br /&gt;
&lt;br /&gt;
cat /etc/printcap |more&lt;br /&gt;
Show the setup of printers.&lt;br /&gt;
&lt;br /&gt;
lsmod&lt;br /&gt;
(= &quot;list modules&quot;. As root. Use /sbin/lsmod to execute this command when you are a non-root user.) Show the kernel modules currently loaded.&lt;br /&gt;
&lt;br /&gt;
set|more&lt;br /&gt;
Show the current user environment (in full). Normally too much to bother.&lt;br /&gt;
&lt;br /&gt;
echo $PATH&lt;br /&gt;
Show the content of the environment variable &quot;PATH&quot;. This command can be used to show other environment variables as well. Use set to see the full environment (see the previous command).&lt;br /&gt;
&lt;br /&gt;
dmesg | less&lt;br /&gt;
Print kernel messages (the content of the so-called kernel ring buffer). Press &quot;q&quot; to quit &quot;less&quot;. Use less /var/log/dmesg to see what &quot;dmesg&quot; dumped into this file right after the last system bootup.&lt;br /&gt;
&lt;br /&gt;
chage -l my_login_name&lt;br /&gt;
See my password expiry information.&lt;br /&gt;
&lt;br /&gt;
quota&lt;br /&gt;
See my disk quota (the limits of disk usage).&lt;br /&gt;
&lt;br /&gt;
sysctl -a |more&lt;br /&gt;
Display all the configurable Linux kernel parameters.&lt;br /&gt;
&lt;br /&gt;
runlevel&lt;br /&gt;
Print the previous and current runlevel. The output &quot;N5&quot; means: &quot;no previous runlevel&quot; and &quot;5 is the current runlevel&quot;. To change the runlevel, use &quot;init&quot;, e.g., init 1 switches the system to a single user mode.&lt;br /&gt;
&lt;br /&gt;
Runlevel is the mode of operation of Linux. Runlevel can be switched &quot;on the fly&quot; using the command init. For example, init 3 (as root) will switch me to runlevel 3. The following runlevels are standard:&lt;br /&gt;
0 - halt (Do NOT set initdefault to this)&lt;br /&gt;
1 - Single user mode&lt;br /&gt;
2 - Multiuser, without NFS (The same as 3, if you do not have networking)&lt;br /&gt;
3 - Full multiuser mode&lt;br /&gt;
4 - unused&lt;br /&gt;
5 - X11&lt;br /&gt;
6 - reboot (Do NOT set initdefault to this)&lt;br /&gt;
The system default runlevel is set in the file: /etc/inittab .&lt;br /&gt;
sar&lt;br /&gt;
View information extracted the system activity log file (/var/log/sarxx where xx is the current day number). sar can extract many kinds of system statistics including CPU load averages, i/o statistics, and network trafic statistics for the current day and (usually) several days backs.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enjoy!&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
comment if you have some good commands.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Regards:&lt;/div&gt;
&lt;div&gt;
imran shahmeer&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/7378406731550283824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/daily-used-command-in-linux-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7378406731550283824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7378406731550283824'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/daily-used-command-in-linux-server.html' title='daily used command in linux server maintenance'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-3296107781445447772</id><published>2012-05-30T04:27:00.000-07:00</published><updated>2012-05-30T04:27:57.782-07:00</updated><title type='text'>custom commands linux centos</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Find How Much Disk Space Is Being Used Show Display&lt;br /&gt;
&lt;br /&gt;
#cd /var/&lt;br /&gt;
#du -hc --max-depth=1&lt;br /&gt;
#du -sh&lt;br /&gt;
&lt;br /&gt;
how to show all repos&lt;br /&gt;
yum repolist all&lt;br /&gt;
&lt;br /&gt;
how to clear cache of the server::&lt;br /&gt;
yum clean all&lt;br /&gt;
&lt;br /&gt;
shwo installed version of the.&lt;br /&gt;
&lt;br /&gt;
yum list installed | grep gd&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/3296107781445447772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/custom-commands-linux-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/3296107781445447772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/3296107781445447772'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/custom-commands-linux-centos.html' title='custom commands linux centos'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-338908198998648995</id><published>2012-05-30T04:24:00.000-07:00</published><updated>2012-05-30T04:24:13.828-07:00</updated><title type='text'>how to install ftp server vsftpd and configure on centos</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt; yum list installed | grep ftp
 1083  yum install vsftpd
 1084  chkconfig vsftpd on
 1085  service vsftpd start

creat group
   groupadd ftp-users
   chown root:ftp-users /var/www/html/

adduser to ftp group 
  useradd -g ftp-users -d /var/www/html/ imran
create password for user.

 passwd imran

how to change password of ftp user.
  passwd imran
 enter new password;
 retype password: 

how to restrict and lock ftp user when not needed

passwd -l username{ftp user}

how to unlock the ftp user when needed

passwd +l username {ftp user}
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/338908198998648995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/how-to-install-ftp-server-vsftpd-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/338908198998648995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/338908198998648995'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/05/how-to-install-ftp-server-vsftpd-and.html' title='how to install ftp server vsftpd and configure on centos'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-4766265086378902967</id><published>2012-04-24T01:33:00.001-07:00</published><updated>2012-05-21T09:41:26.640-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="conflict with php53-common"/><category scheme="http://www.blogger.com/atom/ns#" term="manuall install"/><category scheme="http://www.blogger.com/atom/ns#" term="php53-mcrypt"/><title type='text'>how to install php53-mcrypt on centos</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To install manually php53-mcrypt on your server follow the steps below,&lt;br /&gt;
&lt;br /&gt;
when you are facing the issue of conflict then these steps will help you to resolve the issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
First install some required packages:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;yum install php53-devel libmcrypt-devel gcc gcc-c++
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Then download the php 5.3.6 source code from php.net and unpack it:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;wget http://mx2.php.net/get/php-5.3.6.tar.bz2/from/us3.php.net/mirror
tar xvjf php-5.3.6.tar.bz2
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
&lt;em style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;(Please note that the download link will change with every subsequent PHP release.)&lt;/em&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Go to the directory with the mcrypt extension source code and compile:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;cd php-5.3.6/ext/mcrypt/
phpize
aclocal
./configure
make
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Then install:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;make install
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Create the configuration file for PHP&amp;nbsp;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/etc/php.d/mcrypt.ini&lt;/strong&gt;&amp;nbsp;containing:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;extension=mcrypt.so
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Restart apache:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/etc/init.d/httpd restart
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Create a file with phpinfo just to check if the extension was loaded:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;?php
phpinfo();
?&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-9541859161831254&quot;;
/* solutiontribe.blogspot.com */
google_ad_slot = &quot;2449002429&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/4766265086378902967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/04/how-to-install-php53-mcrypt-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4766265086378902967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4766265086378902967'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/04/how-to-install-php53-mcrypt-on-centos.html' title='how to install php53-mcrypt on centos'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-4621518465383948369</id><published>2012-04-24T00:16:00.000-07:00</published><updated>2012-05-21T09:42:02.289-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;postgresql: Error connections &amp;nbsp;limit exceeded for nonsuper users.&lt;br /&gt;
to check how much connections are there.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;try netstat -an|grep 5432
&lt;/pre&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-9541859161831254&quot;;
/* solutiontribe.blogspot.com */
google_ad_slot = &quot;2449002429&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/4621518465383948369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/04/postgresql-error-connections-exceeded.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4621518465383948369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4621518465383948369'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/04/postgresql-error-connections-exceeded.html' title=''/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-2309452594236544469</id><published>2012-04-04T06:41:00.000-07:00</published><updated>2012-04-04T06:41:18.151-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="&#39;mysql.servers&#39;"/><category scheme="http://www.blogger.com/atom/ns#" term="CREATE TABLE `servers`"/><title type='text'>installing Mysql-server mysql Table &#39;mysql.servers&#39; doesn&#39;t exist</title><content type='html'>This should solve the problem. Not sure how this problem started for me but I have used the below query and its eliminated the error. &lt;br /&gt;
&lt;br /&gt;
CREATE TABLE `servers` ( &lt;br /&gt;
`Server_name` char(64) NOT NULL, &lt;br /&gt;
`Host` char(64) NOT NULL, &lt;br /&gt;
`Db` char(64) NOT NULL, &lt;br /&gt;
`Username` char(64) NOT NULL, &lt;br /&gt;
`Password` char(64) NOT NULL, &lt;br /&gt;
`Port` int(4) DEFAULT NULL, &lt;br /&gt;
`Socket` char(64) DEFAULT NULL, &lt;br /&gt;
`Wrapper` char(64) NOT NULL, &lt;br /&gt;
`Owner` char(64) NOT NULL, &lt;br /&gt;
PRIMARY KEY (`Server_name`) &lt;br /&gt;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT=&#39;MySQL Foreign Servers table&#39;;&lt;br /&gt;
&lt;br /&gt;
Regards:&lt;br /&gt;
Imran</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/2309452594236544469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/04/installing-mysql-server-mysql-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/2309452594236544469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/2309452594236544469'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/04/installing-mysql-server-mysql-table.html' title='installing Mysql-server mysql Table &#39;mysql.servers&#39; doesn&#39;t exist'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-6052094481929656735</id><published>2012-03-30T16:37:00.000-07:00</published><updated>2012-03-30T16:37:25.795-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS.6.2"/><category scheme="http://www.blogger.com/atom/ns#" term="php-5.2.x"/><category scheme="http://www.blogger.com/atom/ns#" term="rpm"/><category scheme="http://www.blogger.com/atom/ns#" term="zendoptimizer"/><title type='text'>How to install php-5.2.17 on CentOS-6.2 and configure Zend optimizer-3.3</title><content type='html'>To install php-5.2.17 on CentOS-6.2 and configure Zend optimizer.&lt;br /&gt;
Follow the procedure carefully.&lt;br /&gt;
ssh user@sever&lt;br /&gt;
password:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cd /usr/src&lt;br /&gt;
wget http://&lt;br /&gt;
php-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-bcmath-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-cli-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-common-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-dba-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-devel-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-embedded-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-gd-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-imap-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-ldap-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mbstring-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mcrypt-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mhash-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mssql-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mysql-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-pdo-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-soap-5.2.17-1.el6.art.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
................................................&lt;br /&gt;
rpm -ivh --nodeps php-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-bcmath-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-cli-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-common-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-dba-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-devel-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-embedded-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-gd-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-imap-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-ldap-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mbstring-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mcrypt-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mhash-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mssql-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-mysql-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-pdo-5.2.17-1.el6.art.x86_64.rpm &lt;br /&gt;
php-soap-5.2.17-1.el6.art.x86_64.rpm&lt;br /&gt;
....................................................&lt;br /&gt;
/etc/init.d/httpd restart&lt;br /&gt;
stoping httpd ok&lt;br /&gt;
starting httpd ok&lt;br /&gt;
&lt;br /&gt;
....................................................&lt;br /&gt;
cat /etc/yum.conf|grep php&lt;br /&gt;
exclude=php*&lt;br /&gt;
....................................................&lt;br /&gt;
&lt;br /&gt;
Zendoptimizer&lt;br /&gt;
....................................................&lt;br /&gt;
wget http://www.zend.com/products/guard/downloads&lt;br /&gt;
zindoptimizer 3.3(php-2.5.x linux)&lt;br /&gt;
tar -zxvf zedoptimizer-3.3-tar.gz&lt;br /&gt;
1. Extract the Zend Optimizer package.&lt;br /&gt;
&lt;br /&gt;
2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which&lt;br /&gt;
   corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).&lt;br /&gt;
&lt;br /&gt;
2. Add the following line to your php.ini file:&lt;br /&gt;
   Linux and Mac OS X:     zend_extension=&lt;full_path_to_ZendOptimizer.so&gt;&lt;br /&gt;
   Windows:                zend_extension_ts=&lt;full_path_to_ZendOptimizer.dll&gt;&lt;br /&gt;
   Windows non-thread safe: zend_extension=&lt;full_path_to_ZendOptimizer.dll&gt;&lt;br /&gt;
   (*) The Windows non-thread safe binary is only used with Zend Core 2.0.&lt;br /&gt;
 &lt;br /&gt;
3. Restart your Web server.&lt;br /&gt;
&lt;br /&gt;
vim /etc/php.ini&lt;br /&gt;
zend_extension=&lt;full_path_to_ZendOptimizer.so&gt;&lt;br /&gt;
&lt;br /&gt;
4.php -v&lt;br /&gt;
&lt;br /&gt;
reboot the server.&lt;br /&gt;
&lt;br /&gt;
enjoy</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/6052094481929656735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/03/how-to-install-php-5217-on-centos-62.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/6052094481929656735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/6052094481929656735'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/03/how-to-install-php-5217-on-centos-62.html' title='How to install php-5.2.17 on CentOS-6.2 and configure Zend optimizer-3.3'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-6761404844683823322</id><published>2012-03-14T06:19:00.002-07:00</published><updated>2012-03-14T06:19:33.181-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Recover MySQL root Password"/><title type='text'>Recover MySQL root Password</title><content type='html'>Recover MySQL root Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can recover MySQL database server password with following five easy steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step # 1: Stop the MySQL server process.&lt;br /&gt;
&lt;br /&gt;
Step # 2: Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for password.&lt;br /&gt;
&lt;br /&gt;
Step # 3: Connect to mysql server as the root user.&lt;br /&gt;
&lt;br /&gt;
Step # 4: Setup new mysql root account password i.e. reset mysql password.&lt;br /&gt;
&lt;br /&gt;
Step # 5: Exit and restart the MySQL server.&lt;br /&gt;
&lt;br /&gt;
Here are commands you need to type for each step (login as the root user):&lt;br /&gt;
&lt;br /&gt;
Step # 1 : Stop mysql service&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/mysql stop&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Stopping MySQL database server: mysqld.&lt;br /&gt;
Step # 2: Start to MySQL server w/o password:&lt;br /&gt;
&lt;br /&gt;
# mysqld_safe --skip-grant-tables &amp;&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
[1] 5988&lt;br /&gt;
Starting mysqld daemon with databases from /var/lib/mysql&lt;br /&gt;
mysqld_safe[6025]: started&lt;br /&gt;
Step # 3: Connect to mysql server using mysql client:&lt;br /&gt;
&lt;br /&gt;
# mysql -u root&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log&lt;br /&gt;
Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the buffer.&lt;br /&gt;
mysql&gt;&lt;br /&gt;
Step # 4: Setup new MySQL root user password&lt;br /&gt;
&lt;br /&gt;
mysql&gt; use mysql;&lt;br /&gt;
mysql&gt; update user set password=PASSWORD(&quot;NEW-ROOT-PASSWORD&quot;) where User=&#39;root&#39;;&lt;br /&gt;
mysql&gt; flush privileges;&lt;br /&gt;
mysql&gt; quit&lt;br /&gt;
&lt;br /&gt;
Step # 5: Stop MySQL Server:&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/mysql stop&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Stopping MySQL database server: mysqld&lt;br /&gt;
STOPPING server from pid file /var/run/mysqld/mysqld.pid&lt;br /&gt;
mysqld_safe[6186]: ended&lt;br /&gt;
[1]+  Done                    mysqld_safe --skip-grant-tables&lt;br /&gt;
Step # 6: Start MySQL server and test it&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/mysql start&lt;br /&gt;
# mysql -u root -p</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/6761404844683823322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/03/recover-mysql-root-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/6761404844683823322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/6761404844683823322'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/03/recover-mysql-root-password.html' title='Recover MySQL root Password'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-1167208176785189375</id><published>2012-03-07T00:13:00.000-08:00</published><updated>2012-03-07T00:13:20.980-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="httpd"/><category scheme="http://www.blogger.com/atom/ns#" term="make_sock"/><category scheme="http://www.blogger.com/atom/ns#" term="port0.0.0.0"/><category scheme="http://www.blogger.com/atom/ns#" term="restart"/><category scheme="http://www.blogger.com/atom/ns#" term="start"/><title type='text'>Apache: Could not bind address to port (make_sock)</title><content type='html'>Apache: Could not bind address to port (make_sock)&lt;br /&gt;
If you’re upgrading server software, or changing your port config, you may accidentally Funk your Wagnalls. You’ll know the error when you try to restart apache.&lt;br /&gt;
&lt;br /&gt;
1:ps -e | grep httpd&lt;br /&gt;
21415 ?        00:00:00 httpd&lt;br /&gt;
21417 ?        00:00:00 httpd&lt;br /&gt;
21418 ?        00:00:00 httpd&lt;br /&gt;
21419 ?        00:00:00 httpd&lt;br /&gt;
21420 ?        00:00:00 httpd&lt;br /&gt;
21421 ?        00:00:00 httpd&lt;br /&gt;
21422 ?        00:00:00 httpd&lt;br /&gt;
21423 ?        00:00:00 httpd&lt;br /&gt;
21424 ?        00:00:00 httpd&lt;br /&gt;
21425 ?        00:00:00 httpd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@it ~]# kill 21415&lt;br /&gt;
[root@it ~]# kill 21415&lt;br /&gt;
-bash: kill: (21415) - No such process&lt;br /&gt;
[root@it ~]# ps -e | grep httpd&lt;br /&gt;
[root@it ~]# service httpd restart&lt;br /&gt;
Stopping httpd:                                            [FAILED]&lt;br /&gt;
Starting httpd:                                            [  OK  ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2:- ~: sudo /etc/init.d/apache2 start&lt;br /&gt;
    * Starting web server apache2&lt;br /&gt;
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080&lt;br /&gt;
    no listening sockets available, shutting down&lt;br /&gt;
    Unable to open logs&lt;br /&gt;
    ...fail!&lt;br /&gt;
&lt;br /&gt;
Apache is attempting to listen on port 8080, but cannot because it’s already in use. There are a few reasons why this might be happening.&lt;br /&gt;
&lt;br /&gt;
Port configuration problem&lt;br /&gt;
If you have have duplicate Listen entries, Apache will yell at you. Make sure that your apache.conf &amp; ports.conf don’t both include this directive. If it’s only being listed once (see the example ports.conf below), then make sure you didn’t accidentally duplicate your ports.conf somewhere apache would notice.&lt;br /&gt;
&lt;br /&gt;
Listen 8080&lt;br /&gt;
&lt;br /&gt;
#&lt;IfModule mod_ssl.c&gt;&lt;br /&gt;
# Listen 443&lt;br /&gt;
#&lt;/IfModule&gt;&lt;br /&gt;
Another service could be using the port&lt;br /&gt;
When I ran into this error, it was because another instance of apache was already running. This next example uses netstat, grep, and kill to root out &amp; fix the problem.&lt;br /&gt;
&lt;br /&gt;
# try to start apache, receive error&lt;br /&gt;
&lt;br /&gt;
~: sudo /etc/init.d/apache2 start&lt;br /&gt;
 * Starting web server apache2&lt;br /&gt;
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080&lt;br /&gt;
no listening sockets available, shutting down&lt;br /&gt;
Unable to open logs&lt;br /&gt;
   ...fail!&lt;br /&gt;
&lt;br /&gt;
# see what&#39;s using the port (note that I&#39;m searching for :80, I could also use :8080)&lt;br /&gt;
&lt;br /&gt;
~: sudo netstat -tulpn| grep :80&lt;br /&gt;
&lt;br /&gt;
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      29004/apache2   &lt;br /&gt;
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      28964/nginx &lt;br /&gt;
&lt;br /&gt;
# I see that apache2 is using 8080! Kill it!&lt;br /&gt;
&lt;br /&gt;
~: killall -9 apache2&lt;br /&gt;
&lt;br /&gt;
# Let&#39;s try again, with success&lt;br /&gt;
&lt;br /&gt;
~: sudo /etc/init.d/apache2 start&lt;br /&gt;
 * Starting web server apache2&lt;br /&gt;
   ...done.&lt;br /&gt;
&lt;br /&gt;
Remember to dig in and evaluate server problems instead of just rebooting. I rebooted four times before I decided that I must have screwed something up.</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/1167208176785189375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/03/apache-could-not-bind-address-to-port.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/1167208176785189375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/1167208176785189375'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/03/apache-could-not-bind-address-to-port.html' title='Apache: Could not bind address to port (make_sock)'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-3907808321724734858</id><published>2012-01-20T04:28:00.000-08:00</published><updated>2012-01-20T04:28:03.182-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Munin monitoring tool. proeccess monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="network monitoring."/><title type='text'>how to Install and configure Munin on linux server</title><content type='html'>The Installation and configuration are listed below&lt;br /&gt;
...................................................&lt;br /&gt;
&lt;br /&gt;
Server Monitoring With munin&lt;br /&gt;
&lt;br /&gt;
Munin produces nifty little graphics about nearly every aspect of the server (load average, memory usage, CPU usage, MySQL throughput, eth0 traffic, etc.) without much configuration, whereas monit checks the availability of services like Apache, MySQL, Postfix, Postgresql and takes the appropriate action such as a restart if it finds a service is not behaving as expected. The combination of the two gives you full monitoring: graphics that lets you recognize current or upcoming problems (like &quot;We need a bigger server soon, our load average is increasing rapidly.&quot;), and a watchdog that ensures the availability of the monitored services.&lt;br /&gt;
&lt;br /&gt;
Although munin lets you monitor more than one server, we will only discuss the monitoring of the system where it is installed here.&lt;br /&gt;
&lt;br /&gt;
This tutorial is written for RHEL-4, but the configuration should apply to other distributions with little changes as well.&lt;br /&gt;
&lt;br /&gt;
1:Enable The RPMforge Repository&lt;br /&gt;
&lt;br /&gt;
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;br /&gt;
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
2:Install And Configure munin&lt;br /&gt;
&lt;br /&gt;
To install munin on RHEL-4, we do this:&lt;br /&gt;
&lt;br /&gt;
yum install munin munin-node&lt;br /&gt;
&lt;br /&gt;
3:Then we create the system startup links for munin and start it:&lt;br /&gt;
chkconfig --levels 235 munin-node on&lt;br /&gt;
/etc/init.d/munin-node start&lt;br /&gt;
&lt;br /&gt;
Note:if chkconfig is not working from your login then do the following&lt;br /&gt;
yourlogin# su -&lt;br /&gt;
enter the root password:XXXXXXX&lt;br /&gt;
and again apply the chkconfig command you will have that.&lt;br /&gt;
&lt;br /&gt;
4:we must edit the munin configuration file /etc/munin/munin.conf. We want munin to put its output into the directory /var/www/html/domaindirectory(serverweb)/munin, therefore we change the value of htmldir, and we want it to use the name serverweb instead of localhost.localdomain in the HTML output, therefore we replace localhost.localdomain with server1web. Without the comments,&lt;br /&gt;
&lt;br /&gt;
vim /etc/munin/munin.conf&lt;br /&gt;
&lt;br /&gt;
[...]&lt;br /&gt;
dbdir /var/lib/munin&lt;br /&gt;
htmldir /var/www/html/serverweb/munin&lt;br /&gt;
logdir /var/log/munin&lt;br /&gt;
rundir /var/run/munin&lt;br /&gt;
&lt;br /&gt;
Where to look for the HTML templates&lt;br /&gt;
tmpldir /etc/munin/templates&lt;br /&gt;
[...]&lt;br /&gt;
a simple host tree&lt;br /&gt;
[server1.domain.com] #you domain name&lt;br /&gt;
address 127.0.0.1&lt;br /&gt;
use_node_name yes&lt;br /&gt;
[...]&lt;br /&gt;
5:Next we create the directory /var/www/html/serverweb/munin and change its ownership to the user and group munin, otherwise munin cannot place its output in that directory. Then we restart munin:&lt;br /&gt;
&lt;br /&gt;
mkdir -p /var/www/html/serverweb/munin&lt;br /&gt;
chown munin:munin /var/www/html/serverweb/munin&lt;br /&gt;
/etc/init.d/munin-node restart&lt;br /&gt;
&lt;br /&gt;
6: after a few minuts open your browser and access the link your.domain.com/munin&lt;br /&gt;
&lt;br /&gt;
7: Password-Protect The munin Output Directory (Optional)&lt;br /&gt;
Now it is a good idea to password-protect the directory /var/www/html/serverweb/munin unless you want everybody to be able to see every little statistic about your server.&lt;br /&gt;
&lt;br /&gt;
To do this, we create an .htaccess file in /var/www/html/serverweb/munin:&lt;br /&gt;
&lt;br /&gt;
vim /var/www/html/serverweb/munin/.htaccess&lt;br /&gt;
&lt;br /&gt;
AuthType Basic&lt;br /&gt;
AuthName &quot;Members Only&quot; &lt;br /&gt;
AuthUserFile /var/www/html/serverweb/.htpasswd&lt;br /&gt;
&lt;limit GET PUT POST&gt;&lt;br /&gt;
require valid-user&lt;br /&gt;
&lt;/limit&gt;&lt;br /&gt;
&lt;br /&gt;
8:Then we must create the password file /var/www/html/serverweb/.htpasswd. We want to log in with the username admin, so we do this:&lt;br /&gt;
htpasswd -c /var/www/html/serverweb/.htpasswd admin&lt;br /&gt;
&lt;br /&gt;
9:open browser and type http://www.serverweb.com/munin&lt;br /&gt;
user name: admin&lt;br /&gt;
password: admin&lt;br /&gt;
&lt;br /&gt;
10: Thats all about for x86_64 RHEL-4 server.&lt;br /&gt;
&lt;br /&gt;
Regards &amp; Thanks&lt;br /&gt;
Imran Ullah</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/3907808321724734858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/01/how-to-install-and-configure-munin-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/3907808321724734858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/3907808321724734858'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/01/how-to-install-and-configure-munin-on.html' title='how to Install and configure Munin on linux server'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-322281542573704446</id><published>2012-01-20T04:25:00.000-08:00</published><updated>2012-01-20T04:25:58.627-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Monit with postgresql. server monitoring status"/><category scheme="http://www.blogger.com/atom/ns#" term="services"/><title type='text'>how to Install and configure  Monit on Linux  server RHEL</title><content type='html'>The Installation and configuration details are listed below.&lt;br /&gt;
............................................................&lt;br /&gt;
&lt;br /&gt;
Install and Configure Monit on Linux Server for Process Monitoring&lt;br /&gt;
Monit is a open source utility for managing and monitoring, processes, files, directories and devices on a Unix system. Monit can perform automatic maintenance and repair and can execute useful actions in error situations.&lt;br /&gt;
&lt;br /&gt;
E.g.&lt;br /&gt;
monit can start a process if it does not run,&lt;br /&gt;
monit can restart a process if it does not respond,&lt;br /&gt;
monit can stop a process if it uses to much resources.&lt;br /&gt;
&lt;br /&gt;
You may use monit to monitor files, directories and devices for changes, such as timestamp changes, checksum changes or size changes.&lt;br /&gt;
&lt;br /&gt;
1. Download the latest monit from rpmforge repository.&lt;br /&gt;
For (x86-bit) systems&lt;br /&gt;
&lt;br /&gt;
wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/monit-5.2.5-1.el5.rf.x86_64.rpm&lt;br /&gt;
rpm -Uvh moit-5.2.5-1.el5.rf.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
2. Install the monit rpm&lt;br /&gt;
rpm -Uvh monit-5.2.5-1.el5.rf.i386.rpm&lt;br /&gt;
&lt;br /&gt;
yum install monit&lt;br /&gt;
&lt;br /&gt;
chkconfig --levels 235 monit on&lt;br /&gt;
if chkconfig is unreconizable and installed then enter the command on you terminal and check again it will work.&lt;br /&gt;
su - presss enter&lt;br /&gt;
chkconfig --levels 235 monit on&lt;br /&gt;
&lt;br /&gt;
3. Configure monit&lt;br /&gt;
vi /etc/monit.conf&lt;br /&gt;
&lt;br /&gt;
set daemon  120           # check services at 2-minute intervals&lt;br /&gt;
 set logfile /var/log/monit/access.log&lt;br /&gt;
 set mailserver mail.server.local,               # primary mailserver&lt;br /&gt;
 set alert admin@server.local&lt;br /&gt;
set httpd port 2812 and&lt;br /&gt;
     allow localhost        # allow localhost to connect to the server and&lt;br /&gt;
     allow IP.x.x.x       # allow client ip address to connect to the server and&lt;br /&gt;
     allow admin:monit      # require user &#39;admin&#39; with password &#39;monit&#39;&lt;br /&gt;
4. Create /var/monit directory to place id and state&lt;br /&gt;
mkdir /var/monit&lt;br /&gt;
&lt;br /&gt;
5. Configure service to be monitor&lt;br /&gt;
&lt;br /&gt;
vim /etc/monit.d/monitrc&lt;br /&gt;
&lt;br /&gt;
check process proftpd with pidfile /var/run/proftpd.pid&lt;br /&gt;
start program = &quot;/etc/init.d/proftpd start&quot; &lt;br /&gt;
stop program = &quot;/etc/init.d/proftpd stop&quot; &lt;br /&gt;
if failed port 21 protocol ftp then restart&lt;br /&gt;
if 5 restarts within 5 cycles then timeout&lt;br /&gt;
&lt;br /&gt;
check process sshd with pidfile /var/run/sshd.pid&lt;br /&gt;
start program &quot;/etc/init.d/sshd start&quot; &lt;br /&gt;
stop program &quot;/etc/init.d/sshd stop&quot; &lt;br /&gt;
if failed port 22 protocol ssh then restart&lt;br /&gt;
if 5 restarts within 5 cycles then timeout&lt;br /&gt;
&lt;br /&gt;
check process mysql with pidfile /var/run/mysqld/mysqld.pid&lt;br /&gt;
group database&lt;br /&gt;
start program = &quot;/etc/init.d/mysqld start&quot; &lt;br /&gt;
stop program = &quot;/etc/init.d/mysqld stop&quot; &lt;br /&gt;
if failed host 127.0.0.1 port 3306 then restart&lt;br /&gt;
if 5 restarts within 5 cycles then timeout&lt;br /&gt;
&lt;br /&gt;
check process apache with pidfile /var/run/httpd.pid&lt;br /&gt;
group www&lt;br /&gt;
start program = &quot;/etc/init.d/httpd start&quot; &lt;br /&gt;
stop program = &quot;/etc/init.d/httpd stop&quot; &lt;br /&gt;
if failed host www.serverweb.com port 80 protocol http&lt;br /&gt;
and request &quot;/monit/token&quot; then restart&lt;br /&gt;
if cpu is greater than 60% for 2 cycles then alert&lt;br /&gt;
if cpu &gt; 80% for 5 cycles then restart&lt;br /&gt;
if totalmem &gt; 500 MB for 5 cycles then restart&lt;br /&gt;
if children &gt; 250 then restart&lt;br /&gt;
if loadavg(5min) greater than 10 for 8 cycles then stop&lt;br /&gt;
if 3 restarts within 5 cycles then timeout&lt;br /&gt;
&lt;br /&gt;
check process postfix with pidfile /var/spool/postfix/pid/master.pid&lt;br /&gt;
group mail&lt;br /&gt;
start program = &quot;/etc/init.d/postfix start&quot; &lt;br /&gt;
stop program = &quot;/etc/init.d/postfix stop&quot; &lt;br /&gt;
if failed port 25 protocol smtp then restart&lt;br /&gt;
if 5 restarts within 5 cycles then timeout&lt;br /&gt;
&lt;br /&gt;
check process postgresql with pidfile /opt/postgres/data/postmaster.pid&lt;br /&gt;
group database&lt;br /&gt;
start program = &quot;/etc/init.d/postgresql start&quot; &lt;br /&gt;
stop program = &quot;/etc/init.d/postgresql stop&quot; &lt;br /&gt;
if failed unixsocket /tmp/.s.PGSQL.5432 protocol pgsql then restart&lt;br /&gt;
if failed unixsocket /tmp/.s.PGSQL.5432 protocol pgsql then alert&lt;br /&gt;
if failed host localhost port 5432 protocol pgsql then restart&lt;br /&gt;
if failed host localhost port 5432 protocol pgsql then alert&lt;br /&gt;
if 5 restarts within 5 cycles then timeout&lt;br /&gt;
&lt;br /&gt;
:wq!&lt;br /&gt;
&lt;br /&gt;
6: mkdir /var/www/serverweb/monit&lt;br /&gt;
echo &quot;hello&quot; &gt; /var/www/serverweb/monit/token&lt;br /&gt;
&lt;br /&gt;
7:mkdir /var/log/monit&lt;br /&gt;
&lt;br /&gt;
8:Finally, we can start monit:&lt;br /&gt;
/etc/init.d/monit start&lt;br /&gt;
&lt;br /&gt;
9: access the web interface www.serverweb.com:2812&lt;br /&gt;
username: admin&lt;br /&gt;
password: monit&lt;br /&gt;
&lt;br /&gt;
10: you can add the application data to monitor to /etc/monit.d/monitrc&lt;br /&gt;
as i have did it in my server.&lt;br /&gt;
&lt;br /&gt;
11: Create a possward for the user to login through web interface root# htpasswd -c /etc/monitpasswd admin&lt;br /&gt;
&lt;br /&gt;
IMPORTANT NOTE&lt;br /&gt;
(To configure postgresql server and services you have to follow the steps below).&lt;br /&gt;
&lt;br /&gt;
postgresql support:&lt;br /&gt;
&lt;br /&gt;
Step # 1: Becoming a superuser&lt;br /&gt;
&lt;br /&gt;
You need to login as database super user under postgresql server. Again the simplest way to connect as the postgres user is to change to the postgres unix user on the database server using su command as follows:&lt;br /&gt;
su - postgres&lt;br /&gt;
Step #3: Now connect to database server&lt;br /&gt;
&lt;br /&gt;
Type the following command&lt;br /&gt;
$ psql template1&lt;br /&gt;
OR&lt;br /&gt;
$ psql -d template1 -U postgres&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Welcome to psql 7.4.16, the PostgreSQL interactive terminal.&lt;br /&gt;
Type: \\copyright for distribution terms&lt;br /&gt;
\\h for help with SQL commands&lt;br /&gt;
\\? for help on internal slash commands&lt;br /&gt;
\\g or terminate with semicolon to execute query&lt;br /&gt;
\\q to quit&lt;br /&gt;
template1=#&lt;br /&gt;
&lt;br /&gt;
Step #4: Add a user called monit&lt;br /&gt;
&lt;br /&gt;
Type the following command to create a user called monit with a password called myPassword&lt;br /&gt;
&lt;br /&gt;
template1=# CREATE USER monit WITH PASSWORD &#39;myPassword&#39;;&lt;br /&gt;
&lt;br /&gt;
Step #5: Add a database called monit&lt;br /&gt;
&lt;br /&gt;
Type the following command&lt;br /&gt;
&lt;br /&gt;
template1=# CREATE DATABASE monit;&lt;br /&gt;
&lt;br /&gt;
Now grant all privileges on database&lt;br /&gt;
&lt;br /&gt;
template1=# GRANT ALL PRIVILEGES ON DATABASE monit to monit;&lt;br /&gt;
Type \q to quit:&lt;br /&gt;
&lt;br /&gt;
template1=# \q&lt;br /&gt;
&lt;br /&gt;
Step #6: Test tom user login&lt;br /&gt;
&lt;br /&gt;
In order to login as monit you need to type following commands. Login as monit or use su command:&lt;br /&gt;
$ su - monit&lt;br /&gt;
$ psql -d monit -U monit&lt;br /&gt;
&lt;br /&gt;
12: 1. Create DB user `root&#39;.&lt;br /&gt;
2. Create a database &#39;root&#39; owned by root. It doesn&#39;t need to contain any data.&lt;br /&gt;
3. Add these descriptions to pg_hba.conf;&lt;br /&gt;
&lt;br /&gt;
host   root  root  127.0.0.1/32  trust          &lt;= for test via TCP port&lt;br /&gt;
      local  root  root  ident         sameuser       &lt;= for test via UNIX socket&lt;br /&gt;
now the monit can restart the postgresql if there is any exception occurs in postgresql responding.&lt;br /&gt;
&lt;br /&gt;
13: /etc/ini.d/monit restart&lt;br /&gt;
&lt;br /&gt;
14:open your browser and access the link http://www.severweb.com:2812&lt;br /&gt;
&lt;br /&gt;
That&#39;s all about monit installation and configuration&lt;br /&gt;
&lt;br /&gt;
Regards &amp; Thanks &lt;br /&gt;
Imran Ullah</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/322281542573704446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/01/how-to-install-and-configure-monit-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/322281542573704446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/322281542573704446'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/01/how-to-install-and-configure-monit-on.html' title='how to Install and configure  Monit on Linux  server RHEL'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-4638182386606109225</id><published>2012-01-20T04:23:00.000-08:00</published><updated>2012-01-20T04:23:08.950-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="M/Monit"/><category scheme="http://www.blogger.com/atom/ns#" term="Monit"/><category scheme="http://www.blogger.com/atom/ns#" term="Sever Monitoring Tools"/><title type='text'>How to Install and Configure M/Monit on RHEL X86_64 step by setp</title><content type='html'>nstallation and configuration procedure are listed below:&lt;br /&gt;
..........................................................&lt;br /&gt;
&lt;br /&gt;
M/Monit expand upon Monit&#39;s capabilities to provide monitoring and management of all Monit enabled hosts from one easy to use web-interface.&lt;br /&gt;
This M/Monit release require Monit 5.2 or later as an agent. Monit can be downloaded from http://mmonit.com/download. See Supported Platforms for the exact OS versions supported by the binaries.&lt;br /&gt;
&lt;br /&gt;
To install M/Monit:&lt;br /&gt;
&lt;br /&gt;
1. First, check that M/Monit is supported on your OS platform&lt;br /&gt;
&lt;br /&gt;
2. Get the latest release from http://mmonit.com/download/&lt;br /&gt;
&lt;br /&gt;
3. Download and unpack the tar.gz file in a directory, any directory will do, &lt;br /&gt;
but unpacking in /opt or /usr/local are good choices.&lt;br /&gt;
&lt;br /&gt;
4. Go to the unpacked mmonit-&lt;version&gt; directory&lt;br /&gt;
&lt;br /&gt;
5. Run M/Monit using: ./bin/mmonit&lt;br /&gt;
&lt;br /&gt;
6. Point your Browser to the host where monit is installed (or &quot;localhost&quot; &lt;br /&gt;
if running on the same machine), for example: http://localhost:8080/&lt;br /&gt;
and login as user &quot;admin&quot; with password &quot;swordfish&quot;.&lt;br /&gt;
&lt;br /&gt;
You can run mmonit as any user, including root. It is not necessary to create a standalone account to run mmonit.&lt;br /&gt;
&lt;br /&gt;
7:now do some changes on monit configuration files to connect both the servers.&lt;br /&gt;
&lt;br /&gt;
vim /etc/monit.d/monitrc&lt;br /&gt;
&lt;br /&gt;
add the following entries at the top of every files you want to monitor&lt;br /&gt;
&lt;br /&gt;
set eventqueue basedir /var/monit/ slots 1000&lt;br /&gt;
set mmonit http://monit:monit@192.168.1.10:8080/collector&lt;br /&gt;
set httpd port 2812 and use address 192.168.1.101&lt;br /&gt;
allow localhost&lt;br /&gt;
allow 192.168.1.10&lt;br /&gt;
allow admin:secret&lt;br /&gt;
&lt;br /&gt;
Assume we have the machines above where M/Monit runs on 192.168.1.10 and listen on port 8080. And Monit runs on 192.168.1.101&lt;br /&gt;
and listen on port 2812.&lt;br /&gt;
&lt;br /&gt;
if both are running on the same server then both all the three IP&#39;s will be same are you can you can use 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
Note:ISSUE&lt;br /&gt;
if you are working on cloud servers they are using private IP addresses, by attempting your server primary live IP you would never going to successfully connect both the servers.&lt;br /&gt;
&lt;br /&gt;
For that you have to ask your service porvider if you don&#39;t know your server secondry IP address which is the Private IP. and Put the Private IP Address in line number 2 of the above 6 steps.&lt;br /&gt;
&lt;br /&gt;
In Line 3 put the name of your server serverweb in place of IP address.&lt;br /&gt;
&lt;br /&gt;
Then allow your live IP address to connect through.&lt;br /&gt;
&lt;br /&gt;
8: if you have a firewall then you also have to permit access for port 80 and port 2812 by creating policy, otherwise you will be unable to access your application&lt;br /&gt;
&lt;br /&gt;
9: if you have more than 20 hosts to monitor through M/Monit then you have to change the default sqlite database to Postgresql or Mysql.&lt;br /&gt;
&lt;br /&gt;
setps are listed here but i am using sqlite because i am monitoring not that much hosts.&lt;br /&gt;
Setting up M/Monit to use either MySQL or PostgreSQL is a simple two step process:&lt;br /&gt;
&lt;br /&gt;
step-1:Create the M/Monit database. The database schemas can be found in mmonit/db/ Use one of the following recipes:&lt;br /&gt;
&lt;br /&gt;
MySQL:&lt;br /&gt;
1) Create the mmonit database: mysqladmin create mmonit -u root -p&lt;br /&gt;
2) Create the mmonit user and grant access to the mmonit database:&lt;br /&gt;
GRANT ALL ON mmonit.* to mmonit@localhost identified by &#39;&lt;password&gt;&#39;&lt;br /&gt;
3) Create the schema: mysql -u mmonit mmonit -p &lt; mmonit-schema.mysql

PostgreSQL:
1) Create a mmonit postgres user: createuser -U postgres -P mmonit
2) Create the mmonit database: createdb -U postgres -E utf8 -O mmonit mmonit
3) Create the schema: psql -U mmonit mmonit &lt; mmonit-schema.postgresql

step-2:Configure M/Monit; edit the M/Monit configuration file mmonit/conf/server.xml and replace the SQLite &lt;Realm&gt; element with either.&lt;br /&gt;
&lt;br /&gt;
This one for MySQL:&lt;br /&gt;
&lt;Realm url=&quot;mysql://mmonit:mmonit@127.0.0.1:3306/mmonit&quot; 
minConnections=&quot;5&quot; 
maxConnections=&quot;30&quot; 
reapConnections=&quot;300&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Or this one for PostgreSQL:&lt;br /&gt;
&lt;Realm url=&quot;postgresql://mmonit:mmonit@127.0.0.1:5432/mmonit&quot; 
minConnections=&quot;5&quot; 
maxConnections=&quot;30&quot; 
reapConnections=&quot;300&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
That is it. When you start M/Monit it connects to the configured database system.&lt;br /&gt;
&lt;br /&gt;
10: After Completing this Exercise restart you monit server&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/monit restart&lt;br /&gt;
&lt;br /&gt;
11: Check from log the successful connectivity with MMonit server.&lt;br /&gt;
&lt;br /&gt;
12: open your browser and access the link http://www.serverweb.com:8080&lt;br /&gt;
&lt;br /&gt;
username:admin&lt;br /&gt;
password: as listed in M/Monit installation&lt;br /&gt;
&lt;br /&gt;
you will see the dashboard with your host server statistics.&lt;br /&gt;
&lt;br /&gt;
That&#39;s all about the M/Monit.&lt;br /&gt;
&lt;br /&gt;
Regards &amp; Thanks&lt;br /&gt;
Imran Ullah</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/4638182386606109225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2012/01/how-to-install-and-configure-mmonit-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4638182386606109225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/4638182386606109225'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2012/01/how-to-install-and-configure-mmonit-on.html' title='How to Install and Configure M/Monit on RHEL X86_64 step by setp'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-1500951497187242864</id><published>2011-12-23T03:22:00.000-08:00</published><updated>2011-12-23T03:22:55.363-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="indexer --all"/><category scheme="http://www.blogger.com/atom/ns#" term="pg_config"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Redhat 5.6"/><category scheme="http://www.blogger.com/atom/ns#" term="sphinx.conf"/><category scheme="http://www.blogger.com/atom/ns#" term="yum install g++"/><category scheme="http://www.blogger.com/atom/ns#" term="yum install gcc."/><title type='text'>Install Sphinx 2.0.2 with PostgreSQL on Redhat 5.6 Cloud Server</title><content type='html'>1:cat /etc/redhat-release&lt;br /&gt;
Red Hat Enterprise Linux Server release 5.6 (Tikanga)&lt;br /&gt;
&lt;br /&gt;
2: psql --version&lt;br /&gt;
psql (PostgreSQL) 8.4.7&lt;br /&gt;
&lt;br /&gt;
3:whereis pg_config&lt;br /&gt;
pg_config&lt;br /&gt;
&lt;br /&gt;
4:yum install postgresql84-devel&lt;br /&gt;
install compltely.&lt;br /&gt;
again check whereis pg_config&lt;br /&gt;
pg_config: /usr/bin/pg_config /usr/include/pg_config.h /usr/share/man/man1/pg_config.1.gz&lt;br /&gt;
&lt;br /&gt;
5:cd /usr/local/&lt;br /&gt;
wget http://http://sphinxsearch.com/downloads/accept.php?file=sphinx-2.0.2-beta.tar.gz&lt;br /&gt;
&lt;br /&gt;
6:tar -zxvf sphinx-2.tar.gz&lt;br /&gt;
&lt;br /&gt;
7:cd sphinx-2&lt;br /&gt;
&lt;br /&gt;
8:mkdir /usr/local/sphinx&lt;br /&gt;
&lt;br /&gt;
9:./configure --without-mysql --with-pgsql /usr/bin/pg_config --prefix=/usr/local/sphinx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10: make&lt;br /&gt;
&lt;br /&gt;
11: make install&lt;br /&gt;
&lt;br /&gt;
12: cd /usr/local/sphinx/etc&lt;br /&gt;
cp sphinx-min.conf sphinx.conf&lt;br /&gt;
&lt;br /&gt;
13: do the required changes in sphinx.conf&lt;br /&gt;
     database pgsql&lt;br /&gt;
     database user&lt;br /&gt;
     database name&lt;br /&gt;
     database password&lt;br /&gt;
     port: 5432&lt;br /&gt;
14:run the sphinx searchd&lt;br /&gt;
    /usr/local/etc/bin/indexer --all&lt;br /&gt;
    searchd start</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/1500951497187242864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/install-sphinx-202-with-postgresql-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/1500951497187242864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/1500951497187242864'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/install-sphinx-202-with-postgresql-on.html' title='Install Sphinx 2.0.2 with PostgreSQL on Redhat 5.6 Cloud Server'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-3255809508312347773</id><published>2011-12-15T07:09:00.000-08:00</published><updated>2012-05-21T06:24:30.761-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arp -a"/><category scheme="http://www.blogger.com/atom/ns#" term="block"/><category scheme="http://www.blogger.com/atom/ns#" term="IPTABLES"/><category scheme="http://www.blogger.com/atom/ns#" term="MAC Address"/><title type='text'>How to block users through MAC Address IPTABLES Ubuntu 10.10</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have installed a squid 2.7 transparently and also implemented sarg for reports. but i am facing a problem here. i have configure my network users in dhcp.conf. but there are some other users appears in my sarg reports with a heavy downloads.&lt;br /&gt;
&lt;br /&gt;
now i have to do some thing specials for these guys.&lt;br /&gt;
i am going to invite them on lunch.&lt;br /&gt;
&lt;br /&gt;
i just open terminal on my server, and run the command&lt;br /&gt;
arp -a&lt;br /&gt;
i found all the MAC Address and IP Address. i do have a MAC table of my network users.&lt;br /&gt;
then i copy all the MAC address that are not listed in my MAC table and create another file for them, past all with in a file.&lt;br /&gt;
After that i tab the terminal run the following commands to:&lt;br /&gt;
To check my iptables Rules:&lt;br /&gt;
iptables-save&lt;br /&gt;
ok&lt;br /&gt;
Then Run the command to block each MAC user that i have in newly created file. by running the following two commands repeatedly for each user.&lt;br /&gt;
&lt;br /&gt;
iptables -A INPUT -m mac --mac-source 00:xx:6b:xx:05:xx -j DROP&lt;br /&gt;
iptables -A FORWARD -m mac --mac-source 00:xx:6b:xx:05:xx -j DROP&lt;br /&gt;
&lt;br /&gt;
then check out the command&lt;br /&gt;
iptables-save&lt;br /&gt;
and then&lt;br /&gt;
iptables-apply&lt;br /&gt;
&lt;br /&gt;
All the unauthorized users are blocked now.&lt;br /&gt;
&lt;br /&gt;
if i want to give access to some one later on i have to follow the simple steps.&lt;br /&gt;
iptables -D INPUT -m mac --mac-source 00:xx:6b:xx:05:xx -j DROP&lt;br /&gt;
iptables -D FORWARD -m mac --mac-source 00:xx:6b:xx:05:xx -j DROP&lt;br /&gt;
&lt;br /&gt;
iptables-save to check the specific entry is deleted from IPTABLES-RULES.&lt;br /&gt;
now he can access the internet.&lt;br /&gt;
now who is going to pay for lunch. don&#39;t worry i am going to pay.&lt;br /&gt;
&lt;br /&gt;
Enjoy the fruits &lt;br /&gt;
do comments if you like it.&lt;br /&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/3255809508312347773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/how-to-block-users-through-mac-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/3255809508312347773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/3255809508312347773'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/how-to-block-users-through-mac-address.html' title='How to block users through MAC Address IPTABLES Ubuntu 10.10'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-7421388968326271719</id><published>2011-12-14T09:33:00.000-08:00</published><updated>2012-05-21T06:27:20.023-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hostgator"/><category scheme="http://www.blogger.com/atom/ns#" term="plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="project menu"/><category scheme="http://www.blogger.com/atom/ns#" term="Project Menu add"/><category scheme="http://www.blogger.com/atom/ns#" term="RAILS_ENV"/><category scheme="http://www.blogger.com/atom/ns#" term="tabs"/><title type='text'>How to Create Redmine Plugin (Custom Menus) and integrate on HostGator Server VPS.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;How to Create Redmine Plugin to Add Custom Menus to Project Menu on HostGator Server VPS: &lt;br /&gt;
The name of Plugin is CMenu and tittle is workplans.&lt;br /&gt;
&lt;br /&gt;
steps are below:&lt;br /&gt;
first i have taken the backup of the redmine application database.&lt;br /&gt;
host: localhost&lt;br /&gt;
username: user_redmine&lt;br /&gt;
password: password&lt;br /&gt;
encoding: utf8&lt;br /&gt;
&lt;br /&gt;
Then start creating the new plugin:&lt;br /&gt;
&lt;br /&gt;
ssh &lt;a class=&quot;email&quot; href=&quot;mailto:user@hostgator.com&quot;&gt;user@hostgator.com&lt;/a&gt; -p 2222&lt;br /&gt;
password:&lt;br /&gt;
&lt;br /&gt;
mysqldump -u user database &amp;gt; databasebakup&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating a new Plugin&lt;/b&gt;&lt;br /&gt;
To set the RAILS_ENV variable in order to use the command below:&lt;br /&gt;
&lt;br /&gt;
export RAILS_ENV=&quot;production&quot;&lt;br /&gt;
&lt;br /&gt;
Creating a new plugin can be done using the Redmine plugin generator.&lt;br /&gt;
Syntax for this generator is:&lt;br /&gt;
So open up a command prompt and &quot;cd&quot; to your redmine directory, then execute the following command:&lt;br /&gt;
&lt;br /&gt;
ruby script/generate redmine_plugin CMenu&lt;br /&gt;
&lt;br /&gt;
The plugin structure is created in vendor/plugins/redmine_C_Menu:&lt;br /&gt;
Edit vendor/plugins/redmine_C_Menu/init.rb to adjust plugin information (name, author, description and version):&lt;br /&gt;
.............................................&lt;br /&gt;
require &#39;redmine&#39;&lt;br /&gt;
Redmine::Plugin.register :redmine_C_Menu do&lt;br /&gt;
name &#39;CMenu plugin&#39;&lt;br /&gt;
author &#39;sysadmin&#39;&lt;br /&gt;
description &#39;A plugin for adding custum menu&#39;&lt;br /&gt;
version &#39;0.0.1&#39;&lt;br /&gt;
end&lt;br /&gt;
.............................................&lt;br /&gt;
&lt;br /&gt;
Then restart the application and point your browser to &lt;a class=&quot;external&quot; href=&quot;http://redmin.domain/admin/plugins&quot;&gt;http://redmin.domain/admin/plugins&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
After logging in, you should see your new plugin in the plugins list:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Generating a model&lt;/b&gt;&lt;br /&gt;
For now plugin doesn&#39;t store anything. Let&#39;s create a simple Workplans model for our plugin. Syntax is:&lt;br /&gt;
&lt;br /&gt;
ruby script/generate redmine_plugin_model CMenu workplans tabmenu:string Click:string&lt;br /&gt;
&lt;br /&gt;
This creates the workplans model and the corresponding migration file.&lt;br /&gt;
Please note you may have to rename your migration. Timestamped  migrations are not supported by the actual Redmine plugin engine  (Engines). If your migrations are named with a timestamp, rename it  using &quot;001&quot;, &quot;002&quot;, etc. instead.&lt;br /&gt;
&lt;br /&gt;
mv  vendor/plugins/redmine_c_menu/db/migrate/20111214133141_create_workplans.rb  vendor/plugins/redmine_c_menu/db/migrate/001_create_workplans.rb&lt;br /&gt;
&lt;br /&gt;
If you have already created a database table record in  plugin_schema_info with the timestamp version number, you will have to  change it to reflect your new version number, or the migration will  hang.&lt;br /&gt;
&lt;br /&gt;
Migrate the database using the following command:&lt;br /&gt;
&lt;br /&gt;
rake db:migrate_plugins&lt;br /&gt;
&lt;br /&gt;
Generating a controller&lt;br /&gt;
&lt;br /&gt;
Warning: starting from 1.4.0, Redmine  won&#39;t provide anymore the default wildcard route  (&#39;:controller/:action/:id&#39;). Plugins will have to declare the routes  they need in their proper config/routes.rb file.&lt;br /&gt;
For now, the plugin doesn&#39;t do anything. So let&#39;s create a controller for our plugin.&lt;br /&gt;
We can use the plugin controller generator for that. Syntax is:&lt;br /&gt;
&lt;br /&gt;
ruby script/generate redmine_plugin_controller CMenu workplans index&lt;br /&gt;
&lt;br /&gt;
A controller workplansController with 1 action (#index) is created.&lt;br /&gt;
Edit vendor/plugins/redmine_c_menu/app/controllers/workplans_controller.rb redmine_C_menu directory to implement the actions.&lt;br /&gt;
&lt;br /&gt;
vim vendor/plugins/redmine_c_menu/app/controllers/workplans_controller.rb  &lt;br /&gt;
.........................................................&lt;br /&gt;
class WorkplansController &amp;lt; ApplicationController&lt;br /&gt;
unloadable&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;before_filter :find_project, :authorize, :only =&amp;gt; :index&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;def index
       @workplans = CMenu.find(:all)
 end
 def find_project
      @project = Project.find(params[:project_id])
 end&lt;/code&gt;&lt;/pre&gt;end&lt;br /&gt;
............................................................&lt;br /&gt;
&lt;br /&gt;
Then edit vendor/plugins/redmine_c_menu/app/views/workplans/index.html.erb that will display existing polls:&lt;br /&gt;
...........................................................&lt;br /&gt;
&amp;lt;h2&amp;gt;Workplans&amp;lt;/h2&amp;gt;&lt;br /&gt;
............................................................&lt;br /&gt;
&lt;b&gt;Extending the project menu&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Now, let&#39;s consider  that the CMenu are defined at project level (even if it&#39;s not the case  in our example poll model). So we would like to add the CMenu tab to the  project menu instead.&lt;br /&gt;
Open init.rb and replace the line that was added just before with these 2 lines:&lt;br /&gt;
................................................................&lt;br /&gt;
permission :workplans, { :workplans =&amp;gt; [:index] }, :public =&amp;gt; true&lt;br /&gt;
menu :project_menu, :workplans, { :controller =&amp;gt; &#39;workplans&#39;,  :action =&amp;gt; &#39;index&#39; }, :caption =&amp;gt; &#39;CMenu&#39;, :after =&amp;gt; :activity,  :param =&amp;gt; :project_id&lt;br /&gt;
.................................................................&lt;br /&gt;
&lt;br /&gt;
The second line adds our Polls tab to the project menu, just after the activity tab.&lt;br /&gt;
The first line is required and declares that our 1 action from workplansController are public&lt;br /&gt;
To make it private add the permission:&lt;br /&gt;
permission :view_workplans, :workplans =&amp;gt; :index and remove the :public =&amp;gt; true from 1st line.&lt;br /&gt;
Restart the application again and go to one of your projects:&lt;br /&gt;
If you click the CMenu tab, you should notice that the project menu is no longer displayed.&lt;br /&gt;
To make the project menu visible, you have to initialize the controller&#39;s instance variable @project.&lt;br /&gt;
Edit your workplansController to do so:&lt;br /&gt;
................................................................&lt;br /&gt;
class WorkplansController &amp;lt; ApplicationController&lt;br /&gt;
unloadable&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;before_filter :find_project, :authorize, :only =&amp;gt; :index&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;def index
       @CMenu = CMenu.find(:all)
 end
 def find_project
      @project = Project.find(params[:project_id])
 end&lt;/code&gt;&lt;/pre&gt;end&lt;br /&gt;
................................................................&lt;br /&gt;
The  project id is available in the :project_id param because of the :param  =&amp;gt; :project_id option in the menu item declaration above.&lt;br /&gt;
Now, you should see the project menu when viewing the CMenu:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Adding stylesheets&lt;/b&gt;&lt;br /&gt;
Let&#39;s start by adding a stylesheet to our plugin views.&lt;br /&gt;
Create a file named workplans.css in the vendor/plugins/redmine_C_Menu/assets/stylesheets directory:&lt;br /&gt;
&lt;br /&gt;
a.workplans { font-size: 120%; color: blue }&lt;br /&gt;
&lt;br /&gt;
When starting the application, plugin assets are automatically  copied to public/plugin_assets/redmine_C_Menu/ by Rails Engines to make  them available through your web server. So any change to your plugin  stylesheets or javascripts needs an application restart.&lt;br /&gt;
Then, append the following lines at the end of  vendor/plugins/redmine__C_Menu/app/views/polls/index.html.erb so that  your stylesheet get included in the page header by Redmine:&lt;br /&gt;
..................................................................&lt;br /&gt;
&amp;lt;% html_title &quot;Workplans&quot; &amp;gt;&lt;br /&gt;
&amp;lt; content_for :header_tags do &amp;gt;&lt;br /&gt;
&amp;lt;= stylesheet_link_tag &#39;workplans&#39;, :plugin =&amp;gt; &#39;redmine_C_Menu&#39; &amp;gt;&lt;br /&gt;
&amp;lt; end %&amp;gt;&lt;br /&gt;
..................................................................&lt;br /&gt;
&lt;br /&gt;
Restart your application and view the Plugin:&lt;br /&gt;
&lt;br /&gt;
Thats it&lt;br /&gt;
&lt;br /&gt;
Regards:&lt;br /&gt;
Imran Ullah&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/7421388968326271719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/how-to-create-new-plugin-add-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7421388968326271719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7421388968326271719'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/how-to-create-new-plugin-add-custom.html' title='How to Create Redmine Plugin (Custom Menus) and integrate on HostGator Server VPS.'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-7889750325544480463</id><published>2011-12-13T12:44:00.000-08:00</published><updated>2011-12-21T09:08:11.482-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dbmigrate"/><category scheme="http://www.blogger.com/atom/ns#" term="gem"/><category scheme="http://www.blogger.com/atom/ns#" term="libapache2"/><category scheme="http://www.blogger.com/atom/ns#" term="localhost"/><category scheme="http://www.blogger.com/atom/ns#" term="passenger"/><category scheme="http://www.blogger.com/atom/ns#" term="rails 1.0.1"/><category scheme="http://www.blogger.com/atom/ns#" term="rails v=2.3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="redmine"/><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><title type='text'>How to install Redmine 1.1.2 on Ubuntu Server 10.XX</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
How to install Redmine 1.1.2 on Ubuntu Server 10.XX&lt;br /&gt;
follow the steps bellow and see how easly and step by step you are going to install and configure redmine on your local machine:&lt;br /&gt;
&lt;br /&gt;
1 : sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
2 : sudo apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
3 : sudo apt-get install ruby1.8-dev rubygems1.8 libmysql-ruby libmysqlclient-dev rake libopenssl-ruby libapache2-mod-passenger imagemagick libmagickcore-dev libmagickwand-dev&lt;br /&gt;
&lt;br /&gt;
4 : &amp;nbsp;sudo gem install rails -v=2.3.5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;if it requires the Ruby version v &amp;gt;= 1.3.1&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Then follow the steps:&lt;br /&gt;
&lt;br /&gt;
4.a: Install the following packages for ruby&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby sqlite3 libsqlite3-ruby1.8&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;We need to create some symlinks from the install to locations every programme would look for&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo ln -s /usr/bin/ri1.8 /usr/bin/ri&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo ln -s /usr/bin/irb1.8 /usr/bin/irb&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Check Ruby Version&lt;br /&gt;
&lt;br /&gt;
4.b: If you want to check ruby version use the following command&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;ruby -v&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ####################### Rubygems ###################&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries , a tool &amp;nbsp;designed to easily manage the installation of gems, and a server for distributing them.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;RubyGems Features&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Easy Installation and removal of RubyGems packages and their dependents.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Management and control of local packages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Package dependency management&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Query, search and list local and remote packages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Multiple version support for installed packages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Web-based interface to view the documentation for your installed gems&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Easy to use interface for building gem packages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Simple server for distributing your own gem packages&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;you can download latest rubygems&lt;br /&gt;
&lt;br /&gt;
4.c: wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz&lt;br /&gt;
4.d: tar xzvf rubygems-1.3.1.tgz&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cd rubygems-1.3.1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Install rubygem using the following command&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo ruby setup.rb&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;This will complete the rubygem installation.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Now create a symbolic link using the following command&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo ln -s /usr/bin/gem1.8 /usr/bin/gem&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Check gem version using the following command&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;gem -v&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Update gem packages using the following command&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo gem update --system&lt;br /&gt;
4.e: now repeat the step 4&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gem install rails -v=3.2.5&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; you will see some warnings like No definition for X. Ignore those, they mean that some documentation was not installed, and we can live with that.&lt;br /&gt;
&lt;br /&gt;
5 : sudo gem install mysql&lt;br /&gt;
&lt;br /&gt;
6 : sudo gem install ruby-openid&lt;br /&gt;
&lt;br /&gt;
7 : sudo gem install i18n -v=0.4.2&lt;br /&gt;
&lt;br /&gt;
8 : sudo gem install passenger&lt;br /&gt;
&lt;br /&gt;
9 : sudo gem install rmagick&lt;br /&gt;
&lt;br /&gt;
you will see some warnings like No definition for X. Ignore those, they mean that some documentation was not installed, and we can live with that.&lt;br /&gt;
&lt;br /&gt;
10 : Enter the MySQL console as root:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;mysql -u root -p&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;password:&lt;br /&gt;
11 : inside the MySQL console, execute these commands:&lt;br /&gt;
&lt;br /&gt;
11.a) create database redmine character set utf8;&lt;br /&gt;
&lt;br /&gt;
11.b) create user &#39;redmine&#39;@&#39;localhost&#39; identified by &#39;redmine@123&#39;;&lt;br /&gt;
&lt;br /&gt;
11.c) grant all privileges on redmine.* to &#39;redmine&#39;@&#39;localhost&#39;;&lt;br /&gt;
&lt;br /&gt;
exit from mysql.&lt;br /&gt;
Remember to change myPassword with your actual password. This is the one that will be used for the user redmine in the database redmine at localhost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12 : Execute the following commands to get redmine 1.1.2.&lt;br /&gt;
server@root# wget http://rubyforge.org/frs/download.php/74419/redmine-1.1.2.tar.gz&lt;br /&gt;
download completed&lt;br /&gt;
then&lt;br /&gt;
&lt;br /&gt;
13 : tar -xvzf redmine-1.1.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
14 : cd redmine-1.1.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15 : Now setup the database configuration file to match our current environment:&lt;br /&gt;
&lt;br /&gt;
cp config/database.yml.example config/database.yml&lt;br /&gt;
&lt;br /&gt;
vim config/database.yml&lt;br /&gt;
&lt;br /&gt;
production:&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;adapter: mysql&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;database: redmine&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;host: localhost&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;username: redmine&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;password: redmine@123&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;encoding: utf8&lt;br /&gt;
&lt;br /&gt;
development:&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;adapter: mysql&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;database: redmine_development&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;host: localhost&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;username: redmine&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;password: redmine@123&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;encoding: utf8&lt;br /&gt;
&lt;br /&gt;
save and exit!&lt;br /&gt;
&lt;br /&gt;
16 : generate session and db migration:&lt;br /&gt;
&lt;br /&gt;
rake generate_session_store&lt;br /&gt;
If you have a problem by installing Redmine 1.2.2:&lt;br /&gt;
&lt;br /&gt;
rake aborted!&lt;br /&gt;
uninitialized constant Gem::SyckDefaultKey&lt;br /&gt;
then run the following command:&lt;br /&gt;
sudo gem update --system 1.3.7&lt;br /&gt;
rake generate_session_store&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /opt/redmine&lt;br /&gt;
&lt;br /&gt;
cd /opt/redmine&lt;br /&gt;
&lt;br /&gt;
sudo cp -r ~/redmine-1.1.2 .&lt;br /&gt;
&lt;br /&gt;
cd redmine-1.1.2&lt;br /&gt;
&lt;br /&gt;
sudo RAILS_ENV=production rake db:migrate&lt;br /&gt;
&lt;br /&gt;
sudo RAILS_ENV=production rake redmine:load_default_data&lt;br /&gt;
&lt;br /&gt;
Note: Press enter to accept the default language (English) and then execute the following:&lt;br /&gt;
&lt;br /&gt;
17 : Now do the following&lt;br /&gt;
&lt;br /&gt;
sudo chown -R www-data:www-data files log tmp public/plugin_assets&lt;br /&gt;
&lt;br /&gt;
sudo chmod -R 755 files log tmp public/plugin_assets&lt;br /&gt;
&lt;br /&gt;
sudo nano /etc/apache2/mods-available/passenger.conf&lt;br /&gt;
&lt;br /&gt;
Add this line inside the &amp;lt;IfModule mod_passenger.c&amp;gt; tag:&lt;br /&gt;
&lt;br /&gt;
18 : PassengerDefaultUser www-data&lt;br /&gt;
&lt;br /&gt;
19 : Now let’s configure apache:&lt;br /&gt;
&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default&lt;br /&gt;
&lt;br /&gt;
20 : Just before the closing tag, &amp;lt;/VirtualHost&amp;gt;, add the following:&lt;br /&gt;
&lt;br /&gt;
RailsEnv production&lt;br /&gt;
&lt;br /&gt;
RailsBaseURI /redmine&lt;br /&gt;
&lt;br /&gt;
21 : Now we put a link to our application to be accessible from apache and restart it:&lt;br /&gt;
sudo ln -s /opt/redmine/redmine-1.1.2/public /var/www/redmine&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
22 : now open your browser and type:&lt;br /&gt;
&lt;br /&gt;
http://localhost/redmine&lt;br /&gt;
&lt;br /&gt;
username: admin&lt;br /&gt;
password: admin&lt;br /&gt;
&lt;br /&gt;
Thats it!&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var AdBrite_Title_Color = &#39;0000FF&#39;;
var AdBrite_Text_Color = &#39;000000&#39;;
var AdBrite_Background_Color = &#39;FFFFFF&#39;;
var AdBrite_Border_Color = &#39;CCCCCC&#39;;
var AdBrite_URL_Color = &#39;008000&#39;;
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==&#39;&#39;?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe=&#39;&#39;;var AdBrite_Referrer=&#39;&#39;;}
&lt;/script&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(&#39; src=&quot;http://ads.adbrite.com/mb/text_group.php?sid=2068980&amp;zs=3330305f323530&amp;ifr=&#39;+AdBrite_Iframe+&#39;&amp;ref=&#39;+AdBrite_Referrer+&#39;&quot; type=&quot;text/javascript&quot;&gt;&#39;);document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));&lt;/script&gt;&lt;br /&gt;
&lt;div&gt;&lt;a target=&quot;_top&quot; href=&quot;http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2068980&amp;afsid=1&quot; style=&quot;font-weight:bold;font-family:Arial;font-size:13px;&quot;&gt;Your Ad Here&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/7889750325544480463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/how-to-install-redmine-112-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7889750325544480463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/7889750325544480463'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/how-to-install-redmine-112-on-ubuntu.html' title='How to install Redmine 1.1.2 on Ubuntu Server 10.XX'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6769487235545671544.post-2994164105354238859</id><published>2011-12-12T08:29:00.000-08:00</published><updated>2012-05-21T06:28:17.456-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="limit exceeded"/><category scheme="http://www.blogger.com/atom/ns#" term="nonsuper users"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><title type='text'>Error: Can not connect to posgersql, Limit Exceeded for non super users resolved</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;As we have copy the same contents on form old DB-Server to new Managed  Cloud Server, having the same username and passwords for all the  databases and same setting. &lt;br /&gt;
Due to which by name accessing the server1.com give us the error of limit exceeded for non  super users.I Google this issue and find most of the article to increase  the number of connections in postgresql.conf file. i checkout my total  connection by the time of connectivity that was less than the defined  limit. after that search out some other solution but find nothing about  this issue to resolve this. at last i applied the procedure, to access  the database through server IP rather than name. and i log-in to  PostgreSQL successfully. so the reason was the duplication of same name  on two different server with same username and password. and we have  finally resolve this issue.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solutiontribe.blogspot.com/feeds/2994164105354238859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/as-we-have-copy-same-contents-on-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/2994164105354238859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6769487235545671544/posts/default/2994164105354238859'/><link rel='alternate' type='text/html' href='http://solutiontribe.blogspot.com/2011/12/as-we-have-copy-same-contents-on-form.html' title='Error: Can not connect to posgersql, Limit Exceeded for non super users resolved'/><author><name>shahmeer</name><uri>http://www.blogger.com/profile/00889163218486365513</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>