Installing a webserver for newbies Part II |
This is what the guide will cover. 1. Installing Apache
Apache2- http://www.apache.org/dist/binaries/win32/ PHP 4.2.1- http://www.php.net/downloads.php MySQL 3x -http://mysql.com/downloads/mysql-3.23.html PHPBB- www.phpbb.com/downloads.php Ok, now that you downloaded that, you are ready to start installing! First unzip and install Apache. For the Server Information screen, type anything you want because it wont matter. You might want to type in a realy Admin email tho. Also install it on port 80 (normal). Change the install folder to C:\ (dont worry, it will make a folder apache2) and then install it! If you want a server with NO PHP support or Mysql Support then you may stop here and go on to the last step. Now we are going to install PHP. First, you will unzip the constance of that 5meg file you downloaded. Now create a folder in C:\Apache2 and called PHP. Now move the constance of the ziped file to that folder. Now go to your httpd.conf file. It is in your C:\apache2\conf directory. Now open that sucker up with notepad. Be sure to do not add the files in ( )'s First find the line:
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/" ScriptAlias /php/ "C:/apache2/php/" Now find the lines: # Go to the line following it and insert this: Action application/x-httpd-php /php/php.exe (What this does is tell the server where the php program is) Now find the lines: # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types # AddType application/x-tar .tgz Go to the line following it and insert these lines: AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .phtml AddType application/x-httpd-php-source .phps (what this does is like the extensions on files) Now, look for <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> Now add this below: <IfModule mod_dir.c> DirectoryIndex index.html index.php default.php main.php </IfModule> (What that does is when you go to a folder, it will go to one of thoes files)
OK! Your done with installing PHP. Now, we are going to install MySQL. First unzip and run the SETUP and do everything that is reccomended. Now you installed it and hopefull it all worked.... NOTE: If you install MySQL in a folder other than C:\MYSQL or you intend to start MySQL on NT/Win2000 as a service, you must create a file named C:\MY.CNF or \Windows\my.ini or \winnt\my.ini with the following information:: [mysqld]
<? Now go to http://localhost/info.php . You should see a screen with a bunch of info on it. If you DO NOT get this screen, Then go to "Common Error"
This can be harder then you think. First, you are going to unzip PHPBB to your htdocs dir. First you will need to go to c:\mysql\data and add a Folder. This folder can be named anything you want the board databaced be named. Now go to http://localhost/phpbb2/install.php . This should lead you to the install screen. For For Database Server Hostname / DSN, Put in LocalHost. For Database name, put in the name of the folder you put in the MySQL data directory. Do NOT put anything in Database Username, or Password. Now for the Admin Configuration, put in what you want. Now Hit Start Install and you are done! Now goto http://localhost/phpbb and have fun! Now Procede to "Last Step", if you get a error when starting the install or inside the forum, please go to "common errors" Last Step: Common Errors: Info: |
Credits: |
Chat with me on MSN- Sirbighands@hotmail.com This guide has been written by me so its MINE! ~made my Nose for Astalavista Group |