RE: [PHP-WIN] Installing PHP part 2
| From: | Tim Diggins | Date: | Tue, 15 Aug 2000 15:24:11 +0000 |
| Subject: | RE: [PHP-WIN] Installing PHP part 2 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1817@lists.php.net to get a copy of this message | ||
Matthew -
It might be easier to help you if you post more specific details:
Can you verify:
1) that your php.exe is at c:\php3\php.exe
2) that your php_iis_reg.inf file had refs to this location (including the
double %s in the first three examples, don't know what it does, but I know
you have to have it)
3) then verify within regedit (but don't adjust anything!) that this is the
case - check all the locations suggested... I'm pretty sure the problem will
be in one of your keys.
4) post relevant pieces of your php3.ini file as below:
Although I'm a PHP newbie, given that my PHP3 installation worked fine...
here's some tidbits from my installation
Registry Entries
================
Here's the detail from my php_iis_reg.inf file that I right clicked on and
"install"ed (I presume you did this):
...
HKLM,"System\CurrentControlSet\Services\W3Svc\Parameters\Script
Map",".php3",0,"c:\php3\php.exe %s %s"
HKLM,"System\CurrentControlSet\Services\W3Svc\Parameters\Script
Map",".phtm3",0,"c:\php3\php.exe %s %s"
HKLM,"System\CurrentControlSet\Services\W3Svc\Parameters\Script
Map",".php",0,"c:\php3\php.exe %s %s"
...
HKCR,"phpfile\Shell\open\command","",0,"c:\php3\php.exe %1"
...
With my php3 files all within c:\php3 this hasn't caused a problem.
PHP3.ini file
==============
I notice that I put my php3.ini* file in my windows directory (only), and
that I adjusted the areas in the " Paths and Directories " to point to real
world locations (yours will definitely vary) as follows:
....................
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path =
; UNIX: "/path1:/path2" Windows: "\path1;\path2"
doc_root = "C:\PERSONAL\TheLaboratory\wwwroot"
; the root of the php pages, used only if nonempty
user_dir =
; the directory under which php opens the script using /~username, used
only if nonempty
;upload_tmp_dir = "C:\PERSONAL\TheLaboratory\wwwphp3\uploaded"
; temporary directory for HTTP uploaded files (will use system default if
not specified)
upload_max_filesize = 2097152
; 2 Meg default limit on file uploads
extension_dir = "C:\PHP3"
; directory in which the loadable extensions (modules) reside
....................
* copied from the php3.ini-dist file from the distribution.
Best
Tim
> -----Original Message-----
> From: info@zenton.co.uk [mailto:info@zenton.co.uk]
> Sent: 15 August 2000 10:42
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] Installing PHP part 2
>
>
> I have the same problem using Win98, PWS.
>
> I have the root as read, execute, scripts all checked still I get
> 500 server
> error.
>
> I did get it to work by creating the extension .phtml in
> HKEY_CLASSES_ROOT.
> This then points to the 'phpfile' key that you have previously
> set up for the
> .php extension? in HKCR.
>
> phpfile - shell - open -command - c:\path\to\php.exe %1
>
> Also in HKLM the registry setting for .php and .phtml should point to
> "c:\path\to\php.exe" %s"" %s""
>
> Rename anything with a .php extension to .phtml and off you go.
> Not exactly sure what is going on myself.
>
> You may want to also check your php.ini file to make sure that
> the paths and
> directories are all pointing to the right place.
>
> Regards,
>
> Karl
>
>
> matthew.riches@astondane.plc.uk wrote:
>
> > Hi Thanks to those who have tried to help me so far, but it has been to
> > little success.
> >
> > I am using PHP3 (I am unsure as to the minor version codes), and PWS on
> > windows 98
> > I have followed all of the on site, and off site installation
> instructions
> > for PHP3, down to moving all the PHP files to default folders.
> >
> > When I point to a .php, or a .php3 file, all I get is a HTTP
> 500 error. But
> > when I look at a HTML file, I can see it ok. What is not
> working, and how
> > can I fix it ?
> >
> > I am rapidly running out of time to evaluate PHP, then I will
> have to switch
> > to a more 'commercial' source for my development as my
> customers won't wait
> > much longer, so please help if you can, I would rather push PHP
> than an even
> > more microsoft biased solution
> >
> > TIA
> > Matt.
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net