Install PHP under Apache and Vista
I initially tried the msi installer for PHP 5. Unfortunately, it installs only PHP under CGI, which although it has some performance and security issues, might be ok for a quick and dirty development environment.
But the installer is badly broken. You’ll get an error something like
PHP Fatal error: require_once()[function.require]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:php5pear') in sam_factory on line 1
After fighting this for a couple of hours, I ended up installing manually anyway. I used this procedure to get PHP 5 running under Vista:
- Install the Apache webserver.
- Get the current version of PHP 5 from http://www.php.net/downloads.php#v5. (It’s 5.2.3 at this time). Get both the zip file and the PECL zip file (which includes extensions).
- Uninstall any previous installations of PHP 5 (Start > Control Panel > Programs and Features). You may have to reboot your machine.
- Disconnect from the Internet. Turn off your firewall. Turn off your virus checker.
- Turn off User Account Control (UAC).
- Get an administrator prompt by going to All Programs > Accessories. Right-Click “Command Prompt†and choose “Run as Administratorâ€
- Use the command prompt to manually remove directories containing previous PHP installations (like C:\Program Files\PHP…)
- Go to the directory where you’ve downloaded
…
Click to continue reading "Install PHP under Apache and Vista"
Written by senese on June 6th, 2007 with no comments.
Read more articles on php and how to and apache and installation and vista.















