PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > PHP
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 7-9-04, 05:11 PM   #1
afamative
Guest
 
Posts: n/a
How can I configure a web server to run php?

Hello,

I downloaded and installed php using the installer that came with the software (Windows installation) and everything went fine.

The problem I have now is that files with th php extensions run on the server but everything comes back to the browser instead of just interpreting the php code.

The php manual suggests one configures the web server properly and this is where I have just taken a trip to the moon. I have tried using the properties tab on the IIS 5.1 to make the directory and even the actual file have write permissions yet nothing positive.

Will appreciate any help rendered. I will oblige any request for additional information as I can't really see which info is important.

A copy of what I keep getting from running this first.php is

<html>
<head>
<title>Example</title>
</head>
<body>

<?php
echo "Hi, I'm a PHP script!";
?>

</body>
</html>
 
Old 7-9-04, 06:17 PM   #2
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
Did you install a server (like Apache) or just php? You need to be running a local server.

edit >> oops, by bad, reading again I see you are running IIS - sorry.
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 7-9-04, 06:46 PM   #3
Pig
foo
 
Pig's Avatar
 
Join Date: Jan 2003
Location: Seattle-ish
Posts: 2,597
Reputation: 106
Don't know anything about IIS. Also, PHP has to be installed differently on IIS than it is on Apache. I would ask in an IIS forum.
__________________
webhead.cc
Pig is offline  
Old 7-9-04, 08:00 PM   #4
extras
on hiatus
 
Join Date: Mar 2004
Location: Canada
Posts: 5,815
Reputation: 314
I think you had better dump IIS, and install Apache.
There are several kind of Apache available for Windows.

Then, thing you learn will be useful here.
extras is offline  
Old 7-9-04, 10:17 PM   #5
Destroyer
Guest
 
Posts: n/a
to view the files you have to open IIS and set the folder with your php to a website or put the files in C:\INETPUB\wwroot then go to http://localhost/filename or if its a seperate website like i said at first it would be http://localhost/folder
 
Old 7-10-04, 01:48 AM   #6
ElectricInkPen
Guest
 
Posts: n/a
Setting up a PHP Server: one solution

One of the quickest and easiest ways to set up a Windows box as a PHP enabled web server is to use an all-in-one Windows Apache MySQL PHP, or WAMP distribution. My personal favorite is Apache2Triad which is an open source project hosted on SourceForge.

It comes with a simple installer, good documentation, and a load of features.

It includes:
Apache 2, PHP, MySQL, PHPMyAdmin, a mail server, mail client, ftp server, and several other useful services.

It's definitely worth checking out.
 
Old 7-10-04, 05:05 PM   #7
afamative
Guest
 
Posts: n/a
All,

Thanks a lot for all the responses thus far.

I am in the process of getting Apache2Triad. It seems Microsoft is getting away with so many things. All the hype and advertisement seems to be helping Microsoft.

I can't understand why I am having this problem, everything has been done as directed, even the php -i call using the command prompt confirmed that everything is fine.

Thanks once again.
 
Old 7-12-04, 05:11 PM   #8
afamative
Guest
 
Posts: n/a
I finally suceeded in getting php work on my laptop. I did download and installed mysql and perl successfully. All work will be for developing and testing. Won't depend on IIS for any production work though.

Thanks a lot to all those who contributed/adviced on this issue.
 
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:41 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.