Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2006
    Posts
    9
    Plugin Contributions
    0

    Default auto-detect PHP filename extensions???

    Hi Guys,

    I was hoping this process would be easy, but not so far.

    http://trenthaines.myphotos.cc/Shop/zc_install
    IIS5 / PHP5 / mySQL 5 / firefox browser

    1. I just get a file list so the index.php won't auto start when I bring up the page. I have set the windows file association to point PHP files to php-win.exe and php-cgi.exe. How can I get the index page to autostart.

    2. From #1 above, if I set default pages in IIS admonistrator, the page starts, but asks me where to run an octet-stream???

    3. when I click on index.php in the file list, a small black window flashes before my eyes......I could be imagining this after 2 days of hacking

    4. I have installed mySQL, but have no idea even if I need it or how to set it up.

    my php.ini file is at http://trenthaines.myphotos.cc/Shop/php-files/php.ini

    Please help....Trent

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: auto-detect PHP filename extensions???

    http://www.zen-cart.com/archived_con...documentation/

    There are a couple PDFs for installing on Windows.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: auto-detect PHP filename extensions???

    Your problem is your configuration of IIS as it relates to processing .php files.

    You need to edit your default page settings to include .php files.

    Instructions for doing that or interpreting problems as a result ... would have to be found on the PHP website or the Microsoft website. ...unless someone around here has a more detailed answer.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: auto-detect PHP filename extensions???

    In your httpd.conf file add this line, or perhaps the line exists and just needs uncommenting:

    AddType application/x-httpd-php .php .php4 .php3 .phtml

    Vger

  5. #5
    Join Date
    Jun 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: auto-detect PHP filename extensions???

    OK, I have added index.php to the documents part of IIS and now I get this:

    <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
    means that a page will only be served up if the REDIRECT_STATUS CGI variable is
    set, e.g. via an Apache Action directive.</p>
    <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
    <p>For more information about changing this behaviour or re-enabling this webserver,
    consult the installation file that came with this distribution, or visit
    <a href="http://php.net/install.windows">the manual page</a>.</p>

    http://trenthaines.myphotos.cc/shop/zc_install/

    Thanks for the ongoing tollerence....

  6. #6
    Join Date
    Jun 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: auto-detect PHP filename extensions???

    I have found something in php.ini and not too sure what the setting should be....

    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root = "C:\Inetpub\wwwroot"


    My ph.ini file can be found at http://trenthaines.myphotos.cc/shop/php-files/

    Thanks,

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: auto-detect PHP filename extensions???

    Okay, further on down from that piece of code you should find this:

    cgi.force_redirect = 1

    change it to:

    cgi.force_redirect = 0

    Vger

  8. #8
    Join Date
    Jun 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: auto-detect PHP filename extensions???

    I read all these posts and everyone feels embarrased at the silly mistakes...now it's my turn.

    thanks for the help. I now have the Admin window up and can finally start.

    THANKS!!!!!

 

 

Similar Threads

  1. v138a PHP Server Extensions
    By fotofx in forum General Questions
    Replies: 5
    Last Post: 2 Feb 2013, 05:44 AM
  2. Auto-detect when to use HTML or text formatted e-mails?
    By naifwonder in forum Managing Customers and Orders
    Replies: 3
    Last Post: 20 May 2011, 04:31 AM
  3. Setting up server to auto detect PHP file name?
    By sandswillis in forum Installing on a Mac Server
    Replies: 10
    Last Post: 25 Feb 2011, 01:48 AM
  4. Replies: 0
    Last Post: 30 Jul 2010, 03:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR