On Win98 pc, I first installed Apache 1.3.14.Win32_r2.exe to the default locations, i.e., Program Files\Apache Group\Apache.

I downloaded the 4.04 installer from phpwin.de, unpacking it into the cgi-bin of the above Apache install (cgi-bin/php).

I placed php4ts.dll and php.ini (renamed from php.ini-dist) into C:\windows

        * * * * * *

Apache is working ok, but I get the Apache info page only, i.e., configuration is imcomplete in some way, denying me navigation to htmldocs to run .php files, etc. I presume this means /php is not being accessed either. I cannot locate the mistake in the configuration. Here are the relevant lines from httpd.conf, and php.ini.

Where is the configuration error? I can't seem to find it. What needs to be modified to get php running, and with GD working with it (yes, I did uncomment GD and zLib extensions).

PHP configuration...
#####################################
include_path=; UNIX: "/path1:/path2" Windows: "\path1;\path2"
doc_root=;
user_dir=;
extension_dir=C:\PROGRA~1\APACHE~1\APACHE\CGI-BIN\PHP\EXTENSIONS

enable_dl=On ;

;...
extension=php_gd.dll
;...
extension=php_zlib.dll
;...

Apache configuration:
This is what I have in httpd.conf:
#######################################

#
#

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
ScriptAlias /php4/ "C:/Program Files/Apache Group/Apache/cgi-bin/php/"
ScriptAlias /php3/ "C:/Program Files/Apache Group/Apache/cgi-bin/php/"

ScriptAlias /php/ "C:/Program Files/Apache Group/Apache/cgi-bin/php/"

#
#

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3

#
#
Action application/x-httpd-php "/php/php.exe"

Action application/x-httpd-php4 "/php4/php.exe"

#
#

ServerRoot "C:/Program Files/Apache Group/Apache"

#
#

DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

#
#

ServerName 127.0.0.1

#
#

<Directory "C:/Program Files/Apache Group/Apache/htdocs">

