Solved

Installing php and getting php to work with with IIS 6

Posted on 2008-10-23
9
1,178 Views
Last Modified: 2013-12-13
Hi all,

I am working on a local network and trying to create a phpbb forum that other people at my work can access over the local network. Normally they would be able to use my virtual directory to created in iis to view my web pages but iss doesn't support php by default (im a aps.net person by nature not php). So I downloaded and installed easy php and that's all working fine locally but no one can access the site so I'm guessing I have to make php work with iss so that can see it (don't know why they can't access the site when easy php is running and only sites running under the iss manager) I spent days trying to understand and follow various Google tutorials and none of which work...mainly because im not running windows 2003 sever im only running standard xp with ii6 (and ii 5 and 7 installed but iis 7 i cant work out how to set up so stick with 6) some of the problem i have had installing php which may make more sense to you than me are, i don't seam to have a metabase.xml to add the php extensions too anywhere on my system, or web extensions folder in my iss 6 manager. I tryed altering my php.ini file and adding as many dll's to the php ext flder as possible. At one point i downloaded and installed php 5 install that's meant to configure iss for you and it did work but i got cgi time out issues so i spent ages trying to work that out. When i fixed that i managed to get a hello world php test page to work but my php forums didn't so im guessing something went wrong maybe because the phpbb uses php 6 ? any way i tried updating my php 5 to 6 but still never worked with phpbb so i rolled it all back to start again with your help. I got easy php working running iis 6 and my phpbb forums are working under the local server of easy php ...i just want people to be able to either be able to access the site via the easy php sever or my iss manager. bare in mind im new to all this so keep it simple

thanks
0
Comment
Question by:Rawdon Hume
9 Comments
 
LVL 82

Expert Comment

by:hielo
ID: 22786503
Refer to:
http://www.videotutorialzone.com/web-technologies/php/installing-php5-on-windows-2003-and-iis6.html

Make sure you use the zip installer, as instructed in the video.
0
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 22786616
Simple and sobur ; http://www.visualwin.com/php/
0
 
LVL 2

Author Comment

by:Rawdon Hume
ID: 22786763
yes but both of those mention using Web Service Extensions in iis which i dont have !?
0
 
LVL 2

Author Comment

by:Rawdon Hume
ID: 22786784
Sorry ill be more clear not only do i not have any  Web Service Extensions  folder in iis 6 but im not running windows 2003 sever which they are both aimed at im using just standard xp =0S
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 3

Expert Comment

by:raminhos
ID: 22791974
can u access your apache instalation in your machine ? http://localhost
0
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 22793242
I would recommend using Apache if you are using an XP machine to host mainly because IIS on XP machines only allows a limited amount of viewers at a time.

Here is the link to download it:
http://httpd.apache.org/download.cgi

From there I would then go to PHP and download the PHP installer.
http://www.php.net/downloads.php#v5

You will need to uninstall IIS because they will confict if you dont.

Install Apache and then PHP. Both installs are fairly straight forward but make sure when PHP asks what web server you are using you select Apache 2.2 and then make sure you select the MySQL extension when prompted.

From there you will need to access your http.conf file which is the config file for Apache...you can find it in the apache install folder. Go into it and past the following lines inside the conf file.

LoadModule php5_module "c:/program files/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/program files/php"

That will allow Apache to access PHP. Once you have done that reboot your computer and when you click apache at the bottom you will see something similar to attachment 1.

That should allow you to run PHP on apache and I would HIGHLY recommend it over IIS on an XP machine. Here is a link to the documentation on Apache http://httpd.apache.org/docs/2.2/ ...just remember that a mass majority (i think about 80%) of the web is run off of apache servers.
apache.jpg
0
 
LVL 2

Author Comment

by:Rawdon Hume
ID: 22794545
If i run apache i get the index page in the apache sever that works when i  goto http://localhost/ but i cant load php pages as just says The website cannot display the page HTTP 500  Most likely causes:The website is under maintenance. The website has a programming error.   But other people on the network can see the index page
if i run easy php i can run my php files fine but no one else can access the sever although that can ping it
i need to make php work with iis as i do asp.net so have to use iis its not really a choice sorry so i cant uninstall it as i have to have it ( i got it running on prot 81 so as not to conflit with the php severs)...can i not get easy php to be accessible lick apache or get ideally iis to work with php so i can just managew and run everything though iis as apache and easy php are very good they dont work with asp.net and dont offer alot of functionality i need that i get with iss manager
0
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 22798359
If you need ASP.NET on apache check out this link: http://anmar.eu.org/mono/mod_mono/
0
 
LVL 2

Accepted Solution

by:
Rawdon Hume earned 0 total points
ID: 22928694

personally much rather iss as allows me to run edit & continue while debugging and can debug multiple languages like classic asp, asp.net, JavaScript and  vbscript in the end i worked out to make easy php work i had to alter the httpd.conf in the C:\Program Files\EasyPHP 2.0b1\conf_files
for any one who like to know find Listen 127.0.0.1:80 and change to your pc ipaddress
e.g 10.10.1.41:80 will appear more than once in the file so change all occurrences
this wont make it work with iss but should make it accessible over a network. At least then you can run iss on a diffrnet port to easy php and run them side by side  
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now