Prev: Server side redirection - yet again
Next: exception throw from __autoload could not be catched on php 5.3.1
From: Venkat Raman Don on 15 Feb 2010 11:58 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:morne(a)afridata.net] Sent: Monday, February 15, 2010 5:26 AM To: php-windows(a)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"" <morne(a)afridata.net> wrote in message news:62.70.09468.668497B4(a)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
From: "Morris" on 16 Feb 2010 00:33 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.php(a)gmail.com> wrote in message news:fe05d1541002150734h4baaa597nf4d5f2a86d576c43(a)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 > <rquadling(a)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
From: "Morris" on 16 Feb 2010 01:33 Hi Don. Is there anyone I can phone or chat on IM for support on this. I am willing to pay for it as it is now a critical issue affecting business. We cannot roll any of our php code to live. I appreciate your assistance on this very much. "Venkat Raman Don" <Don.Raman(a)microsoft.com> wrote in message news:3FA2AD39E9964240B4E6DD4AE62E031B4531A380(a)TK5EX14MBXC120.redmond.corp.microsoft.com... > 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:morne(a)afridata.net] > Sent: Monday, February 15, 2010 5:26 AM > To: php-windows(a)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"" <morne(a)afridata.net> wrote in message > news:62.70.09468.668497B4(a)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 > >
From: Pierre Joye on 16 Feb 2010 05:12 What is exactly your problem now? All I can see was about the crt dll missing, you did not mention any other error at this stage... On Tue, Feb 16, 2010 at 6:33 AM, Morris <morne(a)afridata.net> wrote: > 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.php(a)gmail.com> wrote in message > news:fe05d1541002150734h4baaa597nf4d5f2a86d576c43(a)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 >> <rquadling(a)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 > > > -- > 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
From: "Morris" on 16 Feb 2010 06:08 Hi Pierre. The original problem in my post was the iis is not serving php pages. everything is configured correctly and testing correctly but it was not serving the test page via a browser. I think that I got it working now. Don mentioned something about a second php handler entry that might exist and I found one. It was named quite weird and that is why I did not pick it up in the first place. I removed this handler and the test page is now working. I am going to install mysql and wordpress now to make sure all is fine. I would sincerely like to thank everyone for their assistance on this and I must say I learned a lot about iis7 and php in a short time. Regards, Morris "Pierre Joye" <pierre.php(a)gmail.com> wrote in message news:fe05d1541002160212p1e51efccwbaff0d08b70ec895(a)mail.gmail.com... > What is exactly your problem now? All I can see was about the crt dll > missing, you did not mention any other error at this stage... > > On Tue, Feb 16, 2010 at 6:33 AM, Morris <morne(a)afridata.net> wrote: >> 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.php(a)gmail.com> wrote in message >> news:fe05d1541002150734h4baaa597nf4d5f2a86d576c43(a)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 >>> <rquadling(a)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 >> >> >> -- >> 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
First
|
Prev
|
Pages: 1 2 3 4 5 6 7 Prev: Server side redirection - yet again Next: exception throw from __autoload could not be catched on php 5.3.1 |