PHP Setting up problem with Windows 2008 ServerRSS

30 replies

Last post Dec 27, 2008 08:11 PM by comet240

  • PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 03:11 AM|comet240|LINK

    hi i trying to get a guestbook for longest time to run on my website  currently it will run certain guestbooks under php fine somewhat and others it will show the code example for now http://mike1.webhop.org/index.html and the password is "pass"  i cant seem to configure i guess php right even when i do the steps for windows 2008 server  here is the phpinfo maybe someone can tell me where im wrong or need to configure 

     

    <div class="center">
    PHP Logo

    PHP Version 5.2.6


    System Windows NT MCPRODUCTIONS 6.0 build 6001
    Build Date May 2 2008 18:01:20
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
    Server API CGI/FastCGI
    Virtual Directory Support enabled
    Configuration File (php.ini) Path C:\Windows
    Loaded Configuration File C:\PHP\php.ini
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety enabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, data, http, ftp, compress.zlib
    Registered Stream Socket Transports tcp, udp
    Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

    Zend logo This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies


    PHP Credits


    Configuration

    PHP Core

    Directive Local Value Master Value
    allow_call_time_pass_reference Off Off
    allow_url_fopen On On
    allow_url_include Off Off
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_globals_jit On On
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors Off Off
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting 6143 6143
    expose_php On On
    extension_dir ./ext ./ext
    file_uploads On On
    highlight.bg #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .;C:\php5\pear .;C:\php5\pear
    log_errors On On
    log_errors_max_len 1024 1024
    magic_quotes_gpc Off Off
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    mail.force_extra_parameters no value no value
    max_execution_time 30 30
    max_input_nesting_level 64 64
    max_input_time 60 60
    memory_limit 128M 128M
    open_basedir c:\inetpub\ c:\inetpub\
    output_buffering 4096 4096
    output_handler no value no value
    post_max_size 8M 8M
    precision 14 14
    realpath_cache_size 16K 16K
    realpath_cache_ttl 120 120
    register_argc_argv Off Off
    register_globals Off Off
    register_long_arrays Off Off
    report_memleaks On On
    report_zend_debug On On
    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from no value no value
    sendmail_path no value no value
    serialize_precision 100 100
    short_open_tag Off Off
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir no value no value
    user_dir no value no value
    variables_order GPCS GPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On
    zend.ze1_compatibility_mode Off Off

    bcmath

    BCMath support enabled

    calendar

    Calendar support enabled

    cgi-fcgi

    Directive Local Value Master Value
    cgi.check_shebang_line 1 1
    cgi.fix_pathinfo 1 1
    cgi.force_redirect 0 0
    cgi.nph 0 0
    cgi.redirect_status_env no value no value
    cgi.rfc2616_headers 0 0
    fastcgi.impersonate 1 1
    fastcgi.logging 1 1

    com_dotnet

    COM support enabled
    DCOM support disabled
    .Net support enabled

    Directive Local Value Master Value
    com.allow_dcom 0 0
    com.autoregister_casesensitive 1 1
    com.autoregister_typelib 0 0
    com.autoregister_verbose 0 0
    com.code_page no value no value
    com.typelib_file no value no value

    ctype

    ctype functions enabled

    date

    date/time support enabled
    "Olson" Timezone Database Version 2008.2
    Timezone Database internal
    Default timezone America/New_York

    Directive Local Value Master Value
    date.default_latitude 31.7667 31.7667
    date.default_longitude 35.2333 35.2333
    date.sunrise_zenith 90.583333 90.583333
    date.sunset_zenith 90.583333 90.583333
    date.timezone no value no value

    dom

    DOM/XML enabled
    DOM/XML API Version 20031129
    libxml Version 2.6.32
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    Schema Support enabled
    RelaxNG Support enabled

    filter

    Input Validation and Filtering enabled
    Revision $Revision: 1.52.2.42 $

    Directive Local Value Master Value
    filter.default unsafe_raw unsafe_raw
    filter.default_flags no value no value

    ftp

    FTP support enabled

    hash

    hash support enabled
    Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

    iconv

    iconv support enabled
    iconv implementation "libiconv"
    iconv library version 1.11

    Directive Local Value Master Value
    iconv.input_encoding ISO-8859-1 ISO-8859-1
    iconv.internal_encoding ISO-8859-1 ISO-8859-1
    iconv.output_encoding ISO-8859-1 ISO-8859-1

    json

    json support enabled
    json version 1.2.1

    libxml

    libXML support active
    libXML Version 2.6.32
    libXML streams enabled

    msql

    MSQL Support enabled
    Allow Persistent Links yes
    Persistent Links 0/unlimited
    Total Links 0/unlimited

    mssql

    MSSQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Library version 7.0

    Directive Local Value Master Value
    mssql.allow_persistent On On
    mssql.batchsize 0 0
    mssql.compatability_mode Off Off
    mssql.connect_timeout 5 5
    mssql.datetimeconvert On On
    mssql.max_links Unlimited Unlimited
    mssql.max_persistent Unlimited Unlimited
    mssql.max_procs Unlimited Unlimited
    mssql.min_error_severity 10 10
    mssql.min_message_severity 10 10
    mssql.secure_connection Off Off
    mssql.textlimit Server default Server default
    mssql.textsize Server default Server default
    mssql.timeout 60 60

    odbc

    ODBC Support enabled
    Active Persistent Links 0
    Active Links 0
    ODBC library Win32

    Directive Local Value Master Value
    odbc.allow_persistent On On
    odbc.check_persistent On On
    odbc.default_db no value no value
    odbc.default_pw no value no value
    odbc.default_user no value no value
    odbc.defaultbinmode return as is return as is
    odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
    odbc.max_links Unlimited Unlimited
    odbc.max_persistent Unlimited Unlimited

    pcre

    PCRE (Perl Compatible Regular Expressions) Support enabled
    PCRE Library Version 7.6 2008-01-28

    Directive Local Value Master Value
    pcre.backtrack_limit 100000 100000
    pcre.recursion_limit 100000 100000

    Reflection

    Reflection enabled
    Version $Id: php_reflection.c,v 1.164.2.33.2.50 2008/03/13 15:56:21 iliaa Exp $

    session

    Session Support enabled
    Registered save handlers files user
    Registered serializer handlers php php_binary wddx

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 Off Off
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_httponly Off Off
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 1000 1000
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.hash_bits_per_character 5 5
    session.hash_function 0 0
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path no value no value
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid 0 0

    SimpleXML

    Simplexml support enabled
    Revision $Revision: 1.151.2.22.2.39 $
    Schema support enabled

    SPL

    SPL support enabled
    Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
    Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

    standard

    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Internal Sendmail Support for Windows enabled

    Directive Local Value Master Value
    assert.active 1 1
    assert.bail 0 0
    assert.callback no value no value
    assert.quiet_eval 0 0
    assert.warning 1 1
    auto_detect_line_endings 0 0
    default_socket_timeout 60 60
    safe_mode_allowed_env_vars PHP_ PHP_
    safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
    url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
    user_agent no value no value

    tokenizer

    Tokenizer Support enabled

    wddx

    WDDX Support enabled
    WDDX Session Serializer enabled

    xml

    XML Support active
    XML Namespace Support active
    libxml2 Version 2.6.32

    xmlreader

    XMLReader enabled

    xmlwriter

    XMLWriter enabled

    zlib

    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.3
    Linked Version 1.2.3

    Directive Local Value Master Value
    zlib.output_compression Off Off
    zlib.output_compression_level -1 -1
    zlib.output_handler no value no value

    Additional Modules

    Module Name

    Environment

    Variable Value
    ALLUSERSPROFILE C:\ProgramData
    APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
    APP_POOL_ID inkjet solutions
    CommonProgramFiles C:\Program Files\Common Files
    COMPUTERNAME MCPRODUCTIONS
    ComSpec C:\Windows\system32\cmd.exe
    FP_NO_HOST_CHECK NO
    LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
    NUMBER_OF_PROCESSORS 1
    OS Windows_NT
    Path C:\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PHPRC C:\PHP\
    PROCESSOR_ARCHITECTURE x86
    PROCESSOR_IDENTIFIER x86 Family 15 Model 47 Stepping 2, AuthenticAMD
    PROCESSOR_LEVEL 15
    PROCESSOR_REVISION 2f02
    ProgramData C:\ProgramData
    ProgramFiles C:\Program Files
    PUBLIC C:\Users\Public
    SystemDrive C:
    SystemRoot C:\Windows
    TEMP C:\Windows\TEMP
    TMP C:\Windows\TEMP
    USERDOMAIN MIKES
    USERNAME MCPRODUCTIONS$
    USERPROFILE C:\Windows\system32\config\systemprofile
    windir C:\Windows

    PHP Variables

    Variable Value
    _SERVER["ALLUSERSPROFILE"] C:\ProgramData
    _SERVER["APPDATA"] C:\Windows\system32\config\systemprofile\AppData\Roaming
    _SERVER["APP_POOL_ID"] inkjet solutions
    _SERVER["CommonProgramFiles"] C:\Program Files\Common Files
    _SERVER["COMPUTERNAME"] MCPRODUCTIONS
    _SERVER["ComSpec"] C:\Windows\system32\cmd.exe
    _SERVER["FP_NO_HOST_CHECK"] NO
    _SERVER["LOCALAPPDATA"] C:\Windows\system32\config\systemprofile\AppData\Local
    _SERVER["NUMBER_OF_PROCESSORS"] 1
    _SERVER["OS"] Windows_NT
    _SERVER["Path"] C:\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
    _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    _SERVER["PHPRC"] C:\PHP\
    _SERVER["PROCESSOR_ARCHITECTURE"] x86
    _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 47 Stepping 2, AuthenticAMD
    _SERVER["PROCESSOR_LEVEL"] 15
    _SERVER["PROCESSOR_REVISION"] 2f02
    _SERVER["ProgramData"] C:\ProgramData
    _SERVER["ProgramFiles"] C:\Program Files
    _SERVER["PUBLIC"] C:\Users\Public
    _SERVER["SystemDrive"] C:
    _SERVER["SystemRoot"] C:\Windows
    _SERVER["TEMP"] C:\Windows\TEMP
    _SERVER["TMP"] C:\Windows\TEMP
    _SERVER["USERDOMAIN"] MIKES
    _SERVER["USERNAME"] MCPRODUCTIONS$
    _SERVER["USERPROFILE"] C:\Windows\system32\config\systemprofile
    _SERVER["windir"] C:\Windows
    _SERVER["FCGI_ROLE"] RESPONDER
    _SERVER["HTTP_CACHE_CONTROL"] max-age=0
    _SERVER["HTTP_CONNECTION"] keep-alive
    _SERVER["HTTP_KEEP_ALIVE"] 300
    _SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
    _SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
    _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
    _SERVER["HTTP_HOST"] www.inkjetsolutions.mine.nu
    _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
    _SERVER["DOCUMENT_ROOT"] C:\inetpub\Websites\Inksystem website
    _SERVER["REQUEST_URI"] /test.php
    _SERVER["SCRIPT_FILENAME"] C:\inetpub\Websites\Inksystem website\test.php
    _SERVER["APPL_MD_PATH"] /LM/W3SVC/5/ROOT
    _SERVER["APPL_PHYSICAL_PATH"] C:\inetpub\Websites\Inksystem website\
    _SERVER["AUTH_TYPE"] no value
    _SERVER["AUTH_PASSWORD"] no value
    _SERVER["AUTH_USER"] no value
    _SERVER["CERT_COOKIE"] no value
    _SERVER["CERT_FLAGS"] no value
    _SERVER["CERT_ISSUER"] no value
    _SERVER["CERT_SERIALNUMBER"] no value
    _SERVER["CERT_SUBJECT"] no value
    _SERVER["CONTENT_LENGTH"] 0
    _SERVER["CONTENT_TYPE"] no value
    _SERVER["GATEWAY_INTERFACE"] CGI/1.1
    _SERVER["HTTPS"] off
    _SERVER["HTTPS_KEYSIZE"] no value
    _SERVER["HTTPS_SECRETKEYSIZE"] no value
    _SERVER["HTTPS_SERVER_ISSUER"] no value
    _SERVER["HTTPS_SERVER_SUBJECT"] no value
    _SERVER["INSTANCE_ID"] 5
    _SERVER["INSTANCE_META_PATH"] /LM/W3SVC/5
    _SERVER["LOCAL_ADDR"] 24.235.176.229
    _SERVER["LOGON_USER"] no value
    _SERVER["PATH_TRANSLATED"] C:\inetpub\Websites\Inksystem website\test.php
    _SERVER["QUERY_STRING"] no value
    _SERVER["REMOTE_ADDR"] 70.53.59.189
    _SERVER["REMOTE_HOST"] 70.53.59.189
    _SERVER["REMOTE_PORT"] 60697
    _SERVER["REMOTE_USER"] no value
    _SERVER["REQUEST_METHOD"] GET
    _SERVER["SCRIPT_NAME"] /test.php
    _SERVER["SERVER_NAME"] www.inkjetsolutions.mine.nu
    _SERVER["SERVER_PORT"] 80
    _SERVER["SERVER_PORT_SECURE"] 0
    _SERVER["SERVER_PROTOCOL"] HTTP/1.1
    _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/7.0
    _SERVER["URL"] /test.php
    _SERVER["ORIG_PATH_INFO"] /test.php
    _SERVER["PHP_SELF"] /test.php
    _SERVER["REQUEST_TIME"] 1229501049

    PHP License

    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.


    </div>

     

    PHP

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 11:08 AM|ksingla|LINK

    Hi,

    PhpInfo shows thread safety is enabled. Seems like you are using thread safe version of PHP. Can you follow steps outlined in this article? Article recommend you to run a non-thread safe PHP when used in fastcgi mode. You can first just try out non-thread safe version and see if it helps.

    Thanks,
    Kanwal

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 01:10 PM|comet240|LINK

     ok ill try i not too smart at this  as i just set it up i figured id just have to do the php install and set up in its steps to install and bang would work as i wanna make php  guestbook work under my server side includes my .shtml files

     

    ill read the article and let u know if it worked or not

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 02:03 PM|comet240|LINK

     ah i still having problems  what i did was installed a non thread version  i got kinda confused with the article  but what i did was installed the windows installer version of 5.2.8 non thread php  and if i do the phpinfo one  it says that the thread security is now disabled but still get errors

    http://mike1.webhop.org/easy_php_guestbook.html  is the link for my guest book i wanna try but when u leave comment  it just shows coding for the php  

    http://mike1.webhop.org/test.php   is the file for ya to see my php settings  maybe u can verify what i need to do

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:09 PM|brashquido|LINK

    I doubt using the threaded version has anything to do with your issue here. The threaded version has been around for the most part of a decade and has been (and still is) used by many IIS users.

    If some PHP pages are working and others are just spitting out a whole lot of code like garble, then I'd suggest that the issue is that some of your scripts are using the short PHP tag. That is they open with <? instead of <?php which on a default install of PHP means they will not work on IIS. You can fix this by either ensuring all your PHP scripts are using the full <?php opening tag, or alternatively (and more simply) modify you php.ini so that the short_open_tag directive is set to on, save it, and recycle your app pool.

    If this doesn't work then it could also possibly have something to do with mimetype or scriptmaps, so let me know how you get on.

     

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:26 PM|comet240|LINK

     ill try the first 2 u gave me  options for  considering  i not very experienced with all this anymore my knowlege of like sql and stuff stopped in 2000 with nt5 and stuff in college  so i not very advanced so some of your terminolgy  over my head for the moment  but ill try looking in the ini file first and then or change the script

     

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:39 PM|comet240|LINK

     ok neither worked  if i just change the ini file to change the tag to ON  still shows code  if i change it back and alter the file from <? to <?php  i get either a 500 internal error or unrecongized call

     

    here is my link to me http://mike1.webhop.org/php_guestbook.php

    and if you can look at the code here is where i got the free one from it was linked off the techrepublic website

     

    http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html

     

    cuz now i getting frustrated again doh

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:45 PM|brashquido|LINK

    When you changed your php.ini file, did you check your phpinfo to ensure it was set to on? I'll see if I can download the scipt and take a look at it.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:50 PM|brashquido|LINK

     Just read on their site that the script DOES use short tags, so you will need to have the short_open_tags directive set to on for it to work. I even saw a guy (Dan Dan) in the test comment area of the site who said he got the script working on IIS after enabling this option.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:58 PM|comet240|LINK

     ok i re changed to ON and restarted the webserver and checked the phpinfo still says off

     

    and i dont know what application pool recyling means i figured u ment restart the webserver

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 04:59 PM|comet240|LINK

     ya i noticed the help area  the forum i gonna try it  but could you tell me how to recyle then or what i need to do after i change the ini file to ON

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:05 PM|brashquido|LINK

     Are you editing the correct php.ini file? According to you phpinfo the loaded php.ini file is C:\PHP\php.in. To recycle your application pool, open your IIS manager, expand the tree so you can see the item "application pools" and then select your application pool and select "recycle" from the menu on the right hand side.  

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:05 PM|comet240|LINK

     ok i found the application pool and for recyling but still doesnt change the phpinfo

    what application pool should i be using with my websites  i have tried 3  the classic net one the default app one and just the defaults the computer makes for each website i make

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:15 PM|comet240|LINK

     i dunno why it is still pointing to c:\php  when the file it suposed to be using is the C:\phpnonthread     as i do not know how change from threaded to non threaded

     so where else is the computer forcing to keep reading at C:\php  and stuff cuz now this ridiculus  it doesnt change grrr

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:18 PM|brashquido|LINK

     Which one is your site using? If you select your site and click on "basic settings" on the right you should be presented with a window which will tell you which app pool you are using...

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:22 PM|brashquido|LINK

     The php.ini location can be defined using a number of methods. The most likely is the PHPRC environment variable. Does this variable name ring any bells?

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:25 PM|comet240|LINK

     well what i did was started over

    i made a new website  thing  called guestbook and application pool was called guestbook

     and its using my default fasttocgi but its pointed to the C:\phpnonthread   location but when i update my phpinfo  it still points to c:\php  even if i do a forced refresh

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:31 PM|comet240|LINK

     PHPRC environment variable  doesnt ring a bell  basiclly all i know since i just playing around with win2008 server is

    i install win2008  then i install the cgi php etc  then i install the php software then i configure the handlers to have fasttocgi  and thats all i know  

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:37 PM|brashquido|LINK

     The problems you are experiencing now is exactly the reason why PHP upgrade advice shouldn't be handed out on a whim as it is not a trivial task for an inexpeirneced user. There are many, many places you can get caught, and it is often quite hard to troubleshoot without being infront of the console (or having an RDP session).

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:46 PM|comet240|LINK

     so i pretty much screwed then right?

    geesh  didnt think some software was so complicated 

    ya i dont work with it everyday so i dont know i just play with stuff and see if it works for me or what not 

    figures eh

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:47 PM|brashquido|LINK

    Could you open a command prompt and type "echo %PHPRC%" (without the "" obviously) and press enter? If you are returned a value of C:\php then this should be pretty easy, if not we'll need to take a look at your IIS 7 config files.
    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 05:51 PM|comet240|LINK

     it returns  as c:\PHPNonThread

     figures my luck i install both php versions like the article talks about having more then 1 type of php installed and it goes to shit lol

     so onto the config files i guess 

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 06:03 PM|comet240|LINK

     if its faster  you can add me to msn  comet424@msn.com  to help faster if possible

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 06:18 PM|brashquido|LINK

    Unfortunately I have to go in a few minutes, but I do have one hand left to play which should trump everything with any luck. Follow these steps;

    1) Open IIS manager and select your site.

    2) Click on the "handler mappings" icon and  double click on your PHP FastCGI mapping.

    3) Change the "executable" path so it reads x:\path\to\php-cgi.exe|-c x:\path\to\php.ini\

     In your case it will be something like "C:\PHPNonThread\php-cgi.exe|-c C:\PHPNonThread\"

     This -c option should have a higher prioirity than anything else, so you should see your loaded php.ini path change once you've done this and saved. You'll also need to edit a few IIS specific settings in php.ini, but just do a search for IIS and you should find them.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 06:27 PM|comet240|LINK

     ok seems to work now the code is gone and i can see cool thanks

     is it ok to add u to msn if i have other questions?  also will my other guest books i wanted to try work  there were under classic asp and stuff

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 06:30 PM|comet240|LINK

     spoke too soon  still get a either 500 internal error or unrecongized call

     

    thats under the php_guestbook.php file

     figures was almost lol

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 06:33 PM|comet240|LINK

     it works and doesnt work

    works if i do it right on the server  i get no 500 internal error  but on my client computer here i get the error

    so on the server i can post my comments on the guest book but from remote location i cant

    is there a setting that says i cant do it outside of fhe server

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 17, 2008 07:27 PM|brashquido|LINK

     Only have a few minutes. Just checked and it seems to be working up until the point of submission, which indicates a permission issue. Be sure that your IIS user account has NTFS modify permissions to the flatfile the guestbook needs to write to. Pretty sure it will be in their install instructions...

     

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 18, 2008 06:02 PM|comet240|LINK

     

    damn didnt know u replied last night but umm ill look what i have done was for all my websites the dctory that holds all the websites i have given full rights to all the users  so then it inherits it also but ill check  but i not sure what the iis user account will have ntfs modify  i dunno where id see that i have never seen that before just like full control special permision  read write excute  that kind of thing and whats a flatfile?  i know the instructions talk about setting like 777 and stuff but isnt that like unix/linux  though  from my days of doing redhat 5

     

     

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 18, 2008 06:57 PM|comet240|LINK

    ok well i added all the IUSR and IISUSRS i found to the guestbook directory and gave them full control but nothing  still the error i get but i dunno wht u mean by the nfts one and i dont know about flatfile either

  • Re: PHP Setting up problem with Windows 2008 Server

    Dec 27, 2008 08:11 PM|comet240|LINK

    hi i havent still been able to get my guest book to work  can you explai more about flat file  rights i read about it that its a text file like for guest books and stuff but i have full read/write and special rights for the ISUSR and IISURS  etc  but still problems is there something else to look for