Scheduled Maintenance

There was  scheduled maintenance work  carried out on the servers hosting The Danesh  Project these past 2 days.  The servers were getting  new IPs and better infrastructure.

The outage was planned for the 22nd but somehow the hosting guys got the notification mails mixed up which explains why you did not see a post from me regarding the outage beforehand. The notification mail’s subject line read 22nd but the mail body stated 23rd.  My mind was set on the 23rd. See below.

Subject:  Shared Server ***.***.***.*** IP Migration on 22/12/2007 at 8AM (GMT+8)

Dear Customer,
Please take note that we will be performing IP migration on 23/12/2007 at 8AM (GMT+8). This means that we will switch IPs for the server. After the steps taken, there will be 5 to 10 hours of downtime period and propagation.
If you encounter any problems after the IP migration, please reply to us in this email.
Alternatively, you may submit a ticket to us at https://247livesupport.biz/.

Thank you.
247 Ticket Support Department
- http://247livesupport.biz -

Well, I guess it was a genuine mistake that I would have made myself under pressure but what got to me was the 30hours outage that was initialy suppsed to only be 5-10hours. Apparently the DNS servers were propagating slower then expected.

Good thing is the site’s back up with improved performance now and I have my smile back.

Upgrading RubyGems 0.9.5 to 1.0.1

Upgraded my Rails to 2.0.2 and RubyGems to 1.0.1.

  1. gem –version to check your gems version.
  2. sudo gem update –system to update your gems.
  3. sudo gem install rails to update rails to the latest version.

See outputs on the next page…..
read more

Malaysian toll rates from Jan 1 2008

Get ready people, the increase may look small but for those who use these routes daily it’s gonna cost them dearly over a long period.

How to configure SSL on Tomcat 5

Had to SSL on a test server running Tomcat 5 yesterday. This is how I did it.

  1. >cd $CATALINA_HOME
  2. > $JAVA_HOME/keytool -genkey -alias tomcat -keyalg RSA -keystore mycert.jks
  3. Enter keystore password: changeit
  4. What is your first and last name? [Unknown]: Danesh Manoharan
  5. What is the name of your organizational unit? [Unknown]: IT
  6. What is the name of your organization? [Unknown]: My Comp.
  7. What is the name of your City or Locality? [Unknown]: KL
  8. What is the name of your State or Province? [Unknown]: KL
  9. What is the two-letter country code for this unit? [Unknown]: MY
  10. US Is CN=Danesh Manoharan, OU=IT, O=”My Comp.”, L=KL, ST=KL, C=MY correct? [no]: yes
  11. Enter key password for (RETURN if same as keystore password): Hit Enter.

Tomcat will assume the password is “changeit” by default so it’s advised to leave it that way. Now let’s tell Tomcat to use the keystore file.

  1. cd $CATALINA_HOME/conf/
  2. vi server.xml
  3. Look for “<!– Define a SSL HTTP/1.1 Connector on port 8443 –>”. Remove the <!– –> comments indicator and add the keystore info.

<!– Define a SSL HTTP/1.1 Connector on port 8443 –>
<Connector port=”443” maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” disableUploadTimeout=”true”
acceptCount=”100″ scheme=”https” secure=”true”
keystoreFile=”/opt/Tomcat5/mycert.jks
clientAuth=”false” sslProtocol=”TLS” />

Time to restart Tomcat and test.

  1. cd $CATALINA_HOME/bin/
  2. ./shutdown.sh to make sure Tomcat is down.
  3. ./startup.sh to start Tomcat.
  4. Fire up your browser and test your new https site. https://localhost/

Need a backlink?

Need a backlink? try NeedBacklinks

Source: Malaysia Tech Blog
Need Backlinks Web Directory

© 2008-2009 The Danesh Project
Powered by Wordpress and made by Guerrilla. Best viewed in Mozilla Firefox