https://wiki.uniformserver.com/index.php?title=Home_Web_Server:_Install&feed=atom&action=historyHome Web Server: Install - Revision history2024-03-28T18:14:24ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=Home_Web_Server:_Install&diff=4744&oldid=prevOlajideolaolorun: Reverted edits by Upazixorys (Talk); changed back to last version by Ric2010-11-24T07:50:53Z<p>Reverted edits by <a href="/Special:Contributions/Upazixorys" title="Special:Contributions/Upazixorys">Upazixorys</a> (<a href="/index.php?title=User_talk:Upazixorys&action=edit&redlink=1" class="new" title="User talk:Upazixorys (page does not exist)">Talk</a>); changed back to last version by <a href="/User:Ric" title="User:Ric">Ric</a></p>
<a href="https://wiki.uniformserver.com/index.php?title=Home_Web_Server:_Install&diff=4744&oldid=4725">Show changes</a>Olajideolaolorunhttps://wiki.uniformserver.com/index.php?title=Home_Web_Server:_Install&diff=4725&oldid=prevUpazixorys at 07:37, 24 November 20102010-11-24T07:37:41Z<p></p>
<a href="https://wiki.uniformserver.com/index.php?title=Home_Web_Server:_Install&diff=4725&oldid=3180">Show changes</a>Upazixoryshttps://wiki.uniformserver.com/index.php?title=Home_Web_Server:_Install&diff=3180&oldid=prevRic: 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...2008-06-14T11:20:41Z<p>New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | <a href="/File:Uc_small_logo.gif" title="File:Uc small logo.gif"> MPG UniCenter</a> || Home Web Server: [[Home Web Server: Home | Ho...</p>
<p><b>New page</b></p><div><span id="top"></span><br />
<div style="padding:0;margin:0; border-bottom:3px inset #000000"><br />
{| <br />
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||<br />
Home Web Server: <br />
[[Home Web Server: Home | Home]] | <br />
[[Home Web Server: Overview | Overview]] | <br />
[[Home Web Server: Single Page Guide | Single Page Guide]] | <br />
[[Home Web Server: Install | Install]] | <br />
[[Home Web Server: Security | Security]] | <br />
[[Home Web Server: DynDNS Account | DynDNS Account]] | <br />
[[Home Web Server: DynDNS Updater | DynDNS Updater]] | <br />
[[Home Web Server: DynDNS Updater portability | Updater portability]] |<br />
[[Home Web Server: Known Problems | Problems]]<br />
|}<br />
</div><br />
{| cellpadding="2"<br />
|<br />
__TOC__<br />
||<br />
'''Just three steps to get Uniserver up and running'''<br>'''Home Web Server Uniform Server 3.5-Apollo.'''<br />
|}<br />
<br />
Uniform Server is a collection of self contained files you extract to '''any folder''' of your choice. In operation it does not use the registry hence you can pop these files onto a USB memory stick and it becomes completely portable. <br />
<br />
It appears to run from a separate drive because it uses the powerful [[New Users Information Snippets#subst | subst command]] this associates a path (where you copied the files to) with a drive letter. These files are run from that location however are accessed via the drive letter assigned. This all adds up to easy installation and operation, follow this quick guide for installation.<br />
<br />
== Download ==<br />
<br />
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].<br />
<br />
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 <br />
slightly to the figures I have shown.<br />
<br />
== Installation - Step 1 ==<br />
<br />
Installation is a bit of a misnomer; all that is required is to extract the files. First download the above exe file, double click on it; select a folder where you would like the extracted folders and files to be placed. That’s it installation done.<br />
<br />
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).<br />
<br />
<table><br />
<tr><br />
<td><br />
[[Image:Uc_new_user_server_1.gif]]<br />
</td><br />
<td><br />
# '''Double click''' on the file downloaded ('''UniServer3_5.exe'''''Italic text'')<br />
# Select a drive and folder to extract to. For example ('''G:\A1_web_server'''''Italic text'')<br />
# 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.)<br />
# When complete the un-zip window closes<br />
</td><br />
</tr><br />
</table><br />
Navigate to your installation and check out the Uniform Server's folder structure<br />
There are two important folders:<br />
:* '''Uniform Server''' This contains files that control your installation of UniServer. ('''Server_Start.bat''' and '''Stop.bat''')<br />
:* '''www''' This is where you place your Web Site folders and files such as (.htm, .html, .php, .js, .css etc).<br />
For latest news check out release notes in the docs folder.<br />
<br />
'''''[[#top | Top]]'''''<br />
== Running Uniform Server - Step 2 ==<br />
<br />
Use Windows Explorer or MyComputer to locate the folder '''Uniform Server''' (if you renamed it use that new name) here you will find four files '''Server_Start.bat''', '''Disk Start.vbs''', UniController.exe and '''Stop.bat''' these start and stop the servers as follows:<br />
<br />
Note: You only need to use '''Server_Start.bat''' and '''Stop.bat''' to control your servers I have included the other methods for completeness.<br />
----<br />
<br />
=== Alarm Bells ===<br />
Starting the servers for the first time all hell breaks loose regarding fire walls and security programs. When challenged by these programs '''allow all scripts to run''' and '''allow access on all ports'''. Depending on what software or protection you have expect to be challenged several times. However when the servers are re-run everything will be fine.<br />
<br />
The following are a few examples of what to expect:<br />
<br />
<small>''{Forum: 29/9/07 Thanks Tuomash. I have added these images to show other users what to expect}''</small><br />
<table><br />
<tr><br />
<td><br />
[[Image:Uc_win_1fw.gif]]<br />
</td><br />
<td><br />
*OS Windows XP Home<br />
*Windows firewall<br />
*When challenged always click on '''Unblock'''<br />
</td><br />
</tr><br />
<tr><br />
<td><br />
[[Image:Uc_win_2fw.gif]]<br />
</td><br />
<td><br />
*OS Windows XP Home<br />
*Windows firewall<br />
*When challenged always click on '''Unblock'''<br />
</td><br />
</tr><br />
<tr><br />
<td><br />
[[Image:Uc_norton_fw.gif]]<br />
</td><br />
<td><br />
*OS Windows XP Home<br />
*Norton firewall<br />
*When challenged always select: ['''Always allow connection from this program on all ports (Recommended)''']<br />
</td><br />
</tr><br />
</table><br />
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.<br />
<br />
'''''[[#top | Top]]'''''<br />
----<br />
=== Starting Apache and MySQL Servers ===<br />
<table width="60%"><br />
<tr><br />
<td><br />
# To start the Apache and MySQL servers double click on '''Server_Start.bat'''<br />
</td><br />
<td width="164"><br />
[[Image:uc_server_start_bat.gif]]<br />
</td><br />
</tr><br />
</table><br />
<br />
'''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.<br />
<br />
When challenged make sure you '''allow connection''' on all ports otherwise the servers will be blocked by these security programs.<br />
<br />
While all this is going on your browser if not already running will start and be redirected to UniServer’s control page ('''apanel'''). You may receive a message '''Unable to connect''' this is because your browser has redirected to apanel before your Apache server has had time to start-up, its not a major problem just refresh your browser and all will be fine.<br />
<br />
'''Note 2:''' The drive letter defaults to drive '''W'''<br />
<br />
'''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).<br />
<br />
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.<br />
<br />
----<br />
=== Starting Apache, MySQL Server and select drive letter ===<br />
<br />
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.<br />
<br />
<table width="60%"><br />
<tr><br />
<td><br />
# Double click on '''Disk_Start.vbs'''<br />
# Select a new drive letter or use default (W)<br />
# Start MySQL server YES NO option (This option is redundant both servers will start regardless of the option chosen )<br />
</td><br />
<td width="164"><br />
[[Image:uc_disk_start_vbs.gif]]<br />
</td><br />
</tr><br />
</table><br />
Again your browser will start if not already running and be redirected to apanel.<br />
<br />
----<br />
=== Stopping the servers ===<br />
Stopping the servers can be done using the batch file:<br />
<br />
<table width="60%"><br />
<tr><br />
<td><br />
# Double click on '''Stop.bat''' to stop the servers (alternatively stop the servers via apanel o rUniController). <br />
</td><br />
<td width="164"><br />
[[Image:uc_stop_bat.gif]]<br />
</td><br />
</tr><br />
</table><br />
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.<br />
<br />
----<br />
=== UniController Beta ===<br />
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.<br />
<br />
<table width="60%"><br />
<tr><br />
<td><br />
# Double click on '''UniController.exe'''<br />
# Select a new drive letter or use default (W)<br />
# Click start to start both Apache and MySQL servers<br />
</td><br />
<td width="164"><br />
[[Image:uc_unicontroller.gif]]<br />
</td><br />
</tr><br />
</table><br />
'''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.<br />
<br />
'''Note 2:''' When run looses focus, (seems to be set to a low order) hence when the browser runs it is placed on top hiding UniController not a major problem click on UniController in the task bar to bring it to the front.<br />
<br />
'''Note 3:''' The Drive Letter [A or C-Z] at start-up does not actually display free drives it is merely an indication of potential candidates to use. Hence make sure the drive letter you chose is not in use.<br />
<br />
----<br />
=== Quick Check ===<br />
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.<br />
<br />
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.<br />
<br />
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.<br />
<br />
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.<br />
<br />
'''''[[#top | Top]]'''''<br />
== Clean and Test - Step 3 ==<br />
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:<br />
Quick tests<br />
<br />
:# Click on '''phpinfo()''' — location — menu on the left<br />
:## You will see a long list of information for PHP Version 5.2.3<br />
:## You can discover what is enabled and running from this information.<br />
<br />
:# Click on '''Apache info''' — again located — menu on the left<br />
:## More information to read.<br />
:## Again every thing you wanted to know about Apache (Version 2.0.59 )<br />
<br />
:# Click on '''phpMyAdmin''' — After a short time you will see a page with the following info at the top:<br />
:## phpMyAdmin 2.10.2<br />
:## Server version: 5.0.41-community-nt<br />
<br />
That completes the tests; your servers are working along with PHP and phpMyAdmin.<br />
=== Clean Server ===<br />
Navigate to folder '''www''' and delete all files and sub-folders with the exception of '''.htaccess''' <br />
<br />
OK this step is not crucial for installation it just gives you a nice clean server to work with.<br />
<br />
Note: apanel provides a button (single click) to perform this task however the following are not removed:<br />
<br />
:* .htaccess<br />
:* favicon.ico<br />
:* images (folder)<br />
:* index.html<br />
<br />
== Summary ==<br />
You now have a superb test environment where you can develop your website using real production servers.<br />
<br />
'''Tip'''<br />
<br />
Make a backup (copy the folder '''Uniform Server''' and all its content to another folder) now feel free to break the original. When beyond repair just delete it and use your backup alternatively use the exe file to install a new copy. It’s this flexibility and ease of use I like.<br />
<br />
'''Security'''<br />
<br />
If you are using your servers for design and development they are locked down to localhost access only and are secure. You can remain connected to the Internet while using them, however I would recommend you check out the section on '''[[Home Web Server: Security | security ]]''' you will need to change the '''[[Home Web Server: Security#Set MySQL Password | MySQL root password ]]''' as a minimum. I apologise for the length of the page do not attempt to read it in one go. Its for reference and covers all server security in one place, each topic is complete hence some duplication.<br />
<br />
All your server settings including security are set using UniServer’s Admin Panel. Putting your servers on line is extremely easy Admin Panel guides you through this process.<br />
<br />
<br />
'''''[[#top | Top]]'''''<br />
----<br />
<br />
{| <br />
| [[Image:uc_small_logo.gif]] || [[User:Ric|Ric]]<br />
|}<br />
<br />
<br />
[[Category: UniCenter]]<br />
[[Category: New Users]]<br />
[[Category: Support]]<br />
[[Category: Installation]]<br />
[[Category: Security]]</div>Ric