We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

PHP setup [Answered]RSS

4 replies

Last post Jun 16, 2011 01:07 PM by HCamper

  • PHP setup

    Jun 15, 2011 08:07 AM|grumpyted|LINK

    I'm very new to SBS and have installed SBS 2011, with the view to using it to locally test my PHP websites. I have followed the instructions here http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/#InstallPHP to install PHP FastCGI but get to the point 6. Open a browser and navigate to http://localhost/phpinfo.php. I get a The webpage cannot be found error Obviously I have made an error somewhere. Can anyone point me in the right direction? Thank you x

    PHP

  • Re: PHP setup

    Jun 15, 2011 09:42 AM|HCamper|LINK

    Hello,

    Have you checked IIS Net library Guide http://learn.iis.net/page.aspx/724/install-and-configure-php/ .

    Have you checked the PHP Recycling guide in the IIS Net Library and set the Variables.

    Common problems with PHP are:

    Not having the Date / Time Zone set in the php.ini file.

    Having incorrect extensions selected or having selected all extensions.

    Problems with the PATH set correctly Long_File_Names with spaces need to have

    quotes "C:\Program Files (x86)\PHP\php-cgi.exe" or "C:\Program Files\PHP\php-cgi.exe".

    You can check for may of the errors using php at the command prompt PHP -h shows help.

    Once you have created the Handler and mapping for *.php you need to enable at the IIS Server and in the

    Web SIte or location where php files are located.

    Martin

     

     

    Windows and Linux work Together IT-Pros
    Community Member Award 2011
  • Re: PHP setup

    Jun 15, 2011 05:20 PM|grumpyted|LINK

    Thank you Martin. I'll get reading. Just what I needed. Ted
  • Re: PHP setup

    Jun 16, 2011 04:11 AM|grumpyted|LINK

     All working now, so far. Thank you. I'm confused as to which 'Enable the required PHP extension' to enable. I wish to use MySQL but not sure if the following is correct?

    ; Windows Extensions
    ; Note that ODBC support is built in, so no dll is needed for it.
    ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
    ; extension folders as well as the separate PECL DLL download (PHP 5).
    ; Be sure to appropriately set the extension_dir directive.
    ;
    ;extension=php_bz2.dll
    ;extension=php_curl.dll
    extension=php_fileinfo.dll
    ;extension=php_gd2.dll
    ;extension=php_gettext.dll
    ;extension=php_gmp.dll
    ;extension=php_intl.dll
    ;extension=php_imap.dll
    ;extension=php_interbase.dll
    ;extension=php_ldap.dll
    ;extension=php_mbstring.dll
    ;extension=php_exif.dll      ; Must be after mbstring as it depends on it
    extension=php_mysql.dll
    extension=php_mysqli.dll
    ;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
    ;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client
    ;extension=php_openssl.dll
    ;extension=php_pdo_firebird.dll
    ;extension=php_pdo_mssql.dll
    ;extension=php_pdo_mysql.dll
    ;extension=php_pdo_oci.dll
    ;extension=php_pdo_odbc.dll
    ;extension=php_pdo_pgsql.dll
    ;extension=php_pdo_sqlite.dll
    ;extension=php_pgsql.dll
    ;extension=php_phar.dll
    ;extension=php_pspell.dll
    ;extension=php_shmop.dll

  • Re: PHP setup

    Jun 16, 2011 01:07 PM|HCamper|LINK

    Hello,

    Looks like you have cleaned up the extensions configuration except for this ";extension=php_pdo_mysql.dll"

    enable the additional pdo for mysql.

    Checking PHP extensions using Web Page and test.php or command prompt:

    You can check the php information and extensions using the test.php file that contains

    <?php phpinfo(); ?> save the file to C:\inetpub\wwwroot\test.php

    then browse to http:// localhost / test.php . The spaces are for reading only.

    The alternate is at command prompt php> -i displays the current settings.

    You can save a text copy with command prompt>php -i>php-list.txt you then can open the file with notepad.


    Martin

     

    Windows and Linux work Together IT-Pros
    Community Member Award 2011