php-windows Digest 21 Jun 2002 04:07:23 -0000 Issue 1203
Topics (messages 14317 through 14323):
Re: Eh?? RE: [PHP-WIN] Guidelines for installing PHP on Apache Win32 - comments
please
14317 by: Ross Fleming
14318 by: Ross Fleming
crypt() on windows
14319 by: Christian Leberfinger
14320 by: Christian Leberfinger
14321 by: Dash McElroy
14322 by: Ben Davis
How to Show my Own Error Message Instead of Mysql Error?
14323 by: Jack
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I did state that this was for the ISAPI version. There is no reason to use
CGI. And win2k may well be easier, I wouldn't know. I installed it on
Win98. I did NOTHING more than the 7 steps that I suggested and it works.
And I ain't exaggerating when I said that I actually removed apache and php
before starting (as in I was doing a reinstall of windows anyway so know
mysterious "registry entries" that I may have done before could remain, or
any other steps), I installed from scratch. It still works.
Ross
> -----Original Message-----
> From: Jacques Steyn [mailto:[EMAIL PROTECTED]]
> Sent: 20 June 2002 15:34
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Eh?? RE: [PHP-WIN] Guidelines for installing PHP
> on Apache Win32 - comments please
>
>
> Hi Ross
> It depends on whether you do ISAPI or CGI.
>
> You need to muck with registery if it is CGI, and then you have to
> restart.
> And WIN2000 etc is much easier than Win98.
>
> Then again, the referenced page is not an installation summary, but a
> summary of
> all the suggestions as the standard steps (in your case 7) do not seem
> to work
> on the specific configuration. Once a set of steps have been identified
> that
> works on this configuration, it will be posted as the final version.
>
> Ciau
> Jacques
>
> Ross Fleming wrote:
>
> > Have I just been working with computers for too long? To test I wasn't
> > missing something, I've just installed Apache/PHP from scratch,
> and it is by
> > no means as involved as that page makes out. There are only
> SEVEN steps I
> > had to do...
> >
> > 1. Installed apache to c:\program files\apache group\apache
> (used the .msi
> > file and just hit next a lot)
> > 2. Extracted the PHP zip file to c:\php
> > 3. renamed php.ini-dist and moved it to c:\windows (actually MOVE it to
> > ensure you've only got one copy)
> > 4. opened the newly created php.ini (in the c:\windows folder)
> and entered
> > the details for doc_root and extension_dir.. change NOTHING else, you're
> > only trying to get it working:
> > doc_root = "C:\progra~1\apache~1\apache\htdocs"
> > extension_dir = "c:\php\extensions"
> > 5. Opened the httpd.conf file in the apache/conf folder and added the
> > following lines to the bottom of the file:
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> > AddType application/x-httpd-php .php
> > 6. Placed a copy of php4ts.dll in the windows/system directory.
> > 7. Started Apache and et voila, pointing to http://localhost/test.php
> > test.php was located in apache/htdocs and contained only the following:
> > <?PHP
> > phpinfo();
> > ?>
> >
> > There are NO restarts involved and no mucking about with the system
> > registry. And if anyone here is feeling a sense of deja-vu, then it's
> > probably because the 7 steps (which took all of five minutes)
> all feature in
> > the install.txt file that comes with the PHP distro. I
> struggled to find
> > how the
> >
> > Feel free to replace the webpage with that. This also assumes
> that you want
> > the apache module, the CGI version is horrible and less
> functional anyway
> >
> > Ross
> >
> > > -----Original Message-----
> > > From: Jacques Steyn [mailto:[EMAIL PROTECTED]]
> > > Sent: 17 June 2002 22:26
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Guidelines for installing PHP on Apache Win32 -
> > > comments please
> > >
> > >
> > > Quite a few notes have been posted here on guys battling to get this
> > > kind of environment going.
> > > If you have tips on installing PHP for Apache on Win 98, could you
> > > please read
> > > http://www.knowsystems.com/notes/phpinstallnotes.html
> > > and comment. The notes in the PHP Manual are ancient and need
> an update.
> > >
> > > I've had some good feedback from the friendly guys on this list, but
> > > have not been able to get the system going yet.
> > >
> > > So I put together all the suggestions for all to see - and
> hopefully get
> > > a fix so that others do not battle as I have done.
> > >
> > > Please note that somewhere there is something missing in these
> > > guidelines - which is where I desparately need your help. So don't
> > > follow them yet...
> > >
> > > Thanks
> > > Jacques
> > > --
> > > ___________________
> > > Jacques Steyn
> > >
> > > +27 (0)11 478-1259
> > > http://www.knowsystems.com
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> ___________________
> Jacques Steyn
>
> +27 (0)11 478-1259
> http://www.knowsystems.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
In fact, I'll update my installation instructions for the latest (not
including apache2) releases for win32. Previously I was installing with
win98(SE)/apache 1.3.20/php 4.0.6 so I guessed "maybe it's changed and is
now more difficult?". So I downloaded the latest releases and I'm now using
win98(SE)/apache 1.3.26/php 4.2.1 and used almost the same instructions. In
Step 5 I entered the lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
instead, to which apache gave me the warning "module mod_php4.c is already
added, skipping" implying that it will run fine without that line.
Again, SAPI is better than CGI (don't take it from me, take it from the
horses mouth at php.net) and I wouldn't even consider installing it as a CGI
script. WinXP arrives on Friday or Saturday, and once I've installed it on
that, I'll let you know if there are any changes to the install method,
though I doubt it.
I stand by my claims that installing it is not that difficult.
Ross
> -----Original Message-----
> From: Ross Fleming [mailto:[EMAIL PROTECTED]]
> Sent: 20 June 2002 16:09
> To: Jacques Steyn
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Eh?? RE: [PHP-WIN] Guidelines for installing PHP
> on Apache Win32 - comments please
>
>
> I did state that this was for the ISAPI version. There is no
> reason to use
> CGI. And win2k may well be easier, I wouldn't know. I installed it on
> Win98. I did NOTHING more than the 7 steps that I suggested and it works.
> And I ain't exaggerating when I said that I actually removed
> apache and php
> before starting (as in I was doing a reinstall of windows anyway so know
> mysterious "registry entries" that I may have done before could remain, or
> any other steps), I installed from scratch. It still works.
>
> Ross
>
> > -----Original Message-----
> > From: Jacques Steyn [mailto:[EMAIL PROTECTED]]
> > Sent: 20 June 2002 15:34
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Eh?? RE: [PHP-WIN] Guidelines for installing PHP
> > on Apache Win32 - comments please
> >
> >
> > Hi Ross
> > It depends on whether you do ISAPI or CGI.
> >
> > You need to muck with registery if it is CGI, and then you have to
> > restart.
> > And WIN2000 etc is much easier than Win98.
> >
> > Then again, the referenced page is not an installation summary, but a
> > summary of
> > all the suggestions as the standard steps (in your case 7) do not seem
> > to work
> > on the specific configuration. Once a set of steps have been identified
> > that
> > works on this configuration, it will be posted as the final version.
> >
> > Ciau
> > Jacques
> >
> > Ross Fleming wrote:
> >
> > > Have I just been working with computers for too long? To
> test I wasn't
> > > missing something, I've just installed Apache/PHP from scratch,
> > and it is by
> > > no means as involved as that page makes out. There are only
> > SEVEN steps I
> > > had to do...
> > >
> > > 1. Installed apache to c:\program files\apache group\apache
> > (used the .msi
> > > file and just hit next a lot)
> > > 2. Extracted the PHP zip file to c:\php
> > > 3. renamed php.ini-dist and moved it to c:\windows (actually
> MOVE it to
> > > ensure you've only got one copy)
> > > 4. opened the newly created php.ini (in the c:\windows folder)
> > and entered
> > > the details for doc_root and extension_dir.. change NOTHING
> else, you're
> > > only trying to get it working:
> > > doc_root = "C:\progra~1\apache~1\apache\htdocs"
> > > extension_dir = "c:\php\extensions"
> > > 5. Opened the httpd.conf file in the apache/conf folder and added the
> > > following lines to the bottom of the file:
> > > LoadModule php4_module c:/php/sapi/php4apache.dll
> > > AddType application/x-httpd-php .php
> > > 6. Placed a copy of php4ts.dll in the windows/system directory.
> > > 7. Started Apache and et voila, pointing to http://localhost/test.php
> > > test.php was located in apache/htdocs and contained only the
> following:
> > > <?PHP
> > > phpinfo();
> > > ?>
> > >
> > > There are NO restarts involved and no mucking about with the system
> > > registry. And if anyone here is feeling a sense of deja-vu, then it's
> > > probably because the 7 steps (which took all of five minutes)
> > all feature in
> > > the install.txt file that comes with the PHP distro. I
> > struggled to find
> > > how the
> > >
> > > Feel free to replace the webpage with that. This also assumes
> > that you want
> > > the apache module, the CGI version is horrible and less
> > functional anyway
> > >
> > > Ross
> > >
> > > > -----Original Message-----
> > > > From: Jacques Steyn [mailto:[EMAIL PROTECTED]]
> > > > Sent: 17 June 2002 22:26
> > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > Subject: [PHP-WIN] Guidelines for installing PHP on Apache Win32 -
> > > > comments please
> > > >
> > > >
> > > > Quite a few notes have been posted here on guys battling to get this
> > > > kind of environment going.
> > > > If you have tips on installing PHP for Apache on Win 98, could you
> > > > please read
> > > > http://www.knowsystems.com/notes/phpinstallnotes.html
> > > > and comment. The notes in the PHP Manual are ancient and need
> > an update.
> > > >
> > > > I've had some good feedback from the friendly guys on this list, but
> > > > have not been able to get the system going yet.
> > > >
> > > > So I put together all the suggestions for all to see - and
> > hopefully get
> > > > a fix so that others do not battle as I have done.
> > > >
> > > > Please note that somewhere there is something missing in these
> > > > guidelines - which is where I desparately need your help. So don't
> > > > follow them yet...
> > > >
> > > > Thanks
> > > > Jacques
> > > > --
> > > > ___________________
> > > > Jacques Steyn
> > > >
> > > > +27 (0)11 478-1259
> > > > http://www.knowsystems.com
> > > >
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > ___________________
> > Jacques Steyn
> >
> > +27 (0)11 478-1259
> > http://www.knowsystems.com
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Does anyone have a solution for crypt()-support on
windows-based webserver-systems?
I'm the developer of PHPAccess - the admin tool for
htaccess-security on Apache-servers and I don't get
it to create a crypted password that is recognized
by Apache's htaccess.
Help!
Christian Leberfinger
[http://krizleebear.de/phpaccess/]
--- End Message ---
--- Begin Message ---
Crypt() is supported by windows systems, but it
uses other encryption mechanisms than crypt()
on unix-systems...that means it returns other
encrypted strings.
So when Apache compares the crypt()ed string with
the one stored in the .htpasswd, it fails and you
can't gain access...
Is there no way to get round this problem???
Still: HELP!
Regards,
Christian
--- End Message ---
--- Begin Message ---
Doesn't Apache come with a version of htpasswd.exe that might be possible
for you to exec() (or other applicable function)?
I haven't tried this at all, so I may be speaking out of <insert favorite
word here>.
-Dash
-----Original Message-----
From: Christian Leberfinger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 1:17 PM
To: PHP-List
Subject: RE: [PHP-WIN] crypt() on windows
Crypt() is supported by windows systems, but it
uses other encryption mechanisms than crypt()
on unix-systems...that means it returns other
encrypted strings.
So when Apache compares the crypt()ed string with
the one stored in the .htpasswd, it fails and you
can't gain access...
Is there no way to get round this problem???
Still: HELP!
Regards,
Christian
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I actually remember reading a tutorial on using the htpasswd.exe that comes
with apache to emulate its *nix twin. It is supposed to let you create
htpasswd files on Windows and it works well. I got it to work and encrypt
strings, but for some reason, I could never get Apache to recognize the
.htaccess file. But thats another story.
Ben Davis
Nashville, TN
[EMAIL PROTECTED]
www.davisben.com
----- Original Message -----
From: "Christian Leberfinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 12:25 PM
Subject: [PHP-WIN] crypt() on windows
> Does anyone have a solution for crypt()-support on
> windows-based webserver-systems?
>
> I'm the developer of PHPAccess - the admin tool for
> htaccess-security on Apache-servers and I don't get
> it to create a crypted password that is recognized
> by Apache's htaccess.
>
> Help!
>
>
> Christian Leberfinger
> [http://krizleebear.de/phpaccess/]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Dear all
i made a Registration Form for user to input their Data, but i also had some
Field Check before the data can be insert to the Mysql_Database!
I had a question here, sometime the mysql shows the error :
"Duplicate Key for xxx"
I know what is this about, reguarding to my Registration Form, it mean the
Login Name is Duplicated! But i want to show my own message to the user for
this error instead the Mysql Error! It is meanness to show User the Mysql
Error, cause they won't understand it!!!
Could Someone pls tell me how i can do this?
--
Thx a lot!
Jack
[EMAIL PROTECTED]
--- End Message ---