IIS and phpbb

May 25, 2005 at 18:19:33
Specs: Win XP Home SP1, P2.8GHz Ht /512

Ok guys I know this is more towards Server q? but maybe u can help.
Ive a site that also has a forum attached,when using IIS on 2k Server I connect fine to the .html extension files, when I try and view the forum .php it starts trying to download the file, is there anyway and how can I get it to display the page etc, I know this is gona involve db writing but Ive that down and dusted.?
Any help would be great

See More: IIS and phpbb

Report •


#1
May 25, 2005 at 18:43:56

phpBB, other than a webserver requires PHP and a database server. So you should add PHP to IIS and run (install) a database server. MySQL is preferred.

Install PHP first, then see if opening a PHP File will output something other than the download prompt. Or you can open notepad and put this in:

<?php phpinfo(); ?>

and save it as info.php in your Inetpub/wwwroot/ directory and go to http://localhost/info.php on your browser. It will show you the whole settings of PHP, assuming it installed correctly.


---
Site of the Day


Report •

#2
May 25, 2005 at 19:01:21

ok stupid question then how do I install PHP into IIS?

Report •

#3
May 25, 2005 at 19:08:45

doesnt matter got it working my info.php file workles like a charm but the site Im doing(forum doesnt apear,its just a blank page

Report •

Related Solutions

#4
May 25, 2005 at 20:05:18

Now you need MySQL.

Btw, did you install PHP5? I should tell you earlier that I'm not sure if phpBB will work on PHP5. Also, if you get the windows installer of PHP5 (the smallest download), you're going to need (at least) two more additional files to make PHP able to communicate with a MySQL server.

Anyways, you can now download MySQL first and install it. From this page, get the Windows Essential one. It has a user friendly install and setup.

When done, make sure it's running. See if MySQL is added to you NT service list (and Running).

Your IIS now can parse PHP, you have a database server, but (if what I said above is true) you still need to make PHP able to communicate with MySQL.

Now before we go too far, did you really install the PHP5? And are you willing to proceed? Because some people might say that Apache is way better, or buying a small hosting space is far more efficient, etc :D

---
Site of the Day


Report •

#5
May 25, 2005 at 20:14:27

Ok I have PHP5 I got the windows installer, failry small 2mb download! Ive installed MySql already,would it be easier to communicate on messenger?and last but not least I have an already exsistant database can I download and use this?

Report •

#6
May 25, 2005 at 20:16:17

rattlehead_ie@hotmail.com

if you want to mate thank you


Report •

#7
May 25, 2005 at 23:12:59

Let's try it here so more PHP5-MySQL problem solving will comes up on google search :P If this works :P

Ok, now you need to find 3 files. Actually only 2 are needed but the other one is recommended for phpMyAdmin (a PHP script to manage MySQL).

These are the files:
- libmysql.dll
- php_mysql.dll
- php_mbstring.dll

Those files are available in PHP5's ZIP archive. Maybe it's available somewhere else but that's the most reliable source.

The libmysql.dll is located in the ZIP's top folder. The other two is in the /ext subfolder.

Now copy libmysql.dll to your C:\PHP and the other two to C:\PHP\ext (create the /ext folder).

Then you need to tell PHP where to get those files. Edit php.ini located in your C:\WINDOWS folder, find and edit these lines:

doc_root =

// change to
doc_root = "C:\Inetpub\wwwroot"

extension_dir =

// change to
extension_dir = "C:\PHP\ext"

// uncomment (remove the semicolon)
extension=php_mbstring.dll
and
extension=php_mysql.dll

You may change the path to suit your installation path but I never tried, so dunno if it'll work.

You're done editing php.ini, save the file.

Next, make C:\PHP available in your system path. I'm not sure if this is needed, so you might want to skip this at first. It's needed if you use PHP without windows installer. (without windows installer means that you need to configure IIS manually - more headache)

How to modify your system path (use uppercase, don't follow the sample in that link, assuming you didn't modify the directory name on PHP installation)

Now, restart your PC and try to create and calling this file from your browser, eg: http://localhost/connect-test.php

<?php
$link = mysql_connect('localhost', 'root', 'your_mysql_root_password_set_on_mysql_install') or die (mysql_error ());
echo 'It works, for now';
?>

If the word "it works for now" comes up, then PHP5-MySQL is set. But still, I'm not sure if phpBB will work perfectly on PHP5 :D

---
Site of the Day


Report •

#8
May 25, 2005 at 23:20:13

> last but not least I have an already
> exsistant database can I download and use
> this?

Sure, what database? if it's phpBB's then there's a backup-restore panel in the admin section.

If it's not phpBB then you need to work directly to MySQL. I suggest you put phpMyAdmin in a folder in your wwwroot if you want a GUI interface to MySQL.

---
Site of the Day


Report •

#9
May 26, 2005 at 05:39:07

That obviosuly did somehting but not everything Im getting this error now,see below link of pic
http://homepage.eircom.net/~rattlehead_ie/phperror.JPG

Report •

#10
May 26, 2005 at 10:49:21

ok that's weird, did that happen on all .php files?

The user who runs the webserver has access to C:\PHP?


---
Site of the Day


Report •

#11
May 26, 2005 at 15:16:04

laler are you around?
Ive a bit of sucess but not fully there


Report •

#12
May 26, 2005 at 16:18:10

yes what's the bit success and what's not fully there? :D

I actually tried the whole things I wrote above and it worked, I can't find any CGI timeout. I found lots info of it on google http://www.google.com/search?q=PHP5+IIS+CGI+Timeout but I dunno which one of them may be applied to you.

Btw, do you want to try to use the ISAPI one? (not CGI). You need to tune IIS manually, but I think it will be more stable.

---
Site of the Day


Report •

#13
May 26, 2005 at 17:27:34

Dude would u mind adding me to ur messenger chat there and sort this out then Ill write a whole report here about it?rattlehead_ie@hotmail.com
The sucess is that I got phpbb working with PHP4 seems to be stable but now when I try to install the phpbb forum I get an error message
Critical error could not connect to database

Report •

#14
May 26, 2005 at 21:57:24

It's done,

Rattlehead_ie2's latest post is I think mostly because the PHP5 is still unable to make a MySQL connection.

I'll summarize:

Make sure you edit the php.ini correctly as in Response Number 7.

Make sure the referred dlls are all available and in the correct place (Response Number 7).

The script in Response Number 7 is used to try to open a connection. It must output "It works, for now" when you call the script from browser. Other than that, if it "think" too long, blank page, etc, then there's something wrong.

MySQL is not the same with msql. So look for a table with mysql as the title, in phpinfo. No mysql table, no mysql support.

Make sure you're editing the right php.ini. FAQ on php.net says it's fine to put php.ini in C:\php, so all PHP files are in a single folder, but apparently it's not in some cases. Look for the correct location on phpinfo's "Configuration File (php.ini) Path".

I think that's all, I don't remember correctly though :P Maybe Rattlehead_ie2 will add something.

Btw he finally install the PHP5 ISAPI, not CGI, but I did install PHP5 CGI (with easy installer and IIS auto config), put the missing files, edit things, and it works.

ISAPI is better but you can't have a friendly IIS autoconfig, you need to configure manually.


---
Site of the Day


Report •

#15
May 28, 2005 at 06:18:30

No I dont thing there was anything else,the setting up of the PHP5 and SQL was the major difficulty. We did a bit of troubleshooting in the process which included windows update,please make sure your running the most up-to-date version of your server software inc IE,this may or may not have contributed to the problems!If you have tried to do the same as I did, my best advice would be to after finding this thread,start from scratch the advice given by laler is clear and precise!
The versions Ive usered here were PHP5,MySQL v4.1 and PHPbb.
Now thanks to laler these files will be on my ftp website soon enough, for others to learn from
Again big thank you to laler

Report •

#16
May 29, 2005 at 09:56:49

Rattlehead,

I've got a simple solution for you if you want it. Download my free MiniApache web server and install it as per the instructions in the manual (see the website).

MiniApache is a minimalist version of Apache (the world's number one web server) which already has PHP 5 with it. No configuration required. The added advantage of PHP 5 is the fact that it supports SQLite databasing. SQLite is like a mini version of MySQL. Here's a quote from the SQLite website:

<blockquote>SQLite usually will work great as the database engine for low to medium traffic websites (which is to say, 99.9% of all websites). The amount of web traffic that SQLite can handle depends, of course, on how heavily the website uses its database. Generally speaking, any site that gets fewer than a 100000 hits/day should work fine with SQLite. The 100000 hits/day figure is a conservative estimate, not a hard upper bound. SQLite has been demonstrated to work with 10 times that amount of traffic.</blockquote>

So, basically, SQLite is more than likely suited to the type of forum you want to run. The best forum system, that I believe is far superior to phpBB, is PunBB. It's very minimal-looking (although with a bit of effort you can make it look however you want), produces small, fast and accessible code and (more importantly, perhaps) runs from an SQLite database.

After installing MiniApache, download PunBB and extract it to <span style="font-family: monospace;">c:\www\htdocs\localhost\public_html\</span>. Then visit http://127.0.0.1/install.php and follow the instructions. I personally use MiniApache with PunBB (running on an SQLite datbase) daily — it's an excellent combination.


James

Free PC Help forums
MiniApache


Report •

#17
May 29, 2005 at 09:58:23

Oh balls, I forgot to check whether <blockquote> and <span> were supported. Damn old-fashioned WWWBoard. (Yay for PunBB!)

Report •


Ask Question