Zen Cart Logo
Forums / Installing on a Windows Server / auto-detect PHP filename extensions???

auto-detect PHP filename extensions???

Locked

Views: 8,040

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Jun 2006, 8:33 PM
#1
tghaines avatar

tghaines

New Zenner

Join Date:
Jun 2006
Posts:
9
Plugin Contributions:
0

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 :wacko:

  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

8 Jun 2006, 10:27 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

8 Jun 2006, 10:58 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

8 Jun 2006, 11:32 PM
#5
tghaines avatar

tghaines

New Zenner

Join Date:
Jun 2006
Posts:
9
Plugin Contributions:
0

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....

9 Jun 2006, 1:01 AM
#6
tghaines avatar

tghaines

New Zenner

Join Date:
Jun 2006
Posts:
9
Plugin Contributions:
0

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,

9 Jun 2006, 8:56 AM
#7
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

9 Jun 2006, 10:38 AM
#8
tghaines avatar

tghaines

New Zenner

Join Date:
Jun 2006
Posts:
9
Plugin Contributions:
0

Re: auto-detect PHP filename extensions???

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

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

THANKS!!!!!