php-windows Digest 16 Feb 2010 05:33:29 -0000 Issue 3760
Topics (messages 29897 through 29905):
Re: 64-bit PHP binaries
29897 by: Morris
29898 by: Richard Quadling
29899 by: Pierre Joye
29900 by: Morris
29901 by: Morris
29902 by: Richard Quadling
29903 by: Pierre Joye
29904 by: Venkat Raman Don
29905 by: Morris
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
I am Starting to have a senaly suspicion that fascgi is not working
correctly. Is there a way I can test this and where should the dlls be
located for it?
""Morris"" <mo...@afridata.net> wrote in message
news:62.70.09468.66849...@pb1.pair.com...
Herewith my troubleshooting as per Don's troubleshooting guide:
C:\>%WINDIR%\system32\inetsrv\appcmd.exe list config /section:fastcgi
/text:*
CONFIG
CONFIG.SECTION:"system.webServer/fastCgi"
path:"MACHINE/WEBROOT/APPHOST"
overrideMode:"Inherit"
locked:"false"
[system.webServer/fastCgi]
[application]
fullPath:"C:\Program Files (x86)\PHP\php-cgi.exe"
arguments:""
monitorChangesTo:""
stderrMode:"ReturnStdErrIn500"
maxInstances:"4"
idleTimeout:"300"
activityTimeout:"300"
requestTimeout:"600"
instanceMaxRequests:"10000"
signalBeforeTerminateSeconds:"0"
protocol:"NamedPipe"
queueLength:"1000"
flushNamedPipe:"false"
rapidFailsPerMinute:"10"
[environmentVariables]
[environmentVariable]
name:"PHP_FCGI_MAX_REQUESTS"
value:"10000"
[environmentVariable]
name:"PHPRC"
value:"C:\Program Files (x86)\PHP\"
C:\>%WINDIR%\system32\inetsrv\appcmd.exe list config /section:handlers
/text:* | findstr /i PHP
name:"PHP_via_FastCGI"
path:"*.php"
scriptProcessor:"C:\Program Files (x86)\PHP\php-cgi.exe"
I could not do the following as IIS is not serving the pages:
<?php
echo 'This is my first PHP program';
?>
Please name the above file as 'test.php' in your webroot folder (PHP
SERVER variable _SERVER["DOCUMENT_ROOT]") and save it. I will be using
'C:\inetpub\wwwroot' as this is my webroot folder and also the place where
my PHP_SERVER variable _SERVER["DOCUMENT_ROOT"] is set.
When I run the following command I get the error below:
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -v
PHP 5.2.12 (cgi-fcgi) (built: Dec 16 2009 16:57:38)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
When I run the following command I get the error below:
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe"
C:\webcontent\test.mysite.com\test.php
X-Powered-By: PHP/5.2.12
Content-type: text/html
This is my first PHP program
When I ran the above two commands I got the error "The program can't start
because msvcr71.dll is missing from you computer. Try re-installing the
program to fix this problem." and fixed it by searching for the missing
file and copying it to the c:\windows\syswow64 directory. After that the
error disappeared. I think it is because MSSQL may be enabled in the
php.ini file. It is a minor issue so I will not worry about it.
When I ping'ed the localhost from the command prompt I received the
following which is worrying. It is not configured in the hosts file so why
is it resolving like this?
C:\>ping localhost
Pinging MYSERVERNAME [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
When I ping the website I configured it resolves the correct IP address.
This site can serve asp and html pages.
C:\>ping test.mysite.com
Pinging test.mysite.com [10.50.0.71] with 32 bytes of data:
Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
Ping statistics for 10.50.0.71:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
I did not go through all the testing for the default site as it does not
exist anymore. The site is custom configured and it does serve html and
asp pages without problems.
When I run "%WINDIR%\system32\inetsrv\appcmd.exe list site" I get the
following:
SITE "test.mysite.com"
(id:7,bindings:http/10.50.0.71:80:test.mysite.com,state:Started)
When I run "%WINDIR%\system32\inetsrv\appcmd.exe list vdirs" I get the
following:
VDIR "test.mysite.com/" (physicalPath:C:\webcontent\test.mysite.com)
So far no solution. I personally think it is IIS that does not hand off
the php request to the php executable.
--- End Message ---
--- Begin Message ---
On 15 February 2010 13:25, Morris <mo...@afridata.net> wrote:
> I am Starting to have a senaly suspicion that fascgi is not working
> correctly. Is there a way I can test this and where should the dlls be
> located for it?
>
> ""Morris"" <mo...@afridata.net> wrote in message
> news:62.70.09468.66849...@pb1.pair.com...
>>
>> Herewith my troubleshooting as per Don's troubleshooting guide:
>>
>> C:\>%WINDIR%\system32\inetsrv\appcmd.exe list config /section:fastcgi
>> /text:*
>> CONFIG
>> CONFIG.SECTION:"system.webServer/fastCgi"
>> path:"MACHINE/WEBROOT/APPHOST"
>> overrideMode:"Inherit"
>> locked:"false"
>> [system.webServer/fastCgi]
>> [application]
>> fullPath:"C:\Program Files (x86)\PHP\php-cgi.exe"
>> arguments:""
>> monitorChangesTo:""
>> stderrMode:"ReturnStdErrIn500"
>> maxInstances:"4"
>> idleTimeout:"300"
>> activityTimeout:"300"
>> requestTimeout:"600"
>> instanceMaxRequests:"10000"
>> signalBeforeTerminateSeconds:"0"
>> protocol:"NamedPipe"
>> queueLength:"1000"
>> flushNamedPipe:"false"
>> rapidFailsPerMinute:"10"
>> [environmentVariables]
>> [environmentVariable]
>> name:"PHP_FCGI_MAX_REQUESTS"
>> value:"10000"
>> [environmentVariable]
>> name:"PHPRC"
>> value:"C:\Program Files (x86)\PHP\"
>>
>>
>>
>> C:\>%WINDIR%\system32\inetsrv\appcmd.exe list config /section:handlers
>> /text:* | findstr /i PHP
>> name:"PHP_via_FastCGI"
>> path:"*.php"
>> scriptProcessor:"C:\Program Files (x86)\PHP\php-cgi.exe"
>>
>>
>>
>> I could not do the following as IIS is not serving the pages:
>>
>> <?php
>> echo 'This is my first PHP program';
>> ?>
>>
>> Please name the above file as 'test.php' in your webroot folder (PHP
>> SERVER variable _SERVER["DOCUMENT_ROOT]") and save it. I will be using
>> 'C:\inetpub\wwwroot' as this is my webroot folder and also the place where
>> my PHP_SERVER variable _SERVER["DOCUMENT_ROOT"] is set.
>>
>>
>>
>> When I run the following command I get the error below:
>>
>> C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -v
>> PHP 5.2.12 (cgi-fcgi) (built: Dec 16 2009 16:57:38)
>> Copyright (c) 1997-2009 The PHP Group
>> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
>>
>>
>> When I run the following command I get the error below:
>>
>> C:\>"C:\Program Files (x86)\PHP\php-cgi.exe"
>> C:\webcontent\test.mysite.com\test.php
>> X-Powered-By: PHP/5.2.12
>> Content-type: text/html
>>
>> This is my first PHP program
>>
>> When I ran the above two commands I got the error "The program can't start
>> because msvcr71.dll is missing from you computer. Try re-installing the
>> program to fix this problem." and fixed it by searching for the missing file
>> and copying it to the c:\windows\syswow64 directory. After that the error
>> disappeared. I think it is because MSSQL may be enabled in the php.ini file.
>> It is a minor issue so I will not worry about it.
>>
>> When I ping'ed the localhost from the command prompt I received the
>> following which is worrying. It is not configured in the hosts file so why
>> is it resolving like this?
>>
>> C:\>ping localhost
>>
>> Pinging MYSERVERNAME [::1] with 32 bytes of data:
>> Reply from ::1: time<1ms
>> Reply from ::1: time<1ms
>> Reply from ::1: time<1ms
>> Reply from ::1: time<1ms
>>
>> Ping statistics for ::1:
>> Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
>> Approximate round trip times in milli-seconds:
>> Minimum = 0ms, Maximum = 0ms, Average = 0ms
>>
>> When I ping the website I configured it resolves the correct IP address.
>> This site can serve asp and html pages.
>>
>> C:\>ping test.mysite.com
>>
>> Pinging test.mysite.com [10.50.0.71] with 32 bytes of data:
>> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
>> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
>> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
>> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
>>
>> Ping statistics for 10.50.0.71:
>> Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
>> Approximate round trip times in milli-seconds:
>> Minimum = 0ms, Maximum = 0ms, Average = 0ms
>>
>>
>> I did not go through all the testing for the default site as it does not
>> exist anymore. The site is custom configured and it does serve html and asp
>> pages without problems.
>> When I run "%WINDIR%\system32\inetsrv\appcmd.exe list site" I get the
>> following:
>>
>> SITE "test.mysite.com"
>> (id:7,bindings:http/10.50.0.71:80:test.mysite.com,state:Started)
>>
>>
>> When I run "%WINDIR%\system32\inetsrv\appcmd.exe list vdirs" I get the
>> following:
>>
>> VDIR "test.mysite.com/" (physicalPath:C:\webcontent\test.mysite.com)
>>
>>
>> So far no solution. I personally think it is IIS that does not hand off
>> the php request to the php executable.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Can you try ...
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -m
and then ...
"C:\Program Files (x86)\PHP\php-cgi.exe" -m
and then ...
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -i | find /i "extension build"
and finally ...
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -f
C:\webcontent\test.mysite.com\test.php
Can you report each of these please?
I'm wondering if you've got an extension which is not for the same
version of PHP?
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
On Mon, Feb 15, 2010 at 2:13 PM, Morris <mo...@afridata.net> wrote:
> Please name the above file as 'test.php' in your webroot folder (PHP SERVER
> variable _SERVER["DOCUMENT_ROOT]") and save it. I will be using
> 'C:\inetpub\wwwroot' as this is my webroot folder and also the place where
> my PHP_SERVER variable _SERVER["DOCUMENT_ROOT"] is set.
>
>
>
> When I run the following command I get the error below:
>
> C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -v
> PHP 5.2.12 (cgi-fcgi) (built: Dec 16 2009 16:57:38)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Looks fine.
> When I run the following command I get the error below:
>
> C:\>"C:\Program Files (x86)\PHP\php-cgi.exe"
> C:\webcontent\test.mysite.com\test.php
> X-Powered-By: PHP/5.2.12
> Content-type: text/html
>
> This is my first PHP program
>
> When I ran the above two commands I got the error "The program can't start
> because msvcr71.dll is missing from you computer.
Disable all extensions in php.ini, restart IIS and try again.
> Try re-installing the
> program to fix this problem." and fixed it by searching for the missing file
> and copying it to the c:\windows\syswow64 directory. After that the error
> disappeared. I think it is because MSSQL may be enabled in the php.ini file.
> It is a minor issue so I will not worry about it.
Yes, it is mssql. Disable it if you don't use it or don't have sql
clients installed.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---
--- Begin Message ---
Hi Richard.
Herewith the output:
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -m
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -n -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
json
libxml
odbc
pcre
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
"C:\Program Files (x86)\PHP\php-cgi.exe" -m
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
com_dotnet
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mssql
mysql
mysqli
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Reflection
session
SimpleXML
soap
SPL
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib
[Zend Modules]
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -i | find /i "extension build"
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
com_dotnet
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mssql
mysql
mysqli
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Reflection
session
SimpleXML
soap
SPL
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib
[Zend Modules]
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -f
C:\webcontent\test.mysite.com\test.php
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -n -f
C:\webcontent\test.1stcontact.com\test.php
This is my first PHP program
I have removed and re-installed php a couple of time to try and get this
working but I don’t see any duplicate configurations if that is what you
mean.
--- End Message ---
--- Begin Message ---
I must also mention that I looked this article:
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/
And could not install the update for fastcgi or the administration tools, as
stated earlier in this post.
""Morris"" <mo...@afridata.net> wrote in message
news:6a.a1.19260.64169...@pb1.pair.com...
Hi Richard.
Herewith the output:
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -m
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -n -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
json
libxml
odbc
pcre
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
"C:\Program Files (x86)\PHP\php-cgi.exe" -m
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
com_dotnet
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mssql
mysql
mysqli
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Reflection
session
SimpleXML
soap
SPL
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib
[Zend Modules]
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -i | find /i "extension
build"
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
com_dotnet
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mssql
mysql
mysqli
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Reflection
session
SimpleXML
soap
SPL
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib
[Zend Modules]
"C:\Program Files (x86)\PHP\php-cgi.exe" -n -f
C:\webcontent\test.mysite.com\test.php
C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -n -f
C:\webcontent\test.1stcontact.com\test.php
This is my first PHP program
I have removed and re-installed php a couple of time to try and get this
working but I don’t see any duplicate configurations if that is what you
mean.
--- End Message ---
--- Begin Message ---
Hi.
A couple of things.
1 - You didn't get the output right for php -n -i | find /i "extension
build". You can a -m output.
2 - What command gave the error regarding msvcr71.dll?
3 - The extensions that have been enabled by the INI file are ...
curl
exif
gd
gettext
imap
mbstring
mssql
mysql
mysqli
openssl
PDO
pdo_mysql
pdo_sqlite
soap
tidy
xmlwriter
zip
If you are sure you are going to use mySQL, MS SQL _AND_ sqlite as
well as the PDO versions of mysql and sqlite then fine, but if not,
turn them off.
Especially the mssql one as this really isn't going to help you in the
long run (the library that php_mssql.dll depends on is very old and no
longer maintained by MS and has "issues".). Use the SQL Native Client
driver with either ODBC (php_odbc is already built in) or the new MS
SQL driver for PHP (http://www.codeplex.com/SQLSRVPHP).
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
again, the crt 7.1 is about MSSQL, disable the MSSql extensions and
you will be fine.
It is not a requirement to make thinks 10x more complex than expected,
sometimes they can be simple :)
Cheers,
On Mon, Feb 15, 2010 at 4:28 PM, Richard Quadling
<rquadl...@googlemail.com> wrote:
> Hi.
>
> A couple of things.
>
> 1 - You didn't get the output right for php -n -i | find /i "extension
> build". You can a -m output.
>
> 2 - What command gave the error regarding msvcr71.dll?
>
> 3 - The extensions that have been enabled by the INI file are ...
>
> curl
> exif
> gd
> gettext
> imap
> mbstring
> mssql
> mysql
> mysqli
> openssl
> PDO
> pdo_mysql
> pdo_sqlite
> soap
> tidy
> xmlwriter
> zip
>
> If you are sure you are going to use mySQL, MS SQL _AND_ sqlite as
> well as the PDO versions of mysql and sqlite then fine, but if not,
> turn them off.
>
> Especially the mssql one as this really isn't going to help you in the
> long run (the library that php_mssql.dll depends on is very old and no
> longer maintained by MS and has "issues".). Use the SQL Native Client
> driver with either ODBC (php_odbc is already built in) or the new MS
> SQL driver for PHP (http://www.codeplex.com/SQLSRVPHP).
>
> Richard.
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---
--- Begin Message ---
Hi,
Please comment the below line in your PHP.INI file and try again. It seems you
have everything setup correctly.
extension=php_mssql.dll
This is giving you msvcr71.dll not found error. It should work after commenting
this line (or unloading the extension php_mssql.dll).
Thanks,
Don.
-----Original Message-----
From: Morris [mailto:mo...@afridata.net]
Sent: Monday, February 15, 2010 5:26 AM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] 64-bit PHP binaries
I am Starting to have a senaly suspicion that fascgi is not working
correctly. Is there a way I can test this and where should the dlls be
located for it?
""Morris"" <mo...@afridata.net> wrote in message
news:62.70.09468.66849...@pb1.pair.com...
> Herewith my troubleshooting as per Don's troubleshooting guide:
>
> C:\>%WINDIR%\system32\inetsrv\appcmd.exe list config /section:fastcgi
> /text:*
> CONFIG
> CONFIG.SECTION:"system.webServer/fastCgi"
> path:"MACHINE/WEBROOT/APPHOST"
> overrideMode:"Inherit"
> locked:"false"
> [system.webServer/fastCgi]
> [application]
> fullPath:"C:\Program Files (x86)\PHP\php-cgi.exe"
> arguments:""
> monitorChangesTo:""
> stderrMode:"ReturnStdErrIn500"
> maxInstances:"4"
> idleTimeout:"300"
> activityTimeout:"300"
> requestTimeout:"600"
> instanceMaxRequests:"10000"
> signalBeforeTerminateSeconds:"0"
> protocol:"NamedPipe"
> queueLength:"1000"
> flushNamedPipe:"false"
> rapidFailsPerMinute:"10"
> [environmentVariables]
> [environmentVariable]
> name:"PHP_FCGI_MAX_REQUESTS"
> value:"10000"
> [environmentVariable]
> name:"PHPRC"
> value:"C:\Program Files (x86)\PHP\"
>
>
>
> C:\>%WINDIR%\system32\inetsrv\appcmd.exe list config /section:handlers
> /text:* | findstr /i PHP
> name:"PHP_via_FastCGI"
> path:"*.php"
> scriptProcessor:"C:\Program Files (x86)\PHP\php-cgi.exe"
>
>
>
> I could not do the following as IIS is not serving the pages:
>
> <?php
> echo 'This is my first PHP program';
> ?>
>
> Please name the above file as 'test.php' in your webroot folder (PHP
> SERVER variable _SERVER["DOCUMENT_ROOT]") and save it. I will be using
> 'C:\inetpub\wwwroot' as this is my webroot folder and also the place where
> my PHP_SERVER variable _SERVER["DOCUMENT_ROOT"] is set.
>
>
>
> When I run the following command I get the error below:
>
> C:\>"C:\Program Files (x86)\PHP\php-cgi.exe" -v
> PHP 5.2.12 (cgi-fcgi) (built: Dec 16 2009 16:57:38)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
>
>
> When I run the following command I get the error below:
>
> C:\>"C:\Program Files (x86)\PHP\php-cgi.exe"
> C:\webcontent\test.mysite.com\test.php
> X-Powered-By: PHP/5.2.12
> Content-type: text/html
>
> This is my first PHP program
>
> When I ran the above two commands I got the error "The program can't start
> because msvcr71.dll is missing from you computer. Try re-installing the
> program to fix this problem." and fixed it by searching for the missing
> file and copying it to the c:\windows\syswow64 directory. After that the
> error disappeared. I think it is because MSSQL may be enabled in the
> php.ini file. It is a minor issue so I will not worry about it.
>
> When I ping'ed the localhost from the command prompt I received the
> following which is worrying. It is not configured in the hosts file so why
> is it resolving like this?
>
> C:\>ping localhost
>
> Pinging MYSERVERNAME [::1] with 32 bytes of data:
> Reply from ::1: time<1ms
> Reply from ::1: time<1ms
> Reply from ::1: time<1ms
> Reply from ::1: time<1ms
>
> Ping statistics for ::1:
> Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
> Approximate round trip times in milli-seconds:
> Minimum = 0ms, Maximum = 0ms, Average = 0ms
>
> When I ping the website I configured it resolves the correct IP address.
> This site can serve asp and html pages.
>
> C:\>ping test.mysite.com
>
> Pinging test.mysite.com [10.50.0.71] with 32 bytes of data:
> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
> Reply from 10.50.0.71: bytes=32 time<1ms TTL=128
>
> Ping statistics for 10.50.0.71:
> Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
> Approximate round trip times in milli-seconds:
> Minimum = 0ms, Maximum = 0ms, Average = 0ms
>
>
> I did not go through all the testing for the default site as it does not
> exist anymore. The site is custom configured and it does serve html and
> asp pages without problems.
> When I run "%WINDIR%\system32\inetsrv\appcmd.exe list site" I get the
> following:
>
> SITE "test.mysite.com"
> (id:7,bindings:http/10.50.0.71:80:test.mysite.com,state:Started)
>
>
> When I run "%WINDIR%\system32\inetsrv\appcmd.exe list vdirs" I get the
> following:
>
> VDIR "test.mysite.com/" (physicalPath:C:\webcontent\test.mysite.com)
>
>
> So far no solution. I personally think it is IIS that does not hand off
> the php request to the php executable.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thanks Pierre for your reply. However, this is not the main problem I have
at the moment. I can disable the modules later, for now I need php to work
and nothing that I am doing is getting it working. Do you know of any ways
of testing if fastcgi is working properly as I think this is where my
problem lies.
"Pierre Joye" <pierre....@gmail.com> wrote in message
news:fe05d1541002150734h4baaa597nf4d5f2a86d576...@mail.gmail.com...
again, the crt 7.1 is about MSSQL, disable the MSSql extensions and
you will be fine.
It is not a requirement to make thinks 10x more complex than expected,
sometimes they can be simple :)
Cheers,
On Mon, Feb 15, 2010 at 4:28 PM, Richard Quadling
<rquadl...@googlemail.com> wrote:
Hi.
A couple of things.
1 - You didn't get the output right for php -n -i | find /i "extension
build". You can a -m output.
2 - What command gave the error regarding msvcr71.dll?
3 - The extensions that have been enabled by the INI file are ...
curl
exif
gd
gettext
imap
mbstring
mssql
mysql
mysqli
openssl
PDO
pdo_mysql
pdo_sqlite
soap
tidy
xmlwriter
zip
If you are sure you are going to use mySQL, MS SQL _AND_ sqlite as
well as the PDO versions of mysql and sqlite then fine, but if not,
turn them off.
Especially the mssql one as this really isn't going to help you in the
long run (the library that php_mssql.dll depends on is very old and no
longer maintained by MS and has "issues".). Use the SQL Native Client
driver with either ODBC (php_odbc is already built in) or the new MS
SQL driver for PHP (http://www.codeplex.com/SQLSRVPHP).
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer :
http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---