?
Solved

Installing php and getting php to work with with IIS 6

Posted on 2008-10-23
9
Medium Priority
?
1,185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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