Windows Web Server

May 17, 2010 (Updated October 27, 2010)
In this article, you'll learn how to turn your computer into a functional web server, capable of running a dynamic Internet site with a back end database.

What you should already know:


What you will need:

At the time that this article was written, this is the most current versions of these free software packages. Make sure to check for a newer version.

* - When downloading PHP for use with Abyss Web Server, download the VC6, Thread Safe variant of this software. According to Aprelium, this is the best branch of PHP, as it requires less Windows dependancies. Again, this is what this site runs on!

If you already have one or more of these programs installed, the screens may be slightly different -- you may not even have to install them, depending on how your server is configured.

Hardware for a Server

It is important to have a well-built server to support a site for speed. Most people think of the old, dusty computer they have sitting in their closet. While the running requirements for Abyss Web Server are minimal, it is crucial to have a good system for PHP and MySQL.

Best Hardware Configuration:

PHP
If you're using PHP heavily (a forum, member system, etc), a fast processor is a must. This helps speed up the site by reducing the processing time for the routines in your script(s).

MySQL
A good amount of RAM to have would be 4GB for a 32-bit system, or 6 to 8 GB for a 64-bit system. This allows MySQL to keep recent transactions in RAM (which is faster than your harddrive), and it will increase overall site speed exponentially.)

Abyss
A fast processor will improve site speed when you use the Compression option (not covered in this article). This feature helps reduce the bandwidth issues, and actually helps speed the site up by eliminating the biggest bottleneck -- The Internet. Do note though, that it is intensive on the processor to use this feature, even at low settings. Having a capable processor will cause pages to load quickly.



Installing Abyss Web Server

After downloading it, simply click the installer.

Member Added Image

Check all of the Options:

Member Added Image

Select a directory, you can just use the default:

Member Added Image

Wait until the process completes:

Member Added Image

Select your Abyss Startup Configuration:

Member Added Image

- Manual Startup is good for a development server, that you won't use to host the sites. That way you can control when it is or isn't open.

- Automatic Startup on Logon is a good option for a development server as well, however the process will always be running.

- Installing as a Windows Service is the best option for a Server, because it will allow your server to host pages even if you're logged off. When Windows does its automatic updates, and self-restarts, you'll wish this option was on. With it off, Abyss won't start or run until you log on, which could be a long period. If you use this option, however, the Abyss logo will not appear in your System Tray, and to stop/start it, you'll have to familiarize yourself with Window's Component Services Module. Another change is that you cannot connect to the Abyss Console through the System Tray, you can however; access it by visiting http://localhost:9999/ on the server, or the http://192.168.1.55:9999/ where 192.168.1.55 is the LAN IP of the server.



Select Yes:

Member Added Image

Pressing OK will open your browser, where you can configure your server:

Member Added Image

Abyss will now ask you to choose a language, which I'd imagine will be English. Next, enter the name and password you'd like to use to access the Console in the future:

Member Added Image

After you hit OK, you'll have to login again.

This is your site, running on your server on port 80:

Member Added Image

Click the Configure button, and then go to the General Button:

Member Added Image

Here, you can see and configure where your web root is at (htdocs/) and what port your server will work with:

Member Added Image

Open up a new browser window or tab, and type in:

http://localhost/

- OR -

If you used a custom port, visit:

http://localhost:8080/, Where 8080 is the custom port number.

Member Added Image

If this comes up, Abyss is functioning properly. You can also type in your IP address, and this page should also come up (if you have your firewall(s), and router configured properly).


If you navigate to your htdocs folder (should be C:Program FilesAbyss Web Serverhtdocs if you used the default settings).

Member Added Image

Here, you can replace index.html with your own file(s). As soon as you copy files here, they're immediately available online.


Installing PHP

Begin by opening the .exe file that you downloaded from Aprelium (the Preconfigured PHP Package).

Member Added Image

Select a directory for the PHP installation. You'll need to remember this when you configure Abyss to work with PHP, so copy and paste it in notepad for quick retrieval.

Member Added Image

Wait until the installer does work:

Member Added Image

PHP is done installing to your system:

Member Added Image


Setting up Abyss to work with PHP

If you closed the tab, go back to the Abyss Console (http://localhost:9999).

Hit the Configure button on the Host table again, and then go to Scripting Parameters:

Member Added Image

Here's the default appearance, before PHP is installed:
Member Added Image

Setting up PHP:


Your page should now look like this:

Member Added Image

Now, click on Index Files (back on Configuration Page):

Member Added Image

And add index.php

Member Added Image

Which will look like this when you're done:

Member Added Image

Now, open up NotePad++, or your favorite Text Editor, and enter in this text:

Web Server Works<br />
<?PHP
echo "PHP is handling this document.";
?>


Member Added Image

Save this file as test.php on in your htdocs directory.

Access http://localhost/test.php to see if everything is working correctly:

Member Added Image

If you see the same as above, you have correctly set up Abyss with PHP.


Installing MySQL

Install the packagem, as you see it in these screens:

Member Added Image
Member Added Image
Member Added Image
Member Added Image

YOU MUST RESTART NOW
Or MySQL will screw up later. Make sure the check box is unchecked, press "Finish", then restart the computer.



Now, go through your start menu and look for the MySQL folder, and select the following:

Member Added Image

The settings herein are optimal for a Web Server with MySQL, so I won't go through explaining all of these. Some of them are better for security as well:

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image

IF YOU GET THIS MESSAGE:

Member Added Image

You didn't restart. Uninstall MySQL, Delete the folder, and restart, and reinstall it all again.



MSMarch 1st, 2011 12:31 pm CSTPrint: 815a2ce614da76552644
So good this tutorial. It's working. I tried all tutorials but this working so good.