[Update documentation Adrian Georgescu **20060825102810 Added a sample apache2 virtual host example ] hunk ./doc/INSTALL.txt 23 -You need MySQL root access from the machine where CDRTool runs, otherwise -copy the files required by setup/setup_mysql.sh to the MySQL machine and run -the script locally. +You need MySQL root access with GRANT priviledges from the machine where +CDRTool runs, otherwise copy the files required by setup/setup_mysql.sh to +the MySQL machine and run the script locally. hunk ./doc/INSTALL.txt 74 +Create a virtual host fro cdrtool. Example for apache2: + +Create a file called cdrtool.example.com (replace it with the proper name) +under /etc/apache2/sites-enabled directory + + + + ServerName cdr1a-test.caiw.net + DocumentRoot /var/www/ + CustomLog /var/log/apache2/cdrtool-access.log combined + ErrorLog /var/log/apache2/cdrtool-errors.log + #SSLEngine On + #SSLCertificateFile /etc/apache2/ssl.crt/snakeoil-rsa.crt + #SSLCertificateKeyFile /etc/apache2/ssl.key/snakeoil-rsa.key + SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown + + + +Then enable the virtual site using: + +a2ensite cdrtool.example.com + +You may enable ssl using "a2enmod ssl" command. If you use ssl you must also +generate a site certificate using the instructions provided by apache2 +software. + hunk ./index.phtml 50 - For detailed installation instructions read doc/INSTALL.txt + + You must first setup php, apache and to create the cdrtool database. + Detailed installation instructions are available in doc/INSTALL.txt + hunk ./index.phtml 55 - Quick setup: copy the sample configuration file: + Once the database is available, create the cdrtool configuration + file by copying the sample configuration file: hunk ./index.phtml 60 - and edit global.inc to reflect your platform setup. + Then edit the configuration file global.inc to reflect your platform setup. hunk ./index.phtml 63 + hunk ./setup/mysql/setup_mysql.sh 3 -mysqladmin -u root -p$1 -h $2 drop $db +mysql -u root -p$1 -h $2 -e "drop database if exists $db" hunk ./setup/mysql/setup_mysql.sh 8 -mysqladmin -u root -p$1 -h $2 reload