5.3-Nano: Introduction

From The Uniform Server Wiki
Revision as of 16:37, 9 October 2009 by Ric (talk | contribs) (New page: {{Nav 5.3-Nano}} '''Uniform Server 5.2 and 5.3 -Nano''' == Overview == This is a supplementary section to the 5-Nano series it contains new material corresponding to parts that have been ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

 

Uniform Server 5.2 and 5.3 -Nano

Overview

This is a supplementary section to the 5-Nano series it contains new material corresponding to parts that have been redesigned, updated or are new additions.

Top

Summary of new features

  • Updated integrated portable Cron
  • Updated integrated DtDNS IP Updater
  • New integrated Database Backup
  • New integrated msmtp an SMTP client

Top

Uniform Server 5-Nano releases

For reference, I have shown the current Uniform Server 5-Nano releases and their main components.

  Uniform Server 5.0-Nano  
Apache 2.2.13
MySQL 5.1.38-community
PHP 5.2.10
phpMyAdmin 3.2.2-rc1
ActivePerl 5,10,0,1005
ActivePerl 5,10,0,1006
eAccelerator 30953_5.2.10
SSL pre-installed (ssl_098k)
  Uniform Server 5.1-Nano  
Apache 2.2.13
MySQL 5.1.38-community
PHP 5.3.0
phpMyAdmin 3.2.2-rc1
ActivePerl 5,10,0,1005
ActivePerl 5,10,0,1006
eAccelerator 0.9.6-rc1
SSL pre-installed (ssl_098k)
  Uniform Server 5.2-Nano  
Apache 2.2.14
MySQL 5.1.39-community
PHP 5.2.11
phpMyAdmin 3.2.2
ActivePerl 5,10,0,1005
ActivePerl 5,10,0,1006
eAccelerator 0.9.6-rc1
SSL pre-installed (ssl_098k)
  Uniform Server 5.3-Nano  
Apache 2.2.14
MySQL 5.1.39-community
PHP 5.3.0
phpMyAdmin 3.2.2
ActivePerl 5,10,0,1005
ActivePerl 5,10,0,1006
eAccelerator 0.9.6-rc1
SSL pre-installed (ssl_098k)

Top

V5.0-Nano Folder Structure Overview

The following provides a quick overview of V5.*-Nano's main server areas.

A) Top-Level
Server control:

  • Start.exe - Starts UniTray
  • help.bat - Unitray menu information

C) CGI Scripts
Place all your CGI scripts in this folder

  • Perl Scripts - .pl

D) Secure Web Root Folder

  • Place all site/pages to be encrypted
    in this folder.
  • Uses Open SSL 098k

F) Server programs

  • Destination for Perl plugins
    Either mini or full Perl

H) Web Root Folder

  • Place all other site/pages in this folder.
    This is the Standard Web-Server folder

Structure nano 1.gif

B) Alternative control:

  • Batch file start/stop service or program
  • Batch file UniTray start/stop
  • Start_2.exe - Start UniTray without pop-up

E) UniServer control scripts

  • key_cert_gen - Scripts to generate new server certificate and key
  • main - Scripts to run servers either as a standard program or service.
  • move_servers - Script to change server ports rename executables and service
  • perl - Scripts to change shebang and convert to Unix format
  • php_dev_production - Switch php.ini to either development or production
  • restore_mysql_password - Script to restore MySQL back to root
  • tray_menu - UniTray program, configuration file and tray images

G) Local Folder

  • Apache Server, configuration and logfiles.
    Location of server certificate and key.
  • MySQL Server, configuration file and databases.
  • PHP interpreter and configuration file.

Top

Download

Download Uniform Server 5.*-Nano from Sourceforge choose either UniServer5_*.exe or UniServer5_*.zip

There are currently four versions main difference being PHP

  • UniServer5_0.exe or UniServer5_0.zip - PHP 5.2.10
  • UniServer5_1.exe or UniServer5_1.zip - PHP 5.3.0
  • UniServer5_2.exe or UniServer5_2.zip - PHP 5.2.11
  • UniServer5_3.exe or UniServer5_3.zip - PHP 5.3.0

Top

Quick Start

Install and run:

  1. Save UniServer5_*.exe to any folder
  2. Double click UniServer5_*.exe its a self-extracting archive and unpacks to the current folder (where you saved the file).
    Note: The exe does not install anything to the registry or other areas of a PC it just creates folder UniServer and extracts all folders and files to this folder.
  3. Navigate to folder UniServer A)
  4. Run (doube click on) Start.exe this starts Unitray.
  5. Left click on the tray icon, and click on Start UniServer (top menu)
  6. Starts both Apache and MySQL servers
  7. If not already running your browser will automatically start and display Intro page
  8. Stop the servers. Left click on the tray icon, and click on Stop UniServer (second menu item)

Note 1:

When the servers are run or stopped you will be challenged by your firewall always ALLOW ACCESS to the Internet even when running the servers locally for development.

Note 2:

The Web root folder H) UniServer\www contains example pages (intro page). With the exception of file .htaccess delete its content and copy your Web site (folders and pages) to this folder. To view your web site run the servers and type http://localhost into your browser.

Note 3:

The server is fully portable for example copy folder UniServer A) and all it's content to a USB stick and run the servers from there.

Note 4:

Run as a service, at step 5 right click and use the top menu to install and run as a service. Use the second menu item to stop and uninstall services.

Structure nano 1.gif

Top

UniTray - Quick start servers

At first sight both menus give the impression Uniform Server is complex to run. However majority of menu items are for connivance allowing you to select and run additional features should you want to use them.

The first two menu items control both servers; that’s all you need to start and stop the servers.

The third menu item allowing you to control individual servers offers finer control.

LEFT MENU
Run servers as a standard program
COMMENT
Quick Start guide
RIGHT MENU
Run servers as a service

UniTray left.gif

Run Servers as standard Program

  • Start UniTray: In folder UniServer double click on Start.exe tray icon created.
  • L3) Check servers are runnable: Left or Right click tray icon > click Server Status.
    All ports must be free to use.
  • L1) Start Uniform Server. Left click tray icon > click Start UniServer
  • L2) Stop Uniform Server. Left click tray icon > click Stop UniServer
  • L4) Close UniTray. Left or Right click tray icon > click Exit


Run Servers as a Service

  • Start UniTray: In folder UniServer double click on Start.exe tray icon created.
  • R3) Check servers are runnable: Left or Right click tray icon > click Server Status.
    All ports must be free to use.
  • R1) Start Uniform Server. Right click tray icon > click Install and Run all Services
  • R2) Stop Uniform Server. Right click tray icon > click Stop and Remove All Services
  • R4) Close UniTray. Left or Right click tray icon > click Exit

Note: Double click on tray icon to open Apanel in default browser.

UniTray right.gif

Top

Server Status - Diagnostics

Server Status provides a mixed bag of information:

  • Before starting servers checks to see if ports are in use which would prevent the servers starting
  • Displays what ports servers are configured for.
  • Displays what servers are running and in what mode (standard program or service)
  • With servers running displays IP address as seen from the Internet.
  • Checks servers are accessible from the Internet, uses the above IP address

Top

Design Notes

Several scripts have been redesigned reason for this was to separate out configuration from the actual script making it a little more user friendly.

None of the scripts are written in stone hence change them to suite you own requirements. To point you in the right direction I have included some design notes:

Portable Cron --- What makes Cron tick pun intended. Emphasis of the design was for portable use (USB memory stick)
My Ini Files --- Passing ini files are easy however to update them requires a small additional function.

Top

Summary

Changes are transparent however some configuration is required.

Next page covers Cron configuration

Top