Tuesday, March 26, 2013

Equivalence Dell, HP and IBM


Here is some equivalence spec with different brand:

Dell EqualLogic storage
--> HP P4000 (LeftHand)
--> IBM: none available

Dell PowerVault MD storage
--> HP P2000
--> IBM DS3500

Dell PowerEdge R720 server
--> HP Proliant DL380p G8
--> IBM x3650 M4

Thursday, March 21, 2013

Upgrading VBulletin v5 beta 26 to v5.0.0

My head nearly crash... need extra RAM to support more task..

It is really headache day when I need to spend for 2 days to upgrade VBulletin v5 Beta 26. In the development environment, I manage to upgrade it without no problem. But when I upgrade it at live environment here is the error that I received:

Unexpected Text:{?xml version="1.0" encoding="windows-1252"?}
There are too many post which having the same problem but nothing solve my problem. Arghh... I really forgot to check the log error... And that is the tips to solved this problem. Finally I manage to solve it by adding this: 

Log error : Allowed memory size of 134217728 bytes exhausted (tried to allocate 54669 bytes) in /home/snappy/public_html/vB5/core/includes/class_diff.php

Old Code
function compress_row($row) 
   { 
    return gzcompress(implode('|', $row), 9); 
    } 
---------------------------------------------------------- 
New Code
function compress_row($row) 
    {
     ini_set('memory_limit','512M');
     return gzcompress(implode('|', $row), 9); 
     }

Refference : http://www.vbulletin.com/forum/forum/vbulletin-5-connect/vbulletin-5-upgrades/423983-php-memory-error-during-upgrade



Tuesday, March 5, 2013

Mount New Hardisk in Ubuntu


Mount New Hardisk

  1. Mount New Hardisk via virtual or physical
  2. Restart the server.

Determine Drive Information
# lshw -C disk
 It will display the hardisk that you mount


Command Line Partitioning

  1. Initiate fdisk with the following command:# fdisk /dev/sdb
  2. m  then you can see the menu as below
  3. choose n -> add new partition
  4. then choose p -> for primary partition
  5. then choose 1 -> Since this will be the only partition on the drive, number 1. Enter "1" and enter
  6. Now that the partition is entered, choose option "w" to write the partition table to the disk. Type "w" and enter.

Command Line Formatting
Use "ext3" if the drive will only be used with Ubuntu. For file-sharing between Ubuntu and Windows, you should use "fat32."
# mkfs -t ext3 /dev/sdb1

Create A Mount Point


















# cd /      ---> go to root path
# mkdir data

OR
# mkdir /data

Mount driver
#nano /etc/fstab

-> add another line with new logical name and directory. 


# mount -a
# df -h 

if duplicate name... you can unmount and mount it back.
# unmount -a 

Monday, February 25, 2013

Installing PHP and Configure with IIS


  1. Download the latest version of PHP from http://windows.php.net/download/
  2. Extract at C:/php
  3. Download php manager to make your life easier http://phpmanager.codeplex.com/releases/view/69115
    note: You can refer how to use the php manager from  http://phpmanager.codeplex.com/wikipage?title=Managing%20PHP%20installations%20with%20PHP%20Manager%20user%20interface
  4. Installing Microsoft Drivers 3.0 for PHP for SQL Server are PHP 5 extensions that allows for the reading and writing of SQL Server data from within PHP scripts.


 

Wednesday, January 30, 2013

Failed to install .NET Framework 3.5 in Windows 8 or in Windows Server 2012

Problem
When you try to install .NET Framework 3.5 on machines with Microsoft Windows Server 2012 or Windows 8 you may receive the following error:



Cause

When you start installing .NET Framework 3.5 from Add features, Windows will tries to connect to Windows Update to download the required information for .NET Framework. And if your machine/server had no internet connection or unable to connect with Windows update service, this issue may occur.

According to Microsoft support, in Windows 8 and Windows Server 2012 .NET Framework is a Feature on Demand, the binaries and other files associated with the feature are not included.
Solution
Steps for Windows 8
Insert the Windows 8 installation media
Open Command Prompt as an administrator, run the following command:

# Dism /online /enable-feature /featurename:NetFx3 /All /Source:D:\sources\sxs /LimitAccess

Where D: is drive letter for the DVD drive or for the Windows 8 installation.





Steps for Windows 2012
Insert the Windows Server 2012 installation media.
Use Windows PowerShell and run the following command:

# Install-WindowsFeature –name NET-Framework-Core –source D:\sources\sxs

Where D: is drive letter for the DVD drive or for the Windows 2012 installation.





Refference :  http://www.ms-csm.com/sccm/?p=496

Thursday, January 17, 2013

How to present/mount New Hard Disk in a FreeBSD Server

The sysinstall utility is used for installing and configuring FreeBSD systems including hard disks. sysinstall offers options to partition and label a new disk using its easy to use menus. Login as root user. Run sysinstall and enter the Configure menu. Within the FreeBSD Configuration Menu, scroll down and select the Fdisk option:

# sysinstall


Select Configure and press [enter]


Select Fdisk and press [enter]


Choose da1 da1 (x)  -> Ok [enter]
ps: da0 -> already use in root at 1st installation. So, use da1 for new disk


Choose A( Use Entire Disk) ->then choose Q(finish)

Choose Label -> Ok

Choose C (Create) -> ps: Make sure the disk at da1 ->
Choose all -> select fs (File System) -> /data

---------------------------------------------------------> OPEN NEW SESSION--->find next step
Choose W (write) -> yes -> Q(finish)

Next step before Write disklabel
Edit /etc/fstab to add an entry for your new disk
#ee /etc/fstab
-> Copy line with FStype (ufs)
-> Change Device same as in Disklabel Editor (Part) and  Mountpoint as in Disklabel Editor (Mount)
Then Back -> to Disklabel Editor in previous windows to write and save


Done.... and may check your disk using #df -h



Tuesday, January 8, 2013

Disconnect Users From a Remote Desktop


qwinsta
qwinsta is the command; server is a sub command calling the server; and serverIP is the IP of the server you are connecting to. An example server IP could be 17.255.10.1.
A list will display the session ID you need to create the disconnect. The ID value will be next to the "STATE" value of Active. For this article we will say that the ID number of the session is 4. This active connection is what needs to be disconnected.

# qwinsta /server serverIP
eg: qwinsta /server 172.255.10.1

rwinsta 

rwinsta command is essentially resetting the session, the server will now see this and disconnect the user. SessionID is the value we found in the previous step. The full command should read as follows:

# rwinsta /server serverIP sessionID
eg: rwinsta /server 172.255.10.1 4