BetaONE will rise again!


Reply
  #1  
Old 13th Jun 02, 08:06 PM
Sephiroth Sephiroth is offline
BetaONE Supporter
 
Join Date: Jul 2001
Posts: 1,979
Sephiroth is an unknown quantity at this point
Send a message via MSN to Sephiroth
I've had several people lately ask me how to install a web server on windows, so here goes

Using IIS is definatly the easiest way to do it. Just install IIS from the Windows cd and most of the configuration can be done automatically. IIS already ships with ASP support, and Perl, PHP, and MySQL is fairly painless.

How to install PHP on IIS.

The newest version of PHP at the time I write this is 4.2.1 . You can download the PHP binary in a Windows installer format from here: [link]http://www.php.net/distributions/php-4.2.1-installer.exe[/link]
After IIS is installed and you know that it is working by going to [link]http://localhost/[/link] , run the installer for PHP, choose a standard installation, and it will give you a choice of web servers. Choose IIS 4.0 or higher and the configuration will be done automatically. To test and make sure that it works, open c:inetpubwwwroot and make a new file named phpinfo.php with this as it's contents. <?php phpinfo(); ?> and call it from your browser by going to [link]http://localhost/phpinfo.php[/link] . If it works you should see a page in your browser with how PHP is configured on your system. If it didn't work and you're asked to save the file, there are two things that you can try. The first thing is to restart IIS and see if it works, and if not, then do the following. Go to computer management, and then your default website properties under Internet Information Services. Under home directory make sure that scripts and executables have execute permissions, then click the button that says configuration, scroll through the list and see if .php is in the list, and if not, add it with the following options. Executable: Chpphp.exe (will vary depending on the path you chose to install php to), extension: .php , verbs: all verbs, check Script Engine, and hit ok, then restart IIS again. If it still doesn't work (which is very unlikely) then try running the PHP installer again.

How to install Perl under IIS.

Perl can be a bit more complicated. You'll need to download ActivePerl from here: [link]http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.632-MSWin32-x86.msi[/link] . As with PHP, the installer should be able to automatically configure IIS, although it doesn't do it as throughly as it should. During the installation it will give you a choice of four things that it can automatically do:

#1. Add Perl to the PATH enviromental variable. Choose yes.

#2. Create Perl file extension association. Optional, but I normally choose yes.

#3. Create IIS script mapping for Perl. Choose yes.

#4. Create IIS script mapping for Perl ISAPI. Choose yes.

After the installer is finished, go back into the properties for your default web site as you did earlier for PHP and go back into the configure options. Go again to add, and put the following into the options. Executable: C:Perlbinperl.exe "%s" %s (again, if you installed to a different path then edit accordingly), under verbs choose limit to and put the following in the dialog box: GET,HEAD,POST, uncheck Script engine and put a checkmark in check that file exists. Hit ok, restart IIS again, and grab something that uses perl to test with, such as greymatter, avalible from [link]http://noahgrey.com/greysoft/.[/link] (Note, in most perl scripts you will have to open the script up in a text editor and you will see something that resembles the following in the first few lines of the script: #!/usr/bin/perl , you will need to change this to direct it towards your path to perl, for me (with perl installed to C:Perl, it will look like #!C:/Perl/perl . Ikonboard and a few other bulletin boards writtin in Perl need a few perl addon modules to run, which I will cover in an update to this later.

Getting MySQL on windows.

