phpBB IIS Setup |
Description: How To setup a full IIS web server with everything you need to run phpBB |
Author: DanielT |
Date: Mon Jan 27, 2003 5:31 pm |
Type: Tutorial |
Keywords: IIS, install, mysql, php, windows, xp |
Category: Installing/upgrading/converting |
|
***************************************************
*PHPBB IIS Setup (aka How to turn your pc in *
*to a phpbb webserver) *
*Using: *
*MYSQl 3.23.52 *
*PHP 4.3.0 *
*PHPBB 2.0.4 *
*IIS 5 *
*Windows XP Pro *
*(has been tested on both win2k and win xp) *
*Assuming: *
*U know a SMTP server address *
*C:\ is your windows installation drive *
*D:\ is your cd drive *
***************************************************
Plz email me if you spot any errors thanks commnet@fsmail.net
READ END NOTE BEFORE PROCEDING WITH THESE INSTRUCTIONS
1. click start > control panel >
(if you got control panel in 'category mode')
> Performance and Maintenance > Administrative Tools > and look for 'Internet information Services'
If it is there then jump to step 3.
If not then jump to next step
(If you got control panel in 'classic view' mode>
> Administrative Tools > and look for 'Internet information Services'
If it is there then jump to step 3.
If not then jump to next step
2. Ok so if you?re reading this then you haven?t got Internet information services installed on your pc.
Insert your windows xp pro cd in to your drive (i've probably just lost have my readers....go find it now!
Beg your mates for a copy ...find it!)
Let it autorun (if you haven?t got autorun enabled then: start > run >type: D:\SETUP.exe)
Click 'Install optional windows components'
Now a small box will popup saying 'Please Wait...' Do what it says
That box will disappear ... it look like nothing is happening just wait a bit
A box titled 'Windows Component Wizard' will appear
Look down the list until you find 'Internet Information Services'
Put a tick (click the small square box) in the box next to it
(Don?t mess around with anything ... unless u know what your doing!)
Click next
Let it set everything up
When it?s done that press finish
Now it *might* ask you to restart ...so bookmark this page, save all your work and restart
(I just lost another half of my readers!)
After you restarted (or not if it didn?t ask you!) go to next step
3. Ok now we need to install php 4.3.0
Goto http://www.php.net/downloads.php
And download PHP 4.3.0 installer (under the heading windows binaries)
Run the install exe (should be called php-4.3.0-installer and should be in the directory you installed it in!)
A little box will popup saying something like starting wise install ... just wait till that goes away
Another box should pop up titled 'Welcome' Press the next button
Ok now a License Agreement should popup:
If you Agree press 'I agree' (amazingly!)
If not press 'Cancel' and press the little X (cross) it the top right hand corner of this
Windows
If you did agree:
Now it will ask you for installation type just leave it as standard and press next (unless you want to mess around with it and select advanced)
Now it will ask you for a install destination leave it as it is (it should read C:\PHP) (BTW i am assuming that you hard disk with your windows install is drive C)
Ok the next bits a bit hard .. it asks you for the address of your SMTP server (BTW your going to need this later on it the forum install so find out now... ask your isp for there?s also ask them do you need a password & username for it (because we will need them later!)
If your ISP (Internet Service Provider) can?t help you with this just leave it set to localhost for now
In the next box it asks you for a 'from' address ... this is for when you send an e-mail from the SMTP server if you have an e-mail account already like msn aol freeserve ect. Then put that e-mail address in there or optionally leave it as it is (but later on it the forum setup we will be asked for this again!)Ok after you done that press next
And leave the next setting set as 'Microsoft IIS 4 or higher' and press next
And press next again
Let it install that for you
Ok now a box will popup titled 'IIS Script Node Selection' press the select all button and press next
A box will now popup saying php 4.3.0 has been installed press the ok button
4. Now let?s install mysql
Goto http://www.mysql.com/downloads/download.php?file=Downloads/MySQL-3.23/mysql-3.23.52-win.zip
Select a country to download it from
Select either the HTTP or FTP download which ever you want (if both are there!..Just pick one that is there)
And download it (it?s about 12.5mb!!! could take a while)
Unzip the files (the zip file should be called mysql-3.23.52-win (not to C:\mysql where C: is you windows installation drive)
Run the setup.exe
At the first screen press next
And next at the next screen
And next again
And next again leaving the setting set to typical
Let that install
OK now that installed let get it up and running
goto start > run >type in: %systemdrive%\mysql\bin\
Find the exe called 'winmysqladmin'
Right click on it and select 'Create Shortcut'
Now a new icon called 'Shortcut to winmysqladmin' will appear
Right click on that icon and cut
Now go to your desktop and right click in a blank (no icon, active desktop items ect.) and select paste
No right click on the icon your just pasted and select rename and name it MySqlAdmin
Then right click it and select copy
Now goto start > run > type in: %userprofile%\Start Menu\Programs\Startup
Now when the new windows opens right click in a blank area and select paste
Ok now next time you start up your pc mysql will start automatically
Ok now we need to setup Mysql.... close all the windows i have told you to open (DONT CLOSE THIS ONE!)
Go to your desktop and double click on the MySqlAdmin icon (which we just copied there!)
When it starts up it will ask you for a Username & Password put the following:
Username: sa
Password: phpbb (you can change this is you want to just make sure you no what it is for a bit later)
When you have done that and press ok you will see a big window titled 'WinMySQLAdmin 1.3' near the top of that window there is a list of tabs (Environment, start check, ect.) click on the 'databases' one
Now you should see a list of databases (usually there are two already there called mysql and test)
Right click in the white area underneath them two databases and press 'Create Database'
A small box will popup titled 'Adding Database'
It the box type in: phpbb
And press create
Now at the top of that window (where it says 'Right Click for Menu') right click there and select 'hide me'
Now you might need to take a note of this on your start menu on the right hand side you will see a set of traffic lights (if you cant then either: 1. press the two little arrows on the start menu (<<) and then you should see it 2. Run MySqlAdmin again of your desk top
5. Ok Enter the phpbb2 Files
Goto http://www.phpbb.com/downloads.php
Download phpBB 2.0.4 [full package]
Extract the files to:
C:\inetpub\wwwroot\
Now that will place a folder in the C:\intepub\wwwroot\ folder called phpbb2 that where all the forum data is stored
If you want you could rename the folder to forum for ease of use (I did ... its a lot easier for the users and you to remember)
6. Time to install
Firstly we need to setup the IIS (Internet Information Services, The Web Server)
Click start > control panel >
(If you got control panel in 'category mode')
> Performance and Maintenance > Administrative Tools > Internet information Services
(If you got control panel in 'classic view' mode>
> Administrative Tools > Internet information Services
Ok now a window titled 'Internet information Services' will appear
On the left hand side of the window you will see a box (white background) containing the following:
Internet Information Services
|
+-<pc name>(Local Computer)
(Where <pc name> is the name of your pc if you don?t know what it is then:
A. its right there
B. you can do this:
Start > run > type in: cmd
A Black (dos) box appear
Type in : echo %COMPUTERNAME%
Hit Enter
And your Computer name will be displayed
Double click on the item that says '<pc name> (local computer)'
Now you *should* (depending on the setting of your machine) see something that?s looks like this:
Internet Information Services
|
+-<pc name>(Local Computer)
|
+-Web Sites
+-Default SMTP Virtual Server
Double click on the 'Web Sites' item
Now you should see something like this
Internet Information Services
|
+-<pc name>(Local Computer)
|
+-Web Sites
|
+-Default Web Site
+-Default SMTP Virtual Server
If you see this
Internet Information Services
|
+-<pc name>(Local Computer)
|
+-Web Sites
|
+-Default Web Site (Stopped)
+-Default SMTP Virtual Server
Then right click on the item 'Default Web Site (Stopped)' and select start
When it looks like this
Internet Information Services
|
+-<pc name>(Local Computer)
|
+-Web Sites
|
+-Default Web Site
+-Default SMTP Virtual Server
Right Click on the 'Default Web Site' and select properties
You will now be faced with a box titled 'Default Web Site Properties' you will see a list of tabs (Web site, Home Directory, ect.)
Select the 'Documents' tab
Now Press the add Button
A box will appear type index.php in to that box and press ok and then press ok on the bigger box titled 'Default Web Site Properties' then close the windows titled 'Internet Information Services'
This is a good time to note that if you ever what to 'turn off' your web server then right click on the
'Default Web Site' item and click stop (and click start when you need to start it again)
Now open up your web browser (Internet Explore, AOL, ect.) and type in the address bar:
A. if you left the folder name as phpbb2
http://localhost/phpbb2/install.php
B. If you renamed that folder then
http://localhost/<folder>/install.php
(Where <folder> is what ever you renamed the phpbb2 folder it to
Now you Should see the PHPBB2 installation page (if not then check you didn?t spell the address wrong and check the folder name!, if that doesn?t work then it has to be your fire wall the stopping you accessing the site, so you will have to change some setting to let you/other people access port 80, zonealarm usually does this its self.... I use Norton personal firewall 2002 I know on that you have to setup a rule to let you and other people connect through port 80, it would be impossible for me to tell you how to change the settings on your firewall because there are thousands of different models and versions so that bit is up to you ..... I will include instructions on how *I* set my settings up to let connection through port 80 using Norton personal firewall 2002 ... just for anyone who has that software
Anyway you should now see a Webpage with a heading that says:
Welcome to phpBB 2 Installation
With a big list of setting for you to set
I will give you the standard settings which usually work (but again the setting my change depending on your pc's setup)
+ Default board language: English
+ Database Type: MySQL 3.x
+ Choose your installation method: Install
+ Database Server Hostname / DSN: Localhost
+ Your Database Name: phpbb
+ Database Username: sa
+ Database Password: phpbb(unless you changed it in step 4!)
+ Prefix for tables in database: phpbb_
+ Admin Email Address: <Your e-mail> *this will be shown on the forum* as a contact address
+ Domain Name: localhost
+ Server Port: 80
+ Script path: either /phpbb2 or /<foldername> foldername being the folder which stores the forum data
+ Administrator Username: Administrator
+ Administrator Password: <make up a password use numbers and letters! eg. Don?t type food, type f0od or f00d or don?t type smell type 5me11 ect.>
+ Administrator Password [ Confirm ]: The password you made up above^
Now click (ONCE!) the start install button
Now you might get the following error: (doesn?t matter if you don?t your just lucky in the case!)
Your config file is un-writeable at present. A copy of the config file will be downloaded to your when you click the button below. You should upload this file to the same directory as phpBB 2. Once this is done you should log in using the administrator name and password you provided on the previous form and visit the admin Control centre (a link will appear at the bottom of each screen once logged in) to check the general configuration. Thank you for choosing phpBB 2.
If you get that (I always do... I just because of read write rights settings that where automatically setup during the install of internet Information Services) then click/select the small round box next to the setting:
Just send the file to me and I'll ftp it manually
And press Download Config
This file open up a download box press the save button
And then it will ask you where you want to save it ... save it here:
C:\inetpub\wwwroot\<forumfolder>\ (<forumfolder> should be phpbb2 unless you renamed it earlier!)
It will say file already exists do you wish to over right click yes
Now type in to the address bar of your browser (Internet Explore, AOL ect.)
http://localhost/<forumfolder>/ (<forumfolder> should be phpbb2 unless you renamed it earlier!)
Now you will see your forum (if not you messed it up! check everything that you just did!)
7. Forum Administration and Forum Config Settings
Ok when you see your forum you can see the text:
yourdomain.com
A _little_ text to describe your forum
You don?t want that do you?! Let change it (and a few other settings to!!!!!)
On the page with that( ^^^ ) text on you will see at the bottom a login box it asks for the following:
User: put: Administrator
Password: put: the password you made up during the last install bit (PHPBB install step 6)
Log me on automatically each visit: DONT PUT A TICK IN THAT BOX... it automatically logs you in each time you open the page ... not very good for testing!
After you done that click login
now you will (if you typed your password right ect.) see a page which looks like the page we have just been on but if you look at the bottom of the page you will see a link that says:
Go to Administration Panel
Click that
That will bring you to a new page with a small column on the left and on the right there is a big panel with some stats on it ... ignore them for now.
On the left hand side under the heading 'General Admin' there is a link called Configuration click that link
Now it the right hand side panel you should see a page titled 'General Configuration' these are basically a list of all the settings for *your* web site I will quickly run through them all with the standard answers:
Domain Name : Localhost
Server Port : 80
Script path : /<forumfolder> (<forumfolder> should be phpbb2 unless you renamed it earlier!)
Site name : What ever you want to call your site
Site description: a very short description of you site eg. My Sites Forum!!
Disable board : No
Enable account activation : User (BTW you will need to find out your ISP SMTP address .. or some SMTP address you can use
User email via board: Disabled (other wise people can e-mail bomb and spam form your forum!)
Flood Interval: 15
Topics Per Page : 50
Posts Per Page : 15
Posts for Popular Threshold : 25
Default Style : subSilver
Override user style : No
Default Language : English
Date Format : D M d, Y g:i a (don?t worry about that just make sure it says that and it will work!)
System Time zone: Your time zone (select form list)
Enable GZip Compression : No
Enable Forum Pruning : No
Cookie domain : Localhost
Cookie name : phpbb2mysql
Cookie path : /
Cookie secure : Disabled
Session length [ seconds ] : 3600
Private Messaging : Enabled
Max posts in Inbox : 50
Max posts in Sentbox : 25
Max posts in Savebox : 50
Max number of poll options : 10
Allow HTML : No
Allowed HTML tags : b,i,u,pre
Allow BBCode : Yes
Allow Smilies : Yes
Smilies Storage Path : images/smiles
Allow Signatures : Yes
Maximum signature length : 255
Allow Username changes : No
Enable gallery avatars : Yes
Enable remote avatars : Yes
Enable avatar uploading : Yes or No (depending if it works for you and depending on the free space you have.)
Maximum Avatar File Size : 6144
Maximum Avatar Dimensions : 80 x 80
Avatar Storage Path : images/avatars
Avatar Gallery Path : images/avatars/gallery
COPPA Fax Number : If you know what these are and you got the information put it in if not leave them blank
COPPA Mailing Address : Ditto
Admin Email Address : the address you put in during the phpbb2 install
Email Signature : A little message to put on the end of all e-mail from this board
THIS IS WHERE YOU NEED THE SMTP INFORMATION YOU NEED TO FIND THIS OUT OR YOUR FORUM WILL NOT WORK
ASK YOUR ISP FOR THE SMTP ADDRESS OR SEARCH ON THE NET FOR A FREE SMTP SERVER!
Use SMTP Server for email : Yes
SMTP Server Address : <address of SMTP server>
SMTP Username : It might need a username it usaly doesnt though
SMTP Password : It might need a password it usaly doesnt though (the smtp server owner will tell you)
Ok that?s mainly it your forum is ready
Only one small problem!!! Only you can see it at the moment!
There are two ways to get around this:
1/ you give out your ip address so users goto http://<your ip/<forumfolder>
To get to your web site which is a pain for the users and you are broadcasting you ip address around which can be dangerous if hackers get hold off it!
If you don?t care and u want to do this then you might not know what you ip address is (you will need it for the next option anyway)
To find it out do this
start > run > type in: cmd a black box will appear type in to that ipconfig and hit enter and your ip address will be shown
2/ (the way I suggest!)
goto https://members.dyndns.org/policy.shtml
Agree to the agreement if you do agree to the agreement ()
If not you will have to settle for the other option listed above this one
If you agreed you will see:
The following boxes:
Username: can be anything ....doesn?t have to be your web site name...
Email address: you e-mail address make sure its right they need to send you some information on how to activate you account
password: make up a password .
Click Create Account!
After you have done that it will say:
Account Created
You *Should* (read about the time delay on that page.... I never had any probs tho) have got an e-mail from them by now
Go and check!
The e-mail should contain the following things:
Your User account '<ACCOUNT NAME>' has been created
ect.
ect.
blah
blah
Blah
To confirm your account, please go to the address below:
*then there should be a link here click it ...that will activate your account!*
That will take you to a page which says:
Account '<ACCOUNT NAME> Confirmed
The account "<ACCOUNT NAME>" has been confirmed. You can now login and start using your account
Click the login link
And box will popup type your user name in to it and then your password
Then you will get a page saying:
Welcome <ACCOUNT NAME>
On the left hand side on the page you will see this:
Dynamic DNS
Static DNS
WebHop
Click Dynamic DNS
Now on the left hand side you will see:
Dynamic DNS
Add New Host
Static DNS
WebHop
Click Add New Host
Ok now you get a form you have to fill in lets run through it
Hostname: your web site name and pick an ending out of the box next to it
IP address: You need to put you ip in here
(If you don?t know what it is do this
Start > run > type in: cmd a black box will appear type in to that ipconfig and hit enter and your ip address will be shown)
Enable Wildcard: Ignore that
Mail Exchanger: Ignore that
Then click Add host
No you should be able to type in to your browser
http://<the host name you just picked>/<forumfolder>
BTW don?t put www. Because that will not work
The End
Your Forum is done the rest is up to you...
When you finished your site e-mail me commnet@fsmail.net
********Norton Personal Firewall Setup********
Open up Norton firewall
Click Personal firewall
Click Internet Access Control
Click Configure
Then select System-Wide Settings
Then when the box pops up press add
Then press next (leaving the setting set to Permit)
Then select connections from other computers
Press next
Press next again
Select 'Only the types of communications or ports listed below'
And type in 80
And press next
Select how YOU want to track the rule
And name it
And you?re done!
End Note:
When you follow these instructions do it at your *own risk*!
I accept *no* responsibility for *your* actions!
And any damage caused by you following these instructions
e-mail me with mistakes
And you may PM me (this site only)
Daniel,
http://www.commnet.mine.nu
http://www.commnet.homelinux.com
*****IIS Lockdown + UrlScan**
Ok, IIS lockdown + urlSac are addon tools which will help prevent you getting hacked,
firstly
go to
http://www.microsoft.com/Downloads/Release.asp?ReleaseID=33961
and download the exe file and run it a let it work away making your IIS server more secure
then;
goto
http://www.microsoft.com/downloads/release.asp?ReleaseID=32571&area=search&ordinal=1
and download and run it and let it do its magic
then goto;
http://www.microsoft.com/downloads/release.asp?ReleaseID=37857&area=search&ordinal=2
download and run the exe
Sorry i cant give VERY detailed instructions on that but i already have these patches install on my server so i cant over write the files
But i remeber that it is just a case of pressing the next button (like every ms product)
************* |
|
|