Home Web Server: Install: Difference between revisions

no edit summary
(New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | MPG UniCenter || Home Web Server: [[Home Web Server: Home | Ho...)
 
No edit summary
Line 1: Line 1:
<span id="top"></span>
=[http://ogetehuvo.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
&lt;div style=&quot;padding:0;margin:0; border-bottom:3px inset #000000&quot;&gt;
{|  
{|  
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
Line 14: Line 15:
[[Home Web Server: Known Problems | Problems]]
[[Home Web Server: Known Problems | Problems]]
|}
|}
</div>
&lt;/div&gt;
{| cellpadding="2"
{| cellpadding=&quot;2&quot;
|
|
__TOC__
__TOC__
||
||
'''Just three steps to get Uniserver up and running'''<br>'''Home Web Server Uniform Server 3.5-Apollo.'''
'''Just three steps to get Uniserver up and running'''&lt;br&gt;'''Home Web Server Uniform Server 3.5-Apollo.'''
|}
|}


Line 28: Line 29:
== 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&package_id=48193&release_id=521154 SourceForge] for latest release check the Uniform Server [http://www.uniformserver.com/ web site].
Download the software package UniServer3_5.exe (if you prefer UniServer3_5.zip) from [http://sourceforge.net/project/showfiles.php?group_id=53691&amp;package_id=48193&amp;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 39: Line 40:
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>
&lt;table&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
[[Image:Uc_new_user_server_1.gif]]
[[Image:Uc_new_user_server_1.gif]]
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
# '''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>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;
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 71: Line 72:
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>
&lt;small&gt;''{Forum: 29/9/07 Thanks Tuomash. I have added these images to show other users what to expect}''&lt;/small&gt;
<table>
&lt;table&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
[[Image:Uc_win_1fw.gif]]
[[Image:Uc_win_1fw.gif]]
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
*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>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
[[Image:Uc_win_2fw.gif]]
[[Image:Uc_win_2fw.gif]]
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
*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>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
[[Image:Uc_norton_fw.gif]]
[[Image:Uc_norton_fw.gif]]
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
*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>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;
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 109: Line 110:
----
----
=== Starting Apache and MySQL Servers ===
=== Starting Apache and MySQL Servers ===
<table width="60%">
&lt;table width=&quot;60%&quot;&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
# 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>
&lt;/td&gt;
<td width="164">
&lt;td width=&quot;164&quot;&gt;
[[Image:uc_server_start_bat.gif]]
[[Image:uc_server_start_bat.gif]]
</td>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;


'''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 128: Line 129:
'''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 ('''<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).
'''Note 3:''' The server defaults to localhost ('''&lt;nowiki&gt;http://localhost/&lt;/nowiki&gt;''') 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''' <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.
To display your web site copy it into folder '''www''' and again enter''' &lt;nowiki&gt;http://localhost/&lt;/nowiki&gt;''' 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 137: Line 138:
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%">
&lt;table width=&quot;60%&quot;&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
# 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>
&lt;/td&gt;
<td width="164">
&lt;td width=&quot;164&quot;&gt;
[[Image:uc_disk_start_vbs.gif]]
[[Image:uc_disk_start_vbs.gif]]
</td>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;
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 155: Line 156:
Stopping the servers can be done using the batch file:
Stopping the servers can be done using the batch file:


<table width="60%">
&lt;table width=&quot;60%&quot;&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
# 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>
&lt;/td&gt;
<td width="164">
&lt;td width=&quot;164&quot;&gt;
[[Image:uc_stop_bat.gif]]
[[Image:uc_stop_bat.gif]]
</td>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;
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 171: Line 172:
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%">
&lt;table width=&quot;60%&quot;&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
# 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>
&lt;/td&gt;
<td width="164">
&lt;td width=&quot;164&quot;&gt;
[[Image:uc_unicontroller.gif]]
[[Image:uc_unicontroller.gif]]
</td>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;
'''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 191: Line 192:
----
----
=== 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 '''<nowiki>http://localhost/apanel/</nowiki>''' into your browser address bar.
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 '''&lt;nowiki&gt;http://localhost/apanel/&lt;/nowiki&gt;''' 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 '''<nowiki>http://localhost:8080/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 '''&lt;nowiki&gt;http://localhost:8080/apanel/&lt;/nowiki&gt;''' into your browser address bar.


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.
Confirm pages are being severed from folder '''www'''. Type '''&lt;nowiki&gt;http://localhost&lt;/nowiki&gt;''' 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 '''<nowiki>http://localhost/index.html</nowiki>''' or '''<nowiki>http://localhost/index.html</nowiki>''' into your browser address bar and confirm your pages are displayed.
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 '''&lt;nowiki&gt;http://localhost/index.html&lt;/nowiki&gt;''' or '''&lt;nowiki&gt;http://localhost/index.html&lt;/nowiki&gt;''' 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 <nowiki>http://localhost/apanel/</nowiki> or <nowiki>http://localhost/a</nowiki> into your browser address bar) from the left menu un through the following:
At this stage your servers are working, however it is worth performing a few extra quick checks. With apanel displayed (type &lt;nowiki&gt;http://localhost/apanel/&lt;/nowiki&gt; or &lt;nowiki&gt;http://localhost/a&lt;/nowiki&gt; into your browser address bar) from the left menu un through the following:
Quick tests
Quick tests


322

edits