Prev: Server side redirection - yet again
Next: exception throw from __autoload could not be catched on php 5.3.1
From: Pierre Joye on 15 Feb 2010 09:13 On Mon, Feb 15, 2010 at 2:13 PM, Morris <morne(a)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
From: "Morris" on 15 Feb 2010 09:59 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.
From: "Morris" on 15 Feb 2010 10:23 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"" <morne(a)afridata.net> wrote in message news:6A.A1.19260.641697B4(a)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.
From: Richard Quadling on 15 Feb 2010 10:28 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
From: Pierre Joye on 15 Feb 2010 10:34
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 |