Re: Install Problems with PHP3, Apache, WIN32-NT4.0
| From: | Andy Hoffman | Date: | Wed, 02 Aug 2000 21:08:29 +0000 |
| Subject: | Re: Install Problems with PHP3, Apache, WIN32-NT4.0 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1494@lists.php.net to get a copy of this message | ||
Steve Geosits wrote:
> -------------------------------------------------------------------
> 1) Apache 1.3.12 installed with the following httpd.conf:
>
> per install:
> ServerRoot "c:/apache"
> DocumentRoot "c:/apache/htdocs" (location of my php3 script file)
Fine, fine, no problems there :)
> changes:
> ServerName localhost (no apparent effect)
As it shouldn't.
> ScriptAlias /php3/ "c:/php3/" (php3 directory location)
> AddType application/x-httpd-php3 .php3 .phtml
> AddType application/x-httpd-php3-source .phps
> Action application/x-httpd-php3 "c:/php3/php.exe"
Ok, looks like you've got some line order backwards... try this.
ScriptAlias /php3/ "c:/php3/"
Action application/x-httpd-php3 "/php3/php.exe"
AddType application/x-httpd-php3 .php3
I've always seen the Action item come before the AddType. Also, don't add the
php source stuff for the moment... not necessary to run, so let's take it out of
the equation.
Secondly, put double-quotes around the changes to php.ini:
doc_root = "c:\apache\htdocs"
extension_dir = "c:\php3"
Third, the BEST test to run when installing/testing PHP on ANY platform is simply
to have a php script output phpinfo(). If you get the results, you'll *know*
that php is working properly, with all its fun dlls.
> -----------------------------------------------------------------------
> 8) Lastly, and maybe most importantly is that I have not, nor has the
> installation as far as I can tell made updates to the registry, and I'm
> not sure that it is necessary for the php3 - apache installation.
> -----------------------------------------------------------------------
Most definitely NOT. Apache and PHP don't touch the registry at all (unless you
use some funky extension specifically FOR registry editing.
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com