Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Completely lost with set up of php

Status
Not open for further replies.

fawkes

Technical User
Sep 12, 2003
343
GB
OK, this is what I've done.

I've downloaded php-4.4.0-Win32.zip from
I extracted the files to C:\ and renamed the folder c:\php

I copied php.ini-recommended to c:\windows, renamed it php.ini and edited the following:

doc_root = "c:\inetpub\
cgi.force_redirect = 0

(I did notice that cgi.force_redirect = 0 started with a semi-colon)

In the IIS manager I accessed the properties of the Default Web Site and in the home directory mapped a path to C:\php\php.exe with the .php extension.

I've created a test page

Code:
<html>
     <head>
     <title>My First page in PHP</title>
     </head>
     <body>
     
     <?php print "<p>Hello world</p>"; ?>
     
     </body>
</html>

I'm using PHP Designer 2005 and the debug shows the html code fine but I can't see it in the localhost browser.

If I call from my browser (either firefox or IE6) I get a connection refused when connecting to localhost, but I can connect to html files in the same folder using
What am I doing wrong?
 
Try using command.com (ms dos prompt) and get yourself to the php folder. Now type in php.exe -i. If php is able to run properly then it'll spit out a bunch of html into the ms dos prompt.
 
Tried that and it spat out the html in the command window, what does this lead me to now?
 
It works now, here's what I did.

As per the install.txt file;

I copied the files from the c:/php/dll and c:/php/sapi folders to the main folder c:/php

I set the following in the ini file

extension_dir = "c:/php/extensions"

cgi.redirect_status_env = ENV_VAR_NAME

Now it works, I don't why, it just does [ponder][thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top