/* ---------------- ESP Web Site Management Engine -------------- */
include $HTTP_SERVER_VARS["DOCUMENT_ROOT"] . "/esp/init.php";
/* --------------------------------------------------------------- */
?>
Tutorial on SIP and SIP SER server Installation of SER.
These are step by step very simple instructions to help most people to build
a SER Server starting with a PC.
STEPS:
Step 1: Build a Linux Server based on Red Hat Fedora Core
1
Step 2: Install SER
Step 3: Install WEBSER
Linux Kernal using RedHat's Open Source "Fedora
Core 1"
The following instructions are based on building a Unix server using typical
PC Intel i386 based hardware.
IMPORTANT NOTE: Fedora Core 1 does not support Intel PCs using Serial ATA
Harddisks, and recent testing shows that SER does not run on Fedora Core 2.
- Follow the instructions at http://fedora.redhat.com/download/
- Download the three ISO images for Fedora Core 1 (not 2), also called
"yarrow" from Red Hat.
http://download.fedora.redhat.com/pub/fedora/linux/core/1/
- Create three CDROMs using the three ISO images.
- Insert Fedora Core 1 CD 1 and boot from CD
- Press Enter at boot screen to start setup
- When prompted to do the Media Test you can select Skip if you are
confident your media is OK
- On the Fedora Core welcome screen, select Next
- Select English (English) as your language and press Next
- Select your keyboard type and press Next
- Select your mouse type and press Next
- If you have an existing Redhat Linux installation on the computer
the Fedora installer will find this installation and ask you if you
want to Upgrade the existing installation or perform a refresh installation
of Fedora Core. If this is the case, select Install Fedora Core and
press Next
- We want to do a Server installation
of Fedora Core so select Server and press Next
- Select Manual partition with Disk Druid and
press Next
- Delete any existing disk partitions so that your whole disk is Free
Space
- For simplicity we will make 3 partitions, one
swap partition, one boot partition and one big root partition
- Create a "Swap" partition to be 2
or 4 times the size of your available memory
- Click New
- Select swap as the File System Type
- In the Size (MB) text field enter the size of your swap partition.
As a guide, set the swap partition to be 2 or 4 times the size of
your available memory. As an example, my computer has 256Meg RAM,
so I will set a 1Gig swap
- Under Additional Size Options select Fixed Size
- Ensure Force to be a primary partition is not selected and press
OK
- Create a "/boot"
partition with a File System Type of etx3 with 100Mbytes
- Click New
- In the Mount Point text field enter /boot to be an ext3 type of
100Meg.
- Select ext3 as the File System Type
- In the Size (MB) text field enter the size of your boot partition.
This partition should be at least 50Meg, and a good size is usually
100Meg.
- Under Additional Size Options select Fixed Size
- Select Force to be a primary partition and press OK
- Create a "/"
root partition with the remained of the disk (Optional
would be to create a /var partition for the logs to go)
- Click New
- In the Mount Point text field enter /
- Select ext3 as the File System Type
- Under Additional Size Options select Fill to maximum allowable size
to use the remainder of the disk
- Ensure Force to be a primary partition is not selected and press
OK
- Now you have setup your partitions press Next
- Select GRUB as the boot loader and press Next
- Next you will need to setup the network device of your machine. The information
you enter here will vary depending on your environment
- Select eth0 device and press Edit
- Deselect Configure using DHCP - you want to configure a fixed ip address
- Select Activate on boot
- Enter your IP address
- Enter your Netmask
- Press OK
- Set the hostname manually
- Enter Gateway IP address.
- Enter Primary DNS IP address - For the Tutorial
you may need to change it to simulate the SRV records, probably 169.222.239.2
- Enter Secondary DNS IP address if available
- Enter Tertiary DNS IP address if available
- Press Next
- Select No firewall and press Next
- Press Proceed on the warning screen about a firewall, you can setup
a proper firewall later on
- Select the Default language for your system and press Next
- Select your timezone and press Next
- Enter your desired Root Password and Confirm and press Next
- This document assumes that this server will be dedicated to be your SIP
server and so we will remove some packages that are not needed by your SIP
server. For the purposes of the APAN SIP tutorial we will install Xwindows
so you have a graphical interface with a browser to access the serweb tool.
(Xwindows is not normally needed for your SIP server)
- Under Desktops select X
Window System and click Details (far right side of X Window
System
- Ensure only the following packages are installed (for a small installation
although you can add more):
XFree86-twm
Xfree86-xdm
firstboot
gdm
rhgb
xterm
- To install a decent Window Manager, under Desktops select your Window
Manager of choise, either GNOME or KDE and install your required packages.
For the purposes of the APAN SIP tutorial we will install we will install
KDE.
- Under Desktops select KDE Desktop Environment
and click Details
- Ensure only the following packages are installed (for a small installation
although you can add more):
kdeadmin
kdenetwork
kdeutils
- Under Applications select Editors
and click Details
- Ensure only the following packages are installed (for a small installation
although you can add more):
vim-enhanced
emacs
- Under Applications select Graphic
Internet and click Details
- Ensure only the following packages are installled (for a small installation
although you can add more):
mozilla
- Under Applications deselect Text-based Internet
- Under Servers click Details for Server Configuration
Tools
- Ensure only the following packages are installed (for a small installation
although you can add more):
Xfree86-xauth
- Under Web Servers click Details for
Web Server
- Ensure only the following packages are installed (for a small installation
although you can add more):
httpd-manual
php
php-mysql
- Under Servers deselect Windows File Server
- Under Servers select SQL Database Server
and click Details
- Ensure only the following packages are installed (for a small installation
although you can add more):
mysql-server
- Under Development select Development Tools
and click Details
- Ensure only the following packages are installed (for a small installation
although you can add more):
rpm-build
- Under Development select Network Servers
and click Details
- Ensure only the following packages are installed (for a small installation
although you can add more):
freeradius
tftp-server
- Under System deselect Administration Tools
- Under System select System Tools and
click Details
- Ensure only the following packages are installed (for a small installation
although you can add more):
ethereal
nmap
screen
- Under System deselect Printing Support
- We are now ready to continue with the installation.
- The installation will now check for dependencies, but there shouldn't
be any for our installation as above
- The required media will be listed in a popup dialog box, click Continue
- The installation will now proceed by formatting the required filesystems,
transferring the install image to the hard drive, and then installing the
selected packages.
- You will be prompted to insert the required media at different times throughout
the installation. When prompted, insert the required media and press OK.
- When prompted to reboot, remove the installation media and press Reboot
- You have now installed a system that will run as a SER SIP Server for
the APAN SIP Tutorial
#
# ENABLE ALL THE FOLLOWING SERVICES TO START AUTOMATICLY ON RELOAD OF SERVER
Use the programme "ntsysv"
# enable these:
# http
# mysql
# radiusd
# tftp
Go back to TOP
Step by Step Installation of SER on RedHad
Fedora Core 1
The following has been tested on a RedHat
Fedora Core 1 install as per instructions and is based on SER version
0.8.12
Key to the colours used:
Pink indicates a command or a filename
Red indicates something specific to your SER Server,
do not just put in the example
Go back to TOP
Step by Step Installation of WEBSER on RedHad
Fedora Core 1
When the original distribution is installed the directory locations do not
match up with the typical apache file locations. These notes document all
the changes needed. SUGGESTION: For the Tutorial we should develop a new install
TAR so delegates do not spend 30 minutes editing all the files.
- Get the TAR, un-tar and place the files in the right directory
-
from SER or from
this server
-
untar
tar -xvzf serweb_2004-01-04.tar.gz
- change directory to where the files were untared to
cd serweb_2004-01-04
-
Create the directory and move the files there
mkdir /var/www/phplib
chown root /var/www/phplib
chgrp root /var/www/phplib
chmod 755 /var/www/phplib
cp ./phplib/* /var/www/phplib/ -R
-
# Move the html files to the DocumentRoot directory
mkdir /var/www/html/serweb/
chown apache /var/www/html/serweb/
chgrp root /var/www/html/serweb/
chmod 755 /var/www/html/serweb/
cp ./html/* /var/www/html/serweb -R
- edit these lines in /etc/php.ini
and change short_open_tag = Off" to "On"
and change register_globals = Off" to "On"
-
Create these files as part of the serweb module.
vi /var/www/html/serweb/prolog.html
<body><H1>AARNet SER SIP Server</H1>
vi /var/www/html/serweb/separator.html
<HR>
vi /var/www/html/serweb/epilog.html
<H1>End of page text</H1></BODY>
- ALL the files that follw are with respect to /var/www/html/serweb
cd /var/www/html/serweb
- edit these lines in ./config.php
In general replace all 192.168.2.16 with 192.94.63.28
#If you have changed the mysql username, dbname or password you need to
change these:
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
# NOTE: The above relate to the mysql database, see /usr/sbin/ser_mysql.sh.
$this->root_path="/serweb/";
#The above must match where the serweb html directory is put
this->user_pages_path = this->root_path."user_interface/";
$this->prolog="/serweb/prolog.html";
$this->separator="/serweb/separator.html";
$this->epilog="/serweb/epilog.html";
# /* email address for questions concerning registration */
$this->root_uri.$this->root_path."user_interface/my_account.php?#session#\n\n".
$this->root_uri.$this->root_path."user_interface/reg/confirmation.php?nr=#confirm#\n\n".
# There is heaps more to customise in this file which we will leave to the
user. These include more email references
# and text used in emails to users who register. Here are some example which
do not need to be changed for this tutorial:
$this->mail_header_from="Stephen.Kingham@aarnet.edu.au";
$this->web_contact="sip:Stephen.Kingham@aarnet.edu.au";
$this->title="The AARNet IP Telephony Site";
$this->infomail = "Stephen.Kingham@aarnet.edu.au";
$this->regmail = "Stephen.Kingham@aarnet.edu.au";
- Edit /var/www/phplib/db_mysql.inc
# You need to add the following to /* public: connection parameters */
var $Host = "192.94.63.28";
var $Database = "ser";
var $User = "ser";
var $Password = "heslo";
The follwoing changes can be applied two ways:
1. Get and extract this tar file |
get the file fixupserwebphp.tar
from this server
put it in the directory /usr/local/src/ser
issue these commands
cd /var/www/html/serweb
tar -xvf fixupserwebphp.tar
|
OR |
|
2. Manualy make all these changes |
Generaly you have to add "../" to all these files so that
they point correctly to where the phplib is.
|
Go back to TOP
Initial configuration of SER
Some key SER configuration commands
- Create users:
You must be root.
sudo su -
Format of the command is: serctl add <username> <password> <email>
and you need to use the DEFAULT_PW=heslo as the password set in /usr/sbin/ser_mysql.sh
/usr/sbin/serctl add srk
password Stephen.Kingham@aarnet.edu.au
/usr/sbin/serctl add caf password Clayton.Forbes@aarnet.edu.au
change
password to the password
that will be used by the user, do not use password as a password!
- Give the User several aliases, such as a telephone number:
/usr/sbin/serctl
- Set up some permanent forking, so calls to the user also go through to
telephone numbers:
/usr/sbin/serctl
- Test the connection using two SIP UAs.
- See the examples of how to configure UAs.
- Use the this command to see who is logged in:
serctl ul show
- What places users can call are set by a flag for the user in mysql, the
"acl" table. Use the serctl command to enable various flags for
each user. You can create the flags by configuring the serctl programme
it's self, ie vi /usr/sbin/serctl.
/usr/sbin/serctl acl grant srk
free-pstn
/usr/sbin/serctl acl grant srk
ld
/usr/sbin/serctl acl grant srk
ld
What the various flags do is done within the routing in ser.cfg.
Go back to TOP
/* --------- The HTML/PHP code that comes after the page content --------- */
include $HTTP_SERVER_VARS["DOCUMENT_ROOT"] . "/php/body_bottom_level1.php";
/* ------------------------------------------------------------------------ */
?>