need help with installing PHP for windows?

Hadie Ian

New member
Im following the instructions from a book (as well as from a website).

I have downloaded two files; php-5.2.6-Win32.zip and pecl-5.2.6-Win32.zip.

As stated in the book, it says that:

begin by unzipping the ZIP file to the directory of your choice. The usual location is c:\php, and we use this location in the following explaination.

You can install the PECL libraries by unziping the PECL file to your extensions directory. Using c:\php as your base directory, this will be c:\php\ext\.

Now follow these steps:

1.In the main directory you will see a file called php.exe and one called php5ts.dll.

2.Set up a php.ini configuration file. PHP comes with two prepared files: php.ini-dist and php.ini-recommended. We suggest you use php.ini-dist while you are learning PHP or on development servers AND use php.ini-recommended on production servers. Make a copy of this file and RENAME it as php.ini.

3. Edit your php.ini file. It contains many settings. The settings you need to change are as follows:

- change the extension_dir directive to point to the directory where your extension DLLs reside. In teh normal install, this is C:\PHP\ext.
Your php.ini will therefore contain

extension_dir = c:/php/ext

- Set the doc_root directive to point at the root directory from which your web server serves. This is likely to be

-doc_root = "c:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
if you are using Apache.

..................................................................................

So my problems are:

1. I dont see the "php.exe" in the main directory as mentioned in the book. I only found the php5ts.dll.

2.How to set up the "php.ini" configration as mentioned in step 2? and how to rename it?? And i cant open the php.ini-dist NOR php.ini-recommended file.

3. How to edit the php.ini file? and change the directory as mentioned in steps 3?

I really need your help asap.

Many thanks.
 
Back
Top