FW: [PHP-WIN] Installing PHP part 2
| From: | matthew dot riches at astondane dot plc dot uk | Date: | Thu, 17 Aug 2000 08:30:38 +0000 |
| Subject: | FW: [PHP-WIN] Installing PHP part 2 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1888@lists.php.net to get a copy of this message | ||
> Thanks to all of you that offered solutions / advice on my choice of
> platform, and also what may / may not be wrong with my install.
>
> I stripped PWS out, Re-Installed it, and Hey Presto, it works (apart from
> PWS transaction server, but thats another problem...
>
> So, if anyone has install problems using PWS, a re-install may solve them,
> and thats not one thats documented anywhere :)
>
> Matt.
>
>
> Another interesting thing i have noticed in the past is if you have some
> thing like Notepad or Ultraedit setup to edit .php this tends to screw up
> the parsing of PHP by PWS.
>
> I got sick of changing reg entries on my Windows box's and PWS lack of
> virtual hosts i changed to using Apache, ive used this for development for
> some time and it works a treat. I havent used apache in any sort of
> Windows
> production environment but for that id change to NT and IIS.
>
> mn
>
>
> -----Original Message-----
> From: Tim Diggins [mailto:subscribed@red56.co.uk]
> Sent: Tuesday, August 15, 2000 11:24 PM
> To: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Installing PHP part 2
>
>
> 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
>