|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
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> |
|
|
#2 |
|
Just tryin' to help
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 |
|
|
|
|
#3 |
|
foo
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 |
|
|
|
|
#4 |
|
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. |
|
|
|
|
#5 |
|
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
|
|
|
#6 |
|
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. |
|
|
#7 |
|
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. |
|
|
#8 |
|
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. |
![]() |
| Thread Tools | |
|
|