Showing posts with label CDRTool. Show all posts
Showing posts with label CDRTool. Show all posts

Tuesday, 28 October 2014

CDRTool Php and Apache setup

PHP setup and Apache setup :


Install PHP and dependencies. If you have chosen to install the debian package, the dependencies will be resolved during installation.

Example for Debian systems and php4:

Enable php-mysql module in /etc/php/*/php.ini:

extension=mysql.so

Enable php in apache web server. Configuration example for apache on Debian systems:

/etc/apache/httpd.conf

DirectoryIndex index.phtml index.php index.html index.htm index.shtml index.cgi
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml

Make sure php module is insbale in apache configuration. For apache this is done in /etc/apache/modules.conf:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Change AllowOverride None to AllowOverride All

For apache2 us a2enmode php command.

Create a virtual host for cdrtool. Example for apache2:

cp setup/apache2/sites-available/cdrtool.example.com /etc/apache2/sites-enabled
cp setup/apache2/conf.d/cdrtool /etc/apache2/conf.d/



ServerName cdrtool.example.com
DocumentRoot /var/www/
CustomLog /var/log/apache2/cdrtool-access.log combined
ErrorLog /var/log/apache2/cdrtool-errors.log
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

# To enable SSL:
# a2enmode ssl
# add Listen 443 to ports.conf file
# generate site certificates

# SSLEngine On
# SSLCertificateFile /etc/apache2/ssl/snakeoil-rsa.crt
# SSLCertificateKeyFile /etc/apache2/ssl/snakeoil-rsa.key



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.

Wednesday, 24 September 2014

CDRTool virtual host Configuration | how to enable Virtual host on 8080 post


This post is written by a newbie linux user .

We know that apache2 is runnig on 80 port. I also tried to add the new virtual host for CDRTool in 80 port but it is not wotking. So i decided to run CDRTool virtual host on 8080 port.

Here is the configuration

step 1 :

cp setup/apache2/sites-available/cdrtool.example.com /etc/apache2/sites-enabled
step 2 :

rename it to your website name
mv cdrtool.example.com mysite.com

step 3 :
edit mysite.com file to suit your Environment here is my file

Listen 8080

NameVirtualHost mysite.com:8080

<VirtualHost mysite.com:8080>

ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /var/www/
CustomLog /var/log/apache2/cdrtool-access.log combined
ErrorLog /var/log/apache2/cdrtool-errors.log
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

<Directory /var/www/CDRTool>
Options FollowSymLinks
AllowOverride All
</Directory>

</VirtualHost>

save the file
step 4 :
now move this file to /etc/apache2/sites-available/ folder.
Mv /etc/apache2/sites-enable/mysite.com /etc/apache2/sites-available/

step 5 :
now use a2ensite command on mysite.com file like this
a2ensite mysite.com

step 6 :
Now restart the apache2 like this
/etc/init.d/apache2 relaod
That's it. You are successfully configured one New Virtual host

step 7:
open your browser. Now type like this

mysite.com:8080/CDRTool

ohhhh you can see CDRTool Login page now..


E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP