php-windows Digest 22 Nov 2001 09:38:02 -0000 Issue 867
Topics (messages 10571 through 10584):
Re: iis apache together?
10571 by: Asendorf, John
10572 by: Asendorf, John
10573 by: Tim Foster
10577 by: Mentor Mala
10581 by: Mike Webby
exec, system on win2k
10574 by: Doug Brewer
File upload timeout.
10575 by: Brian J. Hoffman
10576 by: Ryan Marrs
Problems with $PHP_AUTH_USER and $PHP_AUTH_PW
10578 by: Raoul Snyman
Re: PHP as ISAPI on IIS 5.0/win2k server
10579 by: Laurent Protti
PHP & personal web server
10580 by: Rob Bennion
10583 by: Mentor Mala
Re: Win 2k, IIS 5 and PHP
10582 by: Laurent Protti
File Upload does not work when Module GZIP is turned on
10584 by: Gary Davidson
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'm doing it.
I had to do it because I couldn't keep Oracle stable while using IIS with
PHP.
I've put Apache on a separate port. I'm running NT4 and IIS4 and Apache...
it has wroked very nicely. I should say that I'm running Apache from the
console. I haven't attempted to run Apache as a service alongside IIS.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Mike Webby [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 21, 2001 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] iis apache together?
>
>
> Hope your all well
> is it possible to run apache on our windows advanced server
> alongside iis as
> we have 50 some sites on iis already and do not want to have
> to move them
> all to apache just one or two php sites?
> maybe on another port or something as shtml files fail to
> execute and the
> crypt in php acts oddly on iis too.
>
> Mike
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Actually, I couldn't keep IIS stable while running PHP with Oracle is what I
meant.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Asendorf, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 21, 2001 2:27 PM
> To: Mike Webby; Php-Windows (E-mail)
> Subject: RE: [PHP-WIN] iis apache together?
>
>
> I'm doing it.
>
> I had to do it because I couldn't keep Oracle stable while
> using IIS with
> PHP.
>
> I've put Apache on a separate port. I'm running NT4 and IIS4
> and Apache...
> it has wroked very nicely. I should say that I'm running
> Apache from the
> console. I haven't attempted to run Apache as a service
> alongside IIS.
>
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Nullum magnum ingenium sine mixtura dementiae fuit
>
>
> > -----Original Message-----
> > From: Mike Webby [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 21, 2001 2:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] iis apache together?
> >
> >
> > Hope your all well
> > is it possible to run apache on our windows advanced server
> > alongside iis as
> > we have 50 some sites on iis already and do not want to have
> > to move them
> > all to apache just one or two php sites?
> > maybe on another port or something as shtml files fail to
> > execute and the
> > crypt in php acts oddly on iis too.
> >
> > Mike
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Shouldn't be a problem.
I'm running PHP with PWS on a WinNTWorkstation box. I set aside a special directory
(not
in /wwwroot/inetpub, but you should still be able to do it), created a virtual
directory
and pointed it to the PHP directory, set the appropriate file extentions and script
processors and voila! Both .asp and .php on the same box.
TIM
-I believe no problem is so large or so difficult that it can't be blamed on somebody
else.
> -----Original Message-----
> From: Mike Webby [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 21, 2001 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: iis apache together?
>
>
> Hope your all well
> is it possible to run apache on our windows advanced server alongside iis as
> we have 50 some sites on iis already and do not want to have to move them
> all to apache just one or two php sites?
> maybe on another port or something as shtml files fail to execute and the
> crypt in php acts oddly on iis too.
>
> Mike
>
>
>
--- End Message ---
--- Begin Message ---
The only way I can think of that you can actually do that would be to run
either one of the webservers on a different port as it will give you port
conflicts.
----- Original Message -----
From: "Mike Webby" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 2:25 PM
Subject: [PHP-WIN] iis apache together?
> Hope your all well
> is it possible to run apache on our windows advanced server alongside iis
as
> we have 50 some sites on iis already and do not want to have to move them
> all to apache just one or two php sites?
> maybe on another port or something as shtml files fail to execute and the
> crypt in php acts oddly on iis too.
>
> Mike
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
We installed apache and it runs we used bindaddress to just one of our IP's
and it has not interfered with the iis so far so good.
We cannot get .shtml files <!--#exec cgi="../cgi-bin/ads.cgi"--> inside one
of our shtml files just does not work ? any ideas as it used to work on the
unix host we used to have
Thank you for your replies
Mike
"Mike Webby" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hope your all well
> is it possible to run apache on our windows advanced server alongside iis
as
> we have 50 some sites on iis already and do not want to have to move them
> all to apache just one or two php sites?
> maybe on another port or something as shtml files fail to execute and the
> crypt in php acts oddly on iis too.
>
> Mike
>
>
--- End Message ---
--- Begin Message ---
I know this topic probably comes up from time to time, but I wanted to get
up to date feedback.
on php 4.06/win2k, exec(), system(), and passthru() work only sporadically,
in spite of the change notes for 4.06 that state the "exec family" problem
was fixed.
For instance, try some simple shell commands
from the shell:
when entering "date" from the command line:
>The current date is: Wed 11/21/2001
>Enter the new date: (mm-dd-yy)
when using the same command via exec and php:
exec("date")
>Wed Nov 21 14:05:10 2001
It works, but returns a different format.
Now entering "ver" on the command line (supposed to show windows version):
>Microsoft Windows 2000 [Version 5.00.2195]
when using the same command via exec and php:
exec("ver")
>Warning: Unable to fork [ver]...
Most of the shell commands return this last, the typical "unable to fork"
error.
I was unable to find this as a current bug report. Does anyone else have any
experience with this?
Doug Brewer
--- End Message ---
--- Begin Message ---
I'm trying to do a simple file upload using the sample code from php.net,
but after trying everything under the sun, it still doesn't work. I've tried
most of the suggestions on php.net and have searched the archives of this
mailing list, still to no avail. When I click on "Send File", it appears to
be attempting to process the request, but the CGI eventually times out. I'm
using very small files for my test files, so file size shouldn't be a
problem. I've tried changing several things in the php.ini file also. Does
anyone have any suggestions? I've included the code I'm using below. I'm
running PHP 3.0.17 under Windows 2000 Professional and IIS 5.0.
Thanks in advance,
Brian
UploadTest.php3:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form enctype="multipart/form-data" action="UploadTestAction.php3"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2097150">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
</body>
</html>
UploadTestAction.php3:
<?php
if (is_uploaded_file($userfile)) {
copy($userfile, "Images/".$userfile);
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
?>
--- End Message ---
--- Begin Message ---
And you've checked to make sure that the user the web server is running as
has access to write to the temp directory, and the directory you're
attempting to upload to correct?
Ryan
-----Original Message-----
From: Brian J. Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 3:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] File upload timeout.
I'm trying to do a simple file upload using the sample code from php.net,
but after trying everything under the sun, it still doesn't work. I've tried
most of the suggestions on php.net and have searched the archives of this
mailing list, still to no avail. When I click on "Send File", it appears to
be attempting to process the request, but the CGI eventually times out. I'm
using very small files for my test files, so file size shouldn't be a
problem. I've tried changing several things in the php.ini file also. Does
anyone have any suggestions? I've included the code I'm using below. I'm
running PHP 3.0.17 under Windows 2000 Professional and IIS 5.0.
Thanks in advance,
Brian
UploadTest.php3:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form enctype="multipart/form-data" action="UploadTestAction.php3"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2097150">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
</body>
</html>
UploadTestAction.php3:
<?php
if (is_uploaded_file($userfile)) {
copy($userfile, "Images/".$userfile);
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
?>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi,
I'm having a couple of problems with $PHP_AUTH_USER and $PHP_AUTH_PW and my
log out page.
When I log out, I unset $PHP_AUTH_USER and $PHP_AUTH_PW, except that when I
log in again, it logs straight back into the system, without asking for the
user name and password.
Is there any way to fix this?
Thanks,
Raoul Snyman
--- End Message ---
--- Begin Message ---
Thank you, it worked this way, I just copied both DLLs in the system32
directory and the ISAPI filter loaded right away !
Many thanks again
"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tuesday 20 November 2001 6:16 pm, Laurent Protti wrote:
> > i've got a little problem, I try installing PHP 4.06 on my web server as
an
> > ISAPI filter. I've modified the webserver configuration to add the
filter
> > (php4isapi.dll which I copied in \winnt\system), modified the home
> > directory configuration so that .php files are interpreted by
> > php4isapi.dll, and when I restart the web server by net stop IISAdmin,
net
> > start w3svc, the ISAPI filter appears as not loaded and I get the
following
> > message in the event viewer :
> >
> > The HTTP Filter DLL D:\winnt\system\php4isapi.dll failed to load. The
data
> > is the error.
> >
> > The data contains 7e 00 00 00.
> >
> > Has anyone encountered the same problem and know how to resolve it ?
>
> First let me qualify this reply by restating the information in
install.txt -
> the ISAPI version of php is not of production quality, so even if you do
get
> it going, you will probably be disappointed by its reliabilty, whereas php
in
> cgi mode on IIS is rock solid. Secondly, I have never used W2K/XP or IIS5
so
> my comments really apply to my experience on NT4/IIS4.
>
> When the php4isapi module fails to load, it is usually because something
it
> depends on cannot be loaded. In your case (at least on NT4) php4isapi.dll
and
> php4ts.dll should both be in /winnt/system32, and php.ini should be in
/winnt.
> Your php.ini should (at least until you get it working) not have any
> extension modules enabled.
>
> If doing the above fails, try running php.exe -i from the command line to
see
> if you get sensible output, or a helpful error message.
>
> Cheers
> --
> Phil Driscoll
--- End Message ---
--- Begin Message ---
Hi,
I am totally new to PHP but can someone tell me if it is possible to
install php on a machine and run it with microsoft personal web server
(like I currently do with my asp pages)
Any help in assisting me move from ASP to PHP would be gratefully
appreciated.
Thanks in advance
Rob
--- End Message ---
--- Begin Message ---
I believe you should be able to.. PWS should work just like IIS 4.0 or
higher. I mean I never tried it myself.. I run all of my PHP, PERL from
either apache or IIS 5.0.. My suggestion would be to use APACHE for
windows. It is free, and it works pretty good....
A few links below should help you get started...
http://www.php.net/manual/en/install.windows.php
http://www.php.net/manual/en/install.iis.php
http://www.php.net/manual/en/intro-whatcando.php
Hope this helps out a little bit..
Mentor Mala
[EMAIL PROTECTED]
http://www.virtual-library.com/
"Experience the power of e-Learning"
--- End Message ---
--- Begin Message ---
Another person reading this forum told me the solution, I had to copy both
php4isapi.dll and php4ts.dll in the winnt\system32 directory, the php.ini
properly configured in the \winnt directory, add the ISAPI filter and it
worked fine...
Laurent
"Martin Steel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've still got no idea how to get php working on IIS as an isapi filter,
it
> still only interprets some of the functions. I've tried the internet and
> can't find anything I haven't already done.
>
> Can anyone please help?
>
> Martin.
>
> -----Original Message-----
> From: Mike Webby [mailto:[EMAIL PROTECTED]]
> Sent: 20 November 2001 22:30
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Win 2k, IIS 5 and PHP
>
>
> Did you get any answers Martin?
>
> If not does the group have a guide for us as many functions just don't
work
> using iis and php.exe
>
> "Martin Steel" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > I installed php on my win2k machine running IIS 5, i've set it up as the
> > install.txt file says, and i cant use any php scripts that use
variables,
> > such as $HTTP_USER_AGENT, but can use commands such as echo, can anyone
> > help? and tell me how to set up php with iis using isapi so that it
will
> > work.
> >
> > Thanks,
> > Martin.
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
My file upload script does not work when gzip is turned on.
It does not even return an empty $HTTP_POST_FILES
Any ideas?
--- End Message ---