Home Web Server: Install: Difference between revisions
m
Reverted edits by Upazixorys (Talk); changed back to last version by Ric
Upazixorys (talk | contribs) No edit summary |
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric) |
||
Line 1: | Line 1: | ||
<span id="top"></span> | |||
<div style="padding:0;margin:0; border-bottom:3px inset #000000"> | |||
{| | {| | ||
| [[Image:uc_small_logo.gif | MPG UniCenter]] || | | [[Image:uc_small_logo.gif | MPG UniCenter]] || | ||
Line 15: | Line 14: | ||
[[Home Web Server: Known Problems | Problems]] | [[Home Web Server: Known Problems | Problems]] | ||
|} | |} | ||
</div> | |||
{| cellpadding= | {| cellpadding="2" | ||
| | | | ||
__TOC__ | __TOC__ | ||
|| | || | ||
'''Just three steps to get Uniserver up and running''' | '''Just three steps to get Uniserver up and running'''<br>'''Home Web Server Uniform Server 3.5-Apollo.''' | ||
|} | |} | ||
Line 29: | Line 28: | ||
== Download == | == Download == | ||
Download the software package UniServer3_5.exe (if you prefer UniServer3_5.zip) from [http://sourceforge.net/project/showfiles.php?group_id=53691& | Download the software package UniServer3_5.exe (if you prefer UniServer3_5.zip) from [http://sourceforge.net/project/showfiles.php?group_id=53691&package_id=48193&release_id=521154 SourceForge] for latest release check the Uniform Server [http://www.uniformserver.com/ web site]. | ||
Note: The exe file (7MB ) is about half the size of the ZIP file (13.6MB). Extracted size is around 37.6MB, file sizes may vary | Note: The exe file (7MB ) is about half the size of the ZIP file (13.6MB). Extracted size is around 37.6MB, file sizes may vary | ||
Line 40: | Line 39: | ||
Here is an example with a little more detail. Note at step two you can use the default folder, once extracted you will see a folder named '''Uniform Server''' this can be '''moved''' with all its sub-folders (to another folder or copy it to your USB memory stick) it can be '''renamed''' to whatever you like. I have extracted my files to drive G into a folder named A1_web_server (I tend to loose folders hence when viewed in explorer A1 pushes it to the top of the folders list). | Here is an example with a little more detail. Note at step two you can use the default folder, once extracted you will see a folder named '''Uniform Server''' this can be '''moved''' with all its sub-folders (to another folder or copy it to your USB memory stick) it can be '''renamed''' to whatever you like. I have extracted my files to drive G into a folder named A1_web_server (I tend to loose folders hence when viewed in explorer A1 pushes it to the top of the folders list). | ||
<table> | |||
<tr> | |||
<td> | |||
[[Image:Uc_new_user_server_1.gif]] | [[Image:Uc_new_user_server_1.gif]] | ||
</td> | |||
<td> | |||
# '''Double click''' on the file downloaded ('''UniServer3_5.exe'''''Italic text'') | # '''Double click''' on the file downloaded ('''UniServer3_5.exe'''''Italic text'') | ||
# Select a drive and folder to extract to. For example ('''G:\A1_web_server'''''Italic text'') | # Select a drive and folder to extract to. For example ('''G:\A1_web_server'''''Italic text'') | ||
# Click on '''Extract''' and the extraction process starts (7Z is a fast utility. It is faster than the Windows utilities yet another reason why I prefer the exe file.) | # Click on '''Extract''' and the extraction process starts (7Z is a fast utility. It is faster than the Windows utilities yet another reason why I prefer the exe file.) | ||
# When complete the un-zip window closes | # When complete the un-zip window closes | ||
</td> | |||
</tr> | |||
</table> | |||
Navigate to your installation and check out the Uniform Server's folder structure | Navigate to your installation and check out the Uniform Server's folder structure | ||
There are two important folders: | There are two important folders: | ||
Line 72: | Line 71: | ||
The following are a few examples of what to expect: | The following are a few examples of what to expect: | ||
<small>''{Forum: 29/9/07 Thanks Tuomash. I have added these images to show other users what to expect}''</small> | |||
<table> | |||
<tr> | |||
<td> | |||
[[Image:Uc_win_1fw.gif]] | [[Image:Uc_win_1fw.gif]] | ||
</td> | |||
<td> | |||
*OS Windows XP Home | *OS Windows XP Home | ||
*Windows firewall | *Windows firewall | ||
*When challenged always click on '''Unblock''' | *When challenged always click on '''Unblock''' | ||
</td> | |||
</tr> | |||
<tr> | |||
<td> | |||
[[Image:Uc_win_2fw.gif]] | [[Image:Uc_win_2fw.gif]] | ||
</td> | |||
<td> | |||
*OS Windows XP Home | *OS Windows XP Home | ||
*Windows firewall | *Windows firewall | ||
*When challenged always click on '''Unblock''' | *When challenged always click on '''Unblock''' | ||
</td> | |||
</tr> | |||
<tr> | |||
<td> | |||
[[Image:Uc_norton_fw.gif]] | [[Image:Uc_norton_fw.gif]] | ||
</td> | |||
<td> | |||
*OS Windows XP Home | *OS Windows XP Home | ||
*Norton firewall | *Norton firewall | ||
*When challenged always select: ['''Always allow connection from this program on all ports (Recommended)'''] | *When challenged always select: ['''Always allow connection from this program on all ports (Recommended)'''] | ||
</td> | |||
</tr> | |||
</table> | |||
Your browser may display an error message '''“something like server or page not found”''' this is perfectly normal. It occurs because the browser is active before the servers start running. Once you have trained your firewall or other security measures to allow Apache and MySQL access next time you start these servers the error message will not occur. However do not be surprised if you occasionally get this error message it depends on what processes (programs) are running at the time and what delays occur. | Your browser may display an error message '''“something like server or page not found”''' this is perfectly normal. It occurs because the browser is active before the servers start running. Once you have trained your firewall or other security measures to allow Apache and MySQL access next time you start these servers the error message will not occur. However do not be surprised if you occasionally get this error message it depends on what processes (programs) are running at the time and what delays occur. | ||
Line 110: | Line 109: | ||
---- | ---- | ||
=== Starting Apache and MySQL Servers === | === Starting Apache and MySQL Servers === | ||
<table width="60%"> | |||
<tr> | |||
<td> | |||
# To start the Apache and MySQL servers double click on '''Server_Start.bat''' | # To start the Apache and MySQL servers double click on '''Server_Start.bat''' | ||
</td> | |||
<td width="164"> | |||
[[Image:uc_server_start_bat.gif]] | [[Image:uc_server_start_bat.gif]] | ||
</td> | |||
</tr> | |||
</table> | |||
'''Note 1:''' Depending on your PC’s speed you may see two command windows (black windows) displayed for a short time. These indicate your servers (Apache and MySQL) are starting. If the windows remain the chances are this is the first time you have run your servers please wait until you are challenged by your firewall. | '''Note 1:''' Depending on your PC’s speed you may see two command windows (black windows) displayed for a short time. These indicate your servers (Apache and MySQL) are starting. If the windows remain the chances are this is the first time you have run your servers please wait until you are challenged by your firewall. | ||
Line 129: | Line 128: | ||
'''Note 2:''' The drive letter defaults to drive '''W''' | '''Note 2:''' The drive letter defaults to drive '''W''' | ||
'''Note 3:''' The server defaults to localhost (''' | '''Note 3:''' The server defaults to localhost ('''<nowiki>http://localhost/</nowiki>''') Type this into your browser address bar and the default index '''test page''' (Blue background with Uniform server log image centrally displayed). | ||
To display your web site copy it into folder '''www''' and again enter''' | To display your web site copy it into folder '''www''' and again enter''' <nowiki>http://localhost/</nowiki>''' or just refresh the page (Note make sure your site has an index page for example index.html, index.htm or index.php). If your index page is named index.php either delete the default index.php page in folder www or allow overwrite when copying your site. | ||
---- | ---- | ||
Line 138: | Line 137: | ||
An alternative method of starting the servers (Apache and MySQL) is to use file Disk Start.vbs. This starts both Apache and MySQL servers. You can optionally change the drive letter. | An alternative method of starting the servers (Apache and MySQL) is to use file Disk Start.vbs. This starts both Apache and MySQL servers. You can optionally change the drive letter. | ||
<table width="60%"> | |||
<tr> | |||
<td> | |||
# Double click on '''Disk_Start.vbs''' | # Double click on '''Disk_Start.vbs''' | ||
# Select a new drive letter or use default (W) | # Select a new drive letter or use default (W) | ||
# Start MySQL server YES NO option (This option is redundant both servers will start regardless of the option chosen ) | # Start MySQL server YES NO option (This option is redundant both servers will start regardless of the option chosen ) | ||
</td> | |||
<td width="164"> | |||
[[Image:uc_disk_start_vbs.gif]] | [[Image:uc_disk_start_vbs.gif]] | ||
</td> | |||
</tr> | |||
</table> | |||
Again your browser will start if not already running and be redirected to apanel. | Again your browser will start if not already running and be redirected to apanel. | ||
Line 156: | Line 155: | ||
Stopping the servers can be done using the batch file: | Stopping the servers can be done using the batch file: | ||
<table width="60%"> | |||
<tr> | |||
<td> | |||
# Double click on '''Stop.bat''' to stop the servers (alternatively stop the servers via apanel o rUniController). | # Double click on '''Stop.bat''' to stop the servers (alternatively stop the servers via apanel o rUniController). | ||
</td> | |||
<td width="164"> | |||
[[Image:uc_stop_bat.gif]] | [[Image:uc_stop_bat.gif]] | ||
</td> | |||
</tr> | |||
</table> | |||
You can use this batch file at any time to stop the servers. You may be surprised at the lack of any tray icons, this is intentional and provides extra flexibility. However the above batch files have been combined into an executable named UniController, this gives you the ability of controling the servers from the task bar. | You can use this batch file at any time to stop the servers. You may be surprised at the lack of any tray icons, this is intentional and provides extra flexibility. However the above batch files have been combined into an executable named UniController, this gives you the ability of controling the servers from the task bar. | ||
Line 172: | Line 171: | ||
This program allows you to start and stop both servers with the functionality of a standard program (you can minimise and maximise it, places an icon in the toolbar). If you accidentally closed the program just restart it for closing the servers or use stop bat. Be warned that it is a beta version although fully functional it is not pretty looking also I found on my PC is takes a good thirty seconds to start the servers. | This program allows you to start and stop both servers with the functionality of a standard program (you can minimise and maximise it, places an icon in the toolbar). If you accidentally closed the program just restart it for closing the servers or use stop bat. Be warned that it is a beta version although fully functional it is not pretty looking also I found on my PC is takes a good thirty seconds to start the servers. | ||
<table width="60%"> | |||
<tr> | |||
<td> | |||
# Double click on '''UniController.exe''' | # Double click on '''UniController.exe''' | ||
# Select a new drive letter or use default (W) | # Select a new drive letter or use default (W) | ||
# Click start to start both Apache and MySQL servers | # Click start to start both Apache and MySQL servers | ||
</td> | |||
<td width="164"> | |||
[[Image:uc_unicontroller.gif]] | [[Image:uc_unicontroller.gif]] | ||
</td> | |||
</tr> | |||
</table> | |||
'''Note 1:''' You can minimise the program which places an icon in the tool bar. Click the Icon to maximise and use the stop button to stop both the Apache and MySQL servers. | '''Note 1:''' You can minimise the program which places an icon in the tool bar. Click the Icon to maximise and use the stop button to stop both the Apache and MySQL servers. | ||
Line 192: | Line 191: | ||
---- | ---- | ||
=== Quick Check === | === Quick Check === | ||
Whichever method you choose to start the servers your browser will be redirected to UniServer's Admin Panel page allowing you to configure and display server information, I cover this later. To return to apanel at any time type the following ''' | Whichever method you choose to start the servers your browser will be redirected to UniServer's Admin Panel page allowing you to configure and display server information, I cover this later. To return to apanel at any time type the following '''<nowiki>http://localhost/apanel/</nowiki>''' into your browser address bar. | ||
General note: When you change Apache port for example to 8080 starting the servers automatically redirects to apanel. To run apanel manually you must include the port number for example type the following ''' | General note: When you change Apache port for example to 8080 starting the servers automatically redirects to apanel. To run apanel manually you must include the port number for example type the following '''<nowiki>http://localhost:8080/apanel/</nowiki>''' into your browser address bar. | ||
Confirm pages are being severed from folder '''www'''. Type ''' | Confirm pages are being severed from folder '''www'''. Type '''<nowiki>http://localhost</nowiki>''' into your browser address bar, a Uniserver logo displayed in the center of the screen confirms correct operation. After a short time redirects back to apanel. | ||
One final test, copy your own web site (folders and pages) to folder www your index page (index.html or index.htm) will be picked up first and override the default index.php refresh your browser alternatively type ''' | One final test, copy your own web site (folders and pages) to folder www your index page (index.html or index.htm) will be picked up first and override the default index.php refresh your browser alternatively type '''<nowiki>http://localhost/index.html</nowiki>''' or '''<nowiki>http://localhost/index.html</nowiki>''' into your browser address bar and confirm your pages are displayed. | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
== Clean and Test - Step 3 == | == Clean and Test - Step 3 == | ||
At this stage your servers are working, however it is worth performing a few extra quick checks. With apanel displayed (type | At this stage your servers are working, however it is worth performing a few extra quick checks. With apanel displayed (type <nowiki>http://localhost/apanel/</nowiki> or <nowiki>http://localhost/a</nowiki> into your browser address bar) from the left menu un through the following: | ||
Quick tests | Quick tests | ||