Hi everyone,
I installed the serweb according to the instructions but it doesn't work when i type http://localhost/index.php in the browser. I followed these instructions...
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
-
-
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 | 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. |
Plz, help me how i can configure it to work....
waiting positive response...
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.