Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
January 2, 2007, 3:58 am
rate this thread
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"
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
Re: Another Newbie - Error Installing PHP 5.2 with Apache 1.3
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.
- » I would like to use session_decode while in a loop
- — Previous thread in » PHP Scripting Forum