iPhone App install to client (UAT)

July 8th, 2011

http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/

Compile OpenSSL with SNI Support

July 4th, 2011

In order to allow 1 IP Address to serve multiple SSL Websites – we will need to compile OpenSSL with SNI support

./config enable-tlsext shared
make
make install

Setting HTTPS for Apache 2.x using Godaddy SSL Certificate

July 4th, 2011

Generating csr
openssl genrsa -aes128 2048 > www.domain.com.key
openssl req -utf8 -new -key www.domain.com.key -out www.domain.com.csr

Remove Passphrase
openssl rsa -in www.domain.com.key -out www.domain.com.key2

Enable ICMP Ping reply on Windows 2008 Server

June 22nd, 2011

The default setting on Windows 2008 Firewall is configured to block certain types of traffic. One of them being ICMP.

To enable ICMP

netsh firewall set icmpsetting 8

To disable ICMP

netsh firewall set icmpsetting 8 disabled

 

Static compression is being disabled warning in IIS 7 on Windows 2008

June 21st, 2011

In IIS 7 on Windows Server 2008, application pools can be run as the “ApplicationPoolIdentity” account instead of the NetworkService account.

To resolve this issue, we will need to assign the ApplicationPoolIdentity permission to IIS temporary Compressed Files directory.

You can add the app pool identity from the command prompt with something like icacls.

icacls e:\inetpub\wwwroot\Temp /grant “IIS APPPOOL\DefaultAppPool”:(OI)(CI)(RX)

 

PHP Redirect http to https

June 17th, 2011

if ($_SERVER[‘HTTPS’] != “on”) {
$url = “https://”. $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’];??? ?header(“Location: $url”);
exit;
}

Joomla Custom Page Title

June 17th, 2011

Insert this php code in your template’s index.php file just before the closing </head> tag

hint: make sure it’s inside: <?php … ?>

$document = &JFactory::getDocument();

if (JURI::root() == JURI::current()) { // Front Page
? $document->setTitle( "Your Front Page Title" );
} else { // All other pages
? $document->setTitle( $document->getTitle() . " ? Your Site Name" );
}

 

 

Install Development Packages on Centos

April 26th, 2011

yum groupinstall ‘Development Tools’

Upgrading ESXi 4.0 to ESXi 4.1 without vCenter Upgrade Center

April 10th, 2011

You can use the vSphere CLI 4.0 vihostupdate.pl to upgrade your ESXi server.

Before you start the upgrade – you will need to meet the following pre-requisities.

First – Download VMware vSphere CLI 4.0 and Install it on Windows or Linux

Download vSphere CLI 4.0

Next Download VMWare 4.0 to 4.1 Zip Package

Once the above pre-requisties have been meet, we can now take it into action.

1. Shutdown all of your Virtual Machines

2. Enable VM Host in Maintenance Mode

3. Execute the following command and see what is available in the upgrade package

vihostupdate.pl –server vm4 –scan –bundle “e:\temp\upgrade-from-esxi4.0-to-4.1-update01-348481.zip”

4. Install ESXUpdate

vihostupdate.pl –server vm4 -i -b “e:\temp\upgrade-from-esxi4.0-to-4.1-update01-348481.zip” -B ESXi410-GA-esxupdate

5. Upgrade to ESXi 4.i

vihostupdate.pl –server vm4 -i -b “e:\temp\upgrade-from-esxi4.0-to-4.1-update01-348481.zip” -B ESXi40-TO-ESXi41UPDATE01

6. Check and ensure everything is installed properly

vihostupdate.pl –server vm4 –query

7. Reboot your server

8. Disable Maintenance Mode in VM Host

 

reference: https://www.vmware.com/pdf/vsphere4/r41/vsp_41_upgrade_guide.pdf

Converting Thick Disk to Thin Provisioned Disk

March 8th, 2011

vmkfstools -i thick.vmdk -d thin thin.vmdk