Most boards nowadays and many other things use MySQL databases to store information (for example, BetaONE's VBB relies on a MySQL database, which has grown to be nearly 110 megs in size ). Under both IIS and Apache the installation is the same, as you don't have to edit the servers properties this time around.

Head over to [link]http://www.mysql.com/downloads/download.php?file=Downloads/MySQL-3.23/mysql-3.23.51-win.zip[/link] and grab MySQL from one of the mirrors. Unpack the zip file and run the installer. After it is finished, open x:MySQLbinwinmysqladmin.exe where x is the drive letter that you installed MySQL to. It will prompt you to set a username and password, which will be your MySQL root, or super user and pass. Open up the administrative toolsservices applet in the control panel and make sure that the MySQL service is started and you should be good to go. For easy MySQL administration, such as creating databases, PHPMyAdmin is one of the easiest ways to go. It is avalible from [link]http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.2.6-php.zip.[/link] Unpack the archive to a subfolder under your wwwroot folder and edit the config file, config_inc.php . There are a few variables that you need to set in the config file, such as the url which is used to access PHPMyAdmin as well as the username and password that you gave MySQL when you ran winmysqladmin.exe . Then go to [link]http://localhost/phpmyadmin[/link] (again, this varies depending on the url you set in the config file as well as the foldername that you put phpmyadmin in) and you'll have an easy web based admin tool to administer MySQL.

I'll update this later for Apache and more advanced configuration, as well as if anyone has any questions
Reply With Quote
  #2  
Old 13th Jun 02, 08:12 PM
richardc2000 richardc2000 is offline
Retired
 
Join Date: Jul 2001
Location: vancouver
Posts: 803
richardc2000 is on a distinguished road
Gee - I didn't know it was soooooo easy. :P :P :P
thanks, Sephiroth
Reply With Quote
  #3  
Old 13th Jun 02, 08:14 PM
Sephiroth Sephiroth is offline
BetaONE Supporter
 
Join Date: Jul 2001
Posts: 1,979
Sephiroth is an unknown quantity at this point
Send a message via MSN to Sephiroth
IIS is pretty easy, Apache on the other hand can be a nightmare, that's why i decided to wait to write that part until I do it myself again
Reply With Quote
  #4  
Old 13th Jun 02, 08:17 PM
genius001
 
Posts: n/a
in fact its a pain in the ass until you find ou that it needs to be done that way...

nice tutorial
Reply With Quote
  #5  
Old 13th Jun 02, 08:18 PM
Sephiroth Sephiroth is offline
BetaONE Supporter
 
Join Date: Jul 2001
Posts: 1,979
Sephiroth is an unknown quantity at this point
Send a message via MSN to Sephiroth
[quote:9e32e34aa8][i:9e32e34aa8]Originally posted by genius001 [/i:9e32e34aa8]
[b]in fact its a pain in the ass until you find ou that it needs to be done that way...

nice tutorial [/quote:9e32e34aa8]

exactly genius, lol, if you just have IIS and the installers for Perl, PHP, and MySQL with no FAQ on how to do it it can be a pain in the ass
Reply With Quote
  #6  
Old 14th Jun 02, 02:46 PM
JacKDynne's Avatar
JacKDynne JacKDynne is offline
Administrator
 
Join Date: Oct 2001
Location: The Past Through Tomorrow
Posts: 1,591
JacKDynne will become famous soon enoughJacKDynne will become famous soon enough
Send a message via MSN to JacKDynne
Nice tutorial....good stuff...
__________________


Reply With Quote
  #7  
Old 11th Jul 02, 03:00 AM
agamemnon agamemnon is offline
BetaONE Supporter
 
Join Date: Oct 2001
Location: Vancouver
Posts: 51
agamemnon is an unknown quantity at this point
yes nice work
Reply With Quote
  #8  
Old 11th Jul 02, 07:42 AM
thedillyo thedillyo is offline
New Member
 
Join Date: Aug 2001
Posts: 8
thedillyo
Simple and to the point Sephiroth. Cheers man.
Reply With Quote
  #9  
Old 13th Jul 02, 05:30 PM
Megaduce's Avatar
Megaduce Megaduce is offline
Member
 
Join Date: Aug 2001
Posts: 80
Megaduce is an unknown quantity at this point
Send a message via ICQ to Megaduce Send a message via MSN to Megaduce Send a message via Yahoo to Megaduce
yeah thanks dude


PS: let me know about what I mentioned about processor and the memory dude you're a hard man to get in touch with dude
Reply With Quote
  #10  
Old 26th Jul 02, 05:57 AM
Bads's Avatar
Bads Bads is offline
BetaONE Supporter
 
Join Date: Jul 2001
Location: Quebec
Posts: 1,710
Bads is an unknown quantity at this point
This is really a good tutorial

Thanks,

i save these informations and will try it later
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Partner pack for windows Bads Windows NT/2000/XP (+ Service Packs) 1 27th Oct 04 03:51 PM
Update # 1 for MCE 2005 protecteur Windows XP Media Center Edition 2005 3 26th Oct 04 01:45 PM
Get more dancers for mce 2005 protecteur Windows XP Media Center Edition 2005 1 24th Oct 04 03:30 PM
Superw2k.iso - Windows 2000 Super Cd Now Available! khauyeung Windows Media (WMP 10, DX 9...) 25 27th Jul 02 03:51 PM
Speed up system. greasemonkey Hardware Support 6 6th Nov 01 08:32 PM


All times are GMT +1. The time now is 06:35 AM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.