Disabling vista user account control (UAC) and its warnings

October 13th, 2008

To disable UAC in Windows Vista:

  1. Go to Start > Control Panel > User Accounts, and click Turn User Account Control on or off.
  2. Search “regedit” in Vista Start Menu. Execute regedit.exe.
  3. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
  4. Right click on the right column, and New > DWORD (32-bit) VALUE.
  5. Enter Value name: UACDisableNotify, and Value data: 1.
  6. Save and reboot your computer.

Installing php on vista (And configure APACHE)

October 10th, 2008

Apache installation on Vista is a breeze. Just use the installer downloaded from http://httpd.apache.org/download.cgi.

If you are looking steps to install PHP using MSI Installer, this isn’t for you. I have tried installing PHP using MSI installer on Vista, and it was a pain. So I decided to manually install and setup the PHP environments.

Below are the steps:

  1. Download PHP Windows Binaries from http://www.php.net/downloads.php#v5 (zip package).
  2. Unzip them to your desired location. I recommend not to install PHP on the partition where your Vista resides (e.g. D:\PHP) to avoid UAC annoyance.
  3. Click on “Vista” icon (or “Start” button) on your desktop, right click on Computer and select Properties. Click on Advanced system settings.
  4. A dialog box pops up. Click on Environment Variables.
  5. Under System Variables scroll to find Path variable. Select and click Edit…
  6. Append your PHP path (e.g. D:\PHP) to the beginning of Variable value. Don’t forget to insert ; after it. And save it.
  7. Under System Variables click New…
  8. Variable name: PHPRC, Variable Value: D:\PHP. And save it.
  9. And just click OK buttons all the way to close all the dialog boxes.
  10. Open a Command Prompt and execute “php -v” to see if PHP is correctly installed.
  11. Edit php.ini file (under D:\PHP) and set your extension_dir to “./ext”.
  12. Edit httpd.conf (Apache’s) and add
    LoadModule php5_module “D:/PHP/php5apache2_2.dll”
    AddType application/x-httpd-php .php

    line to the bottom of the file.