php-install Digest 24 Dec 2002 03:47:54 -0000 Issue 1171
Topics (messages 9431 through 9435):
PHP on IIS
9431 by: David Marr
9432 by: Phil Driscoll
9433 by: David Marr
php_sockets.dll
9434 by: Steven
Re: PHP scripts use/get passed root's environment?
9435 by: john
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 ---
Has anyone successfully installed PHP on IIS6? I have .NET Server 2003, and
I've tried the windows binaries as well as the .exe installer. Both of them
arent working. If anyone has successfully done this please let me know how!
I've had two issues one receiving a 404 error when the page is definitely
there. Another with a login dialog box opening and not letting me in
(permissions?). I followed the directions explicitly, and still no luck.
Any help would be appreciated!
Thanks,
Dave
--- End Message ---
--- Begin Message ---
On Monday 23 December 2002 1:49 pm, David Marr wrote:
> Has anyone successfully installed PHP on IIS6? I have .NET Server 2003, and
> I've tried the windows binaries as well as the .exe installer. Both of them
> arent working. If anyone has successfully done this please let me know how!
> I've had two issues one receiving a 404 error when the page is definitely
> there.
You won't ever get a 404 if the page really is there. So either the file isn't
where it should be - IIS is serving up files from somewhere else, or the
filename is not what you think it is - maybe you're hiding file extensions in
your exploere windows, and what you think is, say, test.php is actually
test.php.txt?
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
I think it has something to do with the mapping to .php which is
C:\php\php.exe because if I manually run php.exe test.php I see all the html
rendered in the command window. I know the file isn't .php.txt, there is
something else going on!
-----Original Message-----
From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:11 AM
To: David Marr; [EMAIL PROTECTED]
Subject: Re: [PHP-INST] PHP on IIS
On Monday 23 December 2002 1:49 pm, David Marr wrote:
> Has anyone successfully installed PHP on IIS6? I have .NET Server 2003,
and
> I've tried the windows binaries as well as the .exe installer. Both of
them
> arent working. If anyone has successfully done this please let me know
how!
> I've had two issues one receiving a 404 error when the page is definitely
> there.
You won't ever get a 404 if the page really is there. So either the file
isn't
where it should be - IIS is serving up files from somewhere else, or the
filename is not what you think it is - maybe you're hiding file extensions
in
your exploere windows, and what you think is, say, test.php is actually
test.php.txt?
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
any ever managed to get the socket at work under windows2000 ? any
suggestions are welcome
when i enable the extension on windows 2000 server is keeps loading the page
--- End Message ---
--- Begin Message ---
My phpinfo() section looks pretty much the same as yours.
I think PHP is not actually running as root--if you look in the Apache
section, you should find a User/Group section that has the actual user
account PHP uses. Mine lists nobody(99)/99, and that's the owner of any
files I create from a PHP page...
Apache is generally started by root, and then spawns sub-processes
running as a non-privileged user. These sub-processes handle the actual
requests. It looks to me that Apache doesn't change the system
environment for these sub-processes--it just changes the user account
they run under.
Hope that helps,
John Locke
http://freelock.com
Terrence Koeman wrote:
PHP 4.2.3 on Apache 1.3.27 on FreeBSD 4.7-STABLE;
Apache runs with uid/gid 80/80 and php is loaded as module.
For some reason all PHP scripts on my box run in root's environment
instead of one created by apache.
This is the environment section from phpinfo:
http://ra.phid.ae/phpinfo.html
And I guess it should look like this: http://ra.phid.ae/phpinfo2.html
The issue remains if I rename the php.ini to something else to get the
default values and restart apache.
CGI scripts (perl) have the right environment, so i'm pretty sure it's
a PHP thing.
Any ideas? Thanks in advance.
--- End Message ---