|
Posted by Curtis on 01/02/07 23:32
Unless you have a good reason, there's no need to specify doc_root. On
Windows, for the ext directory, you'll want to use backslashes (doesn't
work with forward for me), and leave a trailing backslash as well. Like
Hendri Kurniawan suggested, restart apache so that the php module will
be loaded into apache.
On Jan 1, 7:58 pm, "attraxion" <attrax...@gmail.com> wrote:
> Hi All,
>
> I'm a big newbie with all this, and I'm trying to install PHP 5.2 under
> Apache 1.3, my OS is Win XP. I first installed Apache and it is working
> fine. Please go through the following steps / file fragments and tell
> me where I'm going wrong in installing PHP.
>
> 1- I unzipped the PHP files to C:/Programming/PHP, and also copied the
> dll's to the system32 directory.
>
> 2- I copied the php.ini-dist file to the windows directory (renamed as
> php.ini) and added the following to it -
> doc_root = "C:/Programming/Apache Group/Apache/htdocs"
> extension_dir = "C:/Programming/PHP/ext"
>
> Also I turned on extensions for various things.
>
> 3- Then I added the following lines to the httpd.conf file -
> LoadModule php5_module "C:/Programming/PHP/php5apache.dll"
> Addmodule mod_php5.c
> AddType application/x-httpd-php .php
>
> Then when I made a test.php in the Apache htdocs directory, it gives me
> the option of downloading the file (that means it is finding the file,
> I guess. It doesn't know what to do with it.)
>
> Can anyone please give me some pointers on where I might be going
> wrong, I'm quite frustrated by now. I have read the manual at php.net
> but it also mentions only the same things I did. Thanks a lot in
> advance.
>
> Best,
> Attraxion.
Navigation:
[Reply to this message]
|