/* ---------------- ESP Web Site Management Engine -------------- */ include $HTTP_SERVER_VARS["DOCUMENT_ROOT"] . "/esp/init.php"; /* --------------------------------------------------------------- */ ?>
Installation of SER.
This page contains instructions to install SER on
http://iptel.org/ser/doc/ser-howto/ser-Howto.html
By Quincy Wu and Stephen Kingham, June 2004
The following has been tested on a FreeBSD 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
from SER or from this server
Install
cd /; gunzip -c ser-0.8.12_freebsd_i386.tar.gz | tar -tvf -
Start
/usr/local/sbin/ser -P /var/run/ser.pid
Do some environmental changes
export SIP_DOMAIN="nctu.edu.tw"
export SIP_DOMAIN="nctu.edu.tw"
export LD_LIBRARY_PATH /usr/local/lib/mysql
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.
from SER or from this server
untar
gunzip -c serweb_2004-01-04.tar.gz | tar
-xvf -
Move the phplib directory. It is recommended that you don't
place the directory in the HTML tree on your server.
mv phplib /usr/local/www/
chown -R root:mysql /usr/local/www/phplib/
chmod -R 755 /usr/local/www/phplib/
Move the html files to the DocumentRoot directory
mv html /usr/local/www/data/serweb/
chown -R root:mysql /usr/local/www/data/serweb/
chmod -R 755 /usr/local/www/data/serweb/
Change register_globals = "Off" to "On"
Create these files as part of the serweb module.
echo "<BODY><H1> AARNet SIP Tutorial"
> serweb/prolog.html
echo "</H1><HR>" > /usr/local/www/data/serweb/separator.html
echo "<H1>End of Page</H1></BODY>"
> /usr/local/www/data/serweb/epilog.html
vi ./config.php
:%s/192.168.2.16/your.host.name/
The follwoing changes can be applied three ways:
1. Get and extract this tar file |
Get the file fixupserwebphp.tar (yet to be developed) from this server put it in the directory /usr/local/src/ser Issue these commands cd /usr/local/www/data/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.
|
OR | |
3. Create a symbolic link |
ln -s /usr/local/www/phplib /usr/local/www/data/ # For an operating service, this may not be recommended for security reason; but it works for the scope of this workshop. |
kill -HUP `cat /var/run/httpd.pid`
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
from SER or from this server
Install
rpm -i ser-0.8.12-0.i386.rpm
Start
/etc/rc.d/init.d/ser start
Do some environmental changes
export SIP_DOMAIN="aarnet.edu.au" Note I used an IP address here to make it work.
export SIP_DOMAIN="aarnet.edu.au" Note I used an IP address here to make it work.
from SER or from this server
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.
from SER or from this server
untar
tar -xvzf serweb_2004-01-04.tar.gz
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
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>
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.
|
LAST STEP: START APACHE
/etc/rc.d/init.d/httpd start
Useful links