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

Wednesday, November 7, 2012

Wordpress - Permalink Problem


Copy from sis Salina Blog... :) having same problem and this help me to solve the same problem.
_________________________________________________
Salam,

I've just set up WordPress on my personal FreeBSD server, and now I'm trying to configure permalinks to this format:
/%category%/%postname%

This is not working. I've followed those instructions as well as I can, but it's still not working.

In httpd.conf:


Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all


Then,I chmod'ed the .htaccess-file so WordPress could edit the file. The file is now containing this:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress

After some reading and checking, I found out that my .htaccess-file is not being read! How to solve this?

From forum I read, he says that "You see AllowOverride None anywhere in your config files?"

So in my httpd.conf, I found it here:

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
# AllowOverride None
AllowOverride All

I comment the original setting, and set to AllowOverride All.
After restart apache, the permalinks now working like a charm.
Alhamdulillah..

-----------------------------------------------------------------
For Ubuntu - you can do like this..


1. Manually create a ".htaccess" file and save it in your main WordPress directory. (This is the one with the wp-admin, wp-includes, and wp-content folders.)

2. Go to the Ubuntu terminal and type:
sudo chown -v :www-data "/enterYourFilePathHere/.htaccess"
You should see a line printed saying that the (group) file ownership has been changed to www-data (Apache2).

3. Give Apache2 write access to the file:
sudo chmod -v 664 "/enterYourFilePathHere/.htaccess"
You should see a line printed saying that the mode of the file has been retained.

4. Next, we have to allow WordPress to write to the .htaccess file by enabling mod_write in the Apache2 server. Type the following in the terminal:
sudo a2enmod rewrite
You should see a line printed saying that it is enabling mod rewrite and reminding you to restart the web server

5. So let's do that. Restart the web server, Apache2, for the changes to take effect by typing:
sudo /etc/init.d/apache2 restart
We are all done with the command line prompt; you can close the command line window now.

5. Go into your WordPress admin panel (i.e. http://yourDomain/wp-admin). Go to the Settings --> Permalinks and select the permalink format of your choice. Hit the "Save Changes" button.

6. DONE! Go to your site and check any page (other than your homepage) to ascertain that everything is working as expected.

Tuesday, September 25, 2012

Configuring Hybrid Exchange 2010

First of all we can find Exchange Deployment Assistant
http://technet.microsoft.com/exdeploy2010
There is guideline that you can follow base on your architecture. 

ADFS and ADFSP (for single sign on)
Refer to this step : http://onlinehelp.microsoft.com/en-us/office365-enterprises/ff652540.aspx


This is the referrence for cmdlet for office 365: 

Then you can test the SSO authentication at O365 using your AD authentication.

After SSO works, then you can start plan for hybrid exchange 2010.

Here is some image step that give some guidance instead of reading the "Exchange Deployment Assistant".
Ref:
1. http://www.howexchangeworks.com/2012/01/office-365-hybrid-deployment-with-exchange-2010-sp2-part-1.html
2.http://www.howexchangeworks.com/2012/01/office-365-hybrid-deployment-with-exchange-2010-sp2.html
3.http://www.howexchangeworks.com/2012/01/office-365-hybrid-deployment-with-exchange-2010-sp2-part-3.html
4. http://www.howexchangeworks.com/2012/02/office-365-hybrid-deployment-with-exchange-2010-sp2-part-4.html
5. http://www.howexchangeworks.com/2012/02/office-365-hybrid-deployment-with-exchange-2010-sp2-part-5.html
OR 
http://www.msexchange.org/articles_tutorials/office-365/exchange-online/using-hybrid-configuration-wizard-exchange-2010-service-pack-2-part1.html

Here is the good reference that you can use for handling this Hybrid Exchange 2010 Migration;
1. http://technet.microsoft.com/en-us/library/hh563847.aspx (hybrid deployment)
2. http://technet.microsoft.com/en-us/library/gg430167 (FOPE connector & Hybrid scenario)

If you have problem during migration, you can get support from the FOPE and O365 engineer by sending Service Request.
1. For O365 Service Request, you can submit at portal o365 admin cpanel, there are button for Service Request.
2. For FOPE Service Request, you can submit at https://support.live.com/default.aspx?productkey=mocpexhome&brand=mocp&&mkt=en-us

Hope all the link could help other user to migrate their mailbox to Office 365. :)

Finally my team successfully go for hybrid exchange o365 :) Thanks to all blogger and technical person who already assist the deployment..