# # # RAGUI source install on CENTOS 5 # # # Install tarball # cp ragui.tgz /opt cd /opt tar xvzf ragui.tgz # # Install MySQL # yum install mysql-server yum install mysql-devel service mysqld start # # Set MySQL root password # mysqladmin -u root password "ragui" # or whatever password you prefer # # Set up RAGUI database # mysql -u root -p # use password for root that you created above # # after logging in, enter the following MySQL commands # # mysql> create database ragui; # mysql> create user 'ragui'@'localhost' identified by 'asterisk'; # mysql> grant all on ragui.* to 'ragui'@'localhost'; # mysql> exit # cd /opt/ragui mysql -u ragui -p ragui < ragui.sql # use password of "asterisk" for the ragui user # # Install Asterisk # cd /usr/src # # You will need termcap dev to build Asterisk # yum install libtermcap-devel yum install ncurses-devel # # get and build core Asterisk # wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.18.1.tar.gz tar xzvf asterisk-1.4.18.1.tar.gz mv asterisk-1.4.18.1 asterisk cd asterisk ./configure # # Install patch for queuelogs to Mysql db # wget http://www.plack.net/asterisk-patches/QueueLogger/logger-mysql.diff patch < logger-mysql.diff # # patch will complain it can't find the file # enter "main/logger.c # cd main wget http://www.plack.net/asterisk-patches/QueueLogger/logger-mysql.c cd .. make make install make samples cd /usr/src rm asterisk-1.4.18.1.tar.gz # # get and build Asterisk addons # wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.7.tar.gz tar xvzf asterisk-addons-1.4.7.tar.gz mv asterisk-addons-1.4.7 asterisk-addons cd asterisk-addons ./configure make make install cd /usr/src mkdir /var/run/asterisk rm asterisk-addons-1.4.7.tar.gz # # Copy in RAGUI Asterisk configd # /bin/cp -f /opt/ragui/asterisk/etc/asterisk/* /etc/asterisk rm /etc/asterisk/extensions.ael # # Install Ruby(if not installed) # yum install ruby # # Install gem # wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz tar xvzf rubygems-1.2.0.tgz cd rubygems-1.2.0 ruby setup.rb # # Install Rails # gem install -v=2.1.0 rails # # Install MySQL Ruby for config scripts cd /usr/src wget http://tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.6.tar.gz tar xvzf mysql-ruby-2.7.6.tar.gz cd mysql-ruby-2.7.6 ruby extconf.rb --with-mysql-config make make install cd /usr/src rm mysql-ruby-2.7.6.tar.gz # # Start Asterisk # asterisk # # Start RAGUI # cd /opt/ragui script/server -d # do not run if you want to use optional fcgi/Apache below # # # In your browser, goto to http://:3000 # the login username/password is admin/ragui # # # optional fast cgi with Apache install # yum install httpd yum install fcgi yum install fcgi-devel yum install mod_fcgid gem install fcgi useradd asterisk chown -R asterisk:apache /var/lib/asterisk # # add the following to /etc/httpd/conf/httpd.conf # if using this option, DO NOT run the script/server -d command above # SetEnv RAILS_ENV development ServerName rails DocumentRoot /opt/ragui/public/ ErrorLog /opt/ragui/log/apache.log Options ExecCGI FollowSymLinks AddHandler fcgid-script .fcgi AllowOverride all Order allow,deny Allow from all # # start Apache # service httpd start # # In your browser, goto to http:// # the login username/password is admin/ragui