#
#

    Well, delete Apache and PHP from your machine, and go to http://www.abriasoft.com/ and download Abrial Lite.

    It's a brilliant program - it includes PHP, Apache and MySQL. What's best is that you don't have to do any configurations - all that's needed is double-clicking the exe file - damn good!!

    =]

      i use PHPtriad (instant installation) to install apache, php, and mysql in one step. it's work perfectly free and quick. klik this URL and download it!http://sourceforge.net/projects/phptriad/

      Abria software is nice but PHPtriad is the best!

        Last eve I did indeed download PhpTriad... twice in fact (took 1.5 hours each attempt, btw... sourceforge must be one busy site; i was averaging 2kb/sec, both times).

        In anycase, the new 4.04 PhPTriad bundle generated an install error both times, i.e.,

        "Broken or corrupt data file: Setup failed.
        [CalcCopySize decoder]".

        I have no idea what that means, except that the install failed. Second download attempt I installed the latest Gozilla beforehand as a precaution, given the downloads were that slow. Same install error afterward.

        I am close to dropping $80 bucks for NuSphere bundle. Any suggestions before I go that route? Any errors in the config above?

          Also had a look at Abria last eve. Looks wonderful too. The free version, AbriaLite, however bundles only the 3.0.16 version of php. Other free apache/php/mysql bundles, like PhpTriad, are more up to date, which is why I tried PhpTriad last eve. Unfortunately I haven't been able to get that going yet either (see other reply here).

            After changing Document Root to "C:/" in the apache httpd.conf file, I can at least get a directory listing now upon directing my browser to http://localhost, but still cannot load any files. That is, one of two errors occur, a permission error, or cannot find file error. I checked the error log in apache and it said this (just the latest 2 error msgs):

            Invalid URI in request GET /php/tests/extensions.php HTTP/1.1

            Directory index forbidden by rule: c:/apache/cgi-bin/

            Can anyone suggest to this obvious newbie what bonehead thing(s) I might be doing wrong? If I'm lucky, they may common enough errors that some other beginners might benefit too.

              Hei!

              trying to get the same thing running under W95..

              But perhaps it is not so good idea to install PHP inside a directory, where anybody could go..
              There are some rules in httpd.ini which tell where and who may go.. You might try to change them a bit...

                Hi there!

                I just looked abria´s site and now it also supports php4.
                So i think it might help. I´m just downloading it.

                Ciao
                Zerberus

                  Hey,
                  I went to both phptriad and abria's download area and started recieving the files.
                  Phptriad was very, very slow so I chose to download abria. After this 27MB d/l I tried to run the installation program and after the install wizard had run it said that the file/s were corrupt. Let us know if you have the same problem.

                  I am now d/ling Phptriad from one of there mirrors (phpgeek.com/phptriad.php) and seems to be running ok.

                    I have already installed Phptriad and run succesfully. let me know if you have trouble running on it.

                      Try out BadBlue. It's a free 60K web server that supports PHP, CGI and ISAPI. You can download, install and configure it for PHP in about 60 seconds. Also runs as a Win9X service or WinNT service, has system tray support, etc. Links:

                      <a href="http://badblue.com/down.htm">
                      Download</a>

                      <a href="http://www.phpbuilder.com/news/item.php?id=186">News article from PHPBuilder</a>

                      <a href="http://badblue.com/helpphp.htm">BadBlue PHP Help Page</a>

                        I went back to phpgeek.com tonight and downloaded Triad again, this time from the Debian mirror, (11.8 megs in 19 minutes, on a cable modem). Wonderfully fast.

                        Incidentally, out of newbie paranoia, I scanned my C drive for any errors, defragged it, and rebooted just before the download. Same install error as last evening:

                        "Bad or Corrupt Data File. Setup Failed.
                        [CalcCopySize decoder] "

                        Has anyone managed to download and successfully install the most recent (4.04) PHPTriad bundle? (with GD working fine as well?)

                          Yes,
                          I just downloaded the phptriad and it installed fine, however the apache program has bugs in it for when I type http://localhost/ into the explorer window nothing happens except that the name on the program (apache) changes to PHP.

                          As far as I can tell my puter hates database programs, if it keeps this up I am tempted to through it out the window.

                            if you have already installed phptriad, you must :
                            1. copy my.cnf (at c:\apache\mysql) to root of directory ( c:\ )
                            2. copy *.dll (at c:\apache\php\dlls) to c:\windows\system
                            3. copy system32.bat (at c:\apache\php\dlls)
                            to c:\windows\system
                            4. copy system.bat (at c:\apache\php\dlls)
                            to c:\windows\system32
                            5. Restart you pc.

                            good luck

                              Well, that hurts. Gee, PHPTriad merely doesn't like ME. I'll try a third time to download and install PHPTriad.

                              I grabbed Badblue tonight and will give that a whirl too. [I have no idea what the pluses and minuses of using Badblue instead of Apache are... at least for my noncommercial at-home webdev purposes).

                              Btw, Check out the two Apache conf comments at the PHPTriad forum of Sourceforge. Perhaps they might be useful in your case.

                                Thanks a lot. I will try to figure the apache and php config details from your comments here (and rereading the readmefirst file from the phpwin.de download).

                                My 3rd download and install effort [PHPTriad] failed too. Same install error, occuring at same point during the install (upon clicking the next button on the "Select Program Group" page of setup).

                                Thanks to everyone for your suggestions.

                                  Installed Badblue.

                                  Downloaded and installed php4.04 win32
                                  [the installer exe] as directed at Badblue site. Installed in to: Program Files\php

                                  The php test page that I copied from
                                  Badblue site loads correctly in my browser.

                                  I copied one of my .php files into
                                  the same subdirectory as the hello.php
                                  page that worked in Badblue. The browser
                                  searched and kept searching (hung?).

                                  ...zheesh this getting is frustating...

                                    What was on your page that didn't work in BadBlue? The only thing that doesn't seem to work with BadBlue and the latest PHP is the phpinfo() command. Everything else (mysql access, form gets and puts, ldap and so forth) seems to work well for me.

                                    Email me the page and I'll try it on my machine.

                                      Sent you an email, but I talked to a programmer at BadBlue. Download the new version (1.02.2). Your PHP page was so big that it never completed due to size. He said that is one of the things fixed in the new version (size of pages). Let me know. I tried some huge pages and they worked fine.

                                      Everything else seemed to work great for me, I just never had a page that large so I didn't ever run into it.

                                      http://badblue.com/down.htm

                                        Hi there!

                                        I downloaded abrias SQL Lite Installed it. and that´s it.
                                        It runs perfectly without any problems.
                                        Give it a try maybe it works for you too.

                                        Ciao
                                        rank_zero