<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1433207994035541360</id><updated>2014-05-26T00:43:46.237-07:00</updated><category term="freeswitch config"/><title type='text'>Open Source Configuration</title><subtitle type='html'>Linux configurations for open source software  Phone</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-2712889190759183305</id><published>2014-05-16T07:17:00.002-07:00</published><updated>2014-05-18T22:32:00.644-07:00</updated><title type='text'>How to setup Asterisk 1.8.7.1 on CentOS 6 i386 with FreePBX, Hylafax, Avantfax, IAXModem, and A2billing </title><content type='html'>&lt;br /&gt;&lt;b&gt;&amp;nbsp;Asterisk 1.8.7.1, FreePBX 2.8.1, HylaFAX 6.0.5, AvantFAX 3.3.3, IAXModem 1.2.0, A2Billing 1.9.4&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you have any questions or comments please leave a comment or contact me directly email jeffkingsley007 [at]gmail dot com &amp;nbsp;or call 256782280084&lt;br /&gt;&lt;br /&gt;DEMO LINES&lt;br /&gt;&lt;br /&gt;A2Billing Working Example, US Calling ONLY&lt;br /&gt;Access# 413-206-9861&lt;br /&gt;PIN# 4320101553&lt;br /&gt;&lt;br /&gt;IAXModem Fax over IP, Receive Line Only&lt;br /&gt;Fax# 413-455-0155&lt;br /&gt;&lt;br /&gt;Asterisk Incoming Line, Live Line&lt;br /&gt;Access# 413-285-3050&lt;br /&gt;&lt;br /&gt;#CentOS 6 Asterisk 1.8.8.0 PHP 5.3.2&lt;br /&gt;&lt;br /&gt;http://mirror.centos.org/centos-6/6/os/i386&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;#Install New Kernel &amp;lt; 4GB Ram&lt;br /&gt;yum -y install kernel kernel-devel kernel-headers system-config*&lt;br /&gt;&lt;br /&gt;Install New Kernel &amp;gt; 4GB Ram&lt;br /&gt;yum -y install kernel-PAE kernel-PAE-devel system-config*&lt;br /&gt;reboot&lt;br /&gt;&lt;br /&gt;#Firewall &amp;amp; Network Settings&lt;br /&gt;setup&lt;br /&gt;&lt;br /&gt;#Install Asterisk Dependencies&lt;br /&gt;yum install -y make nano mgetty mgetty-voice cups-lpd perl-DBD-Pg subversion wget python python-devel glibc glibc-devel gcc gcc-c++ flex screen sox libxml2-devel libxml2 yum-utils ncurses-devel subversion libtiff libtiff-devel libusb-devel bison bison-devel ncurses ntp zlib zlib-devel openssl openssl-devel gnutls-devel httpd bind ghostscript-devel speex-devel libogg-devel libvorbis-devel curl-devel unixODBC-devel libtool-ltdl-devel net-snmp-devel bzip2-devel newt-devel lm_sensors-devel openldap-devel postgresql-devel gtk+-devel libtermcap termcap webalizer expect sendmail-cf ImageMagick ImageMagick-devel ghostscript libtiff netpbm-progs libungif cups lpr psutils libc-client dovecot java-1.6.0-openjdk java-1.6.0-openjdk-devel php php-devel php-common php-mysql php-pdo php-soap php-xml php-xmlrpc php-mbstring php-gd php-pear php-process php-imap mysql mysql-devel mysql-server php-mysql mysql-libs libmysqlclient15 mysql-connector-odbc memcached php-pecl-memcache php-adodb&lt;br /&gt;&lt;br /&gt;#Ghostscript Fonts Fix&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://ghostscript.googlecode.com/files/ghostscript-fonts-std-8.11.tar.gz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf ghostscript-fonts-std-8.11.tar.gz&lt;br /&gt;mv fonts/ /usr/share/ghostscript/&lt;br /&gt;nano /usr/share/ghostscript/8.70/Resource/Init/Fontmap.GS&lt;br /&gt;&lt;br /&gt;#REPLACE LINE 92&lt;br /&gt;/Courier-Bold (n022004l.pfa) ;&lt;br /&gt;&lt;br /&gt;#Add Asterisk User&lt;br /&gt;useradd -c &quot;Asterisk PBX&quot; -d /var/lib/asterisk asterisk&lt;br /&gt;&lt;br /&gt;#Install Webmin Development&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://download.webmin.com/devel/rpm/webmin-1.571-1.noarch.rpm&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;wget http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarc...&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;rpm -ivh webmin-1.571-1.noarch.rpm&lt;br /&gt;rpm -ivh epel-release-6-5.noarch.rpm&lt;br /&gt;rpm -ivh remi-release-6.rpm&lt;br /&gt;&lt;br /&gt;reboot&lt;br /&gt;&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6...&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;sh setuptools-0.6c11-py2.6.egg&lt;br /&gt;&lt;br /&gt;#Install libpri&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.1...&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf libpri-1.4.12.tar.gz&lt;br /&gt;cd libpri-1.4.12&lt;br /&gt;make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;#Install DAHDI&lt;br /&gt;cd ..&lt;br /&gt;wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-l...&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf dahdi-linux-2.5.0.2.tar.gz&lt;br /&gt;cd dahdi-linux-2.5.0.2&lt;br /&gt;make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-t...&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf dahdi-tools-2.5.0.2.tar.gz&lt;br /&gt;cd dahdi-tools-2.5.0.2&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install &amp;amp;&amp;amp; make config&lt;br /&gt;&lt;br /&gt;#Setup Asterisk directories and startup files&lt;br /&gt;mkdir -p /var/lib/digium/licenses/&lt;br /&gt;chown asterisk /var/lib/php/session/&lt;br /&gt;mkdir -p /etc/udev/permissions.d/&lt;br /&gt;/sbin/udevd&lt;br /&gt;chkconfig --add dahdi&lt;br /&gt;/etc/init.d/dahdi start&lt;br /&gt;chkconfig --add httpd&lt;br /&gt;/etc/init.d/httpd start&lt;br /&gt;chkconfig --add named&lt;br /&gt;/etc/init.d/named start&lt;br /&gt;chkconfig --add mysqld&lt;br /&gt;/etc/init.d/mysqld start&lt;br /&gt;&lt;br /&gt;#Install more Dependencies for Asterisk&lt;br /&gt;cd ..&lt;br /&gt;wget http://asterisk.gnuinter.net/files/asterisk-perl-1.01.tar.gz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf asterisk-perl-1.01.tar.gz&lt;br /&gt;cd asterisk-perl-1.01&lt;br /&gt;perl Makefile.PL&lt;br /&gt;make all&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;wget http://mpg123.de/download/mpg123-1.13.4.tar.bz2&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar jxf mpg123-1.13.4.tar.bz2&lt;br /&gt;cd mpg123-1.13.4&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.1.tar.gz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf lame-3.99.1.tar.gz&lt;br /&gt;cd lame-3.99.1&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf iksemel-1.4.tar.gz&lt;br /&gt;cd iksemel-1.4&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;echo &quot;/usr/local/lib&quot; &amp;gt; /etc/ld.so.conf.d/iksemel.conf&lt;br /&gt;ldconfig&lt;br /&gt;&lt;br /&gt;#Install Secure RTP Communications&lt;br /&gt;cd ..&lt;br /&gt;wget http://downloads.sourceforge.net/project/srtp/srtp/1.4.4/srtp-1.4.4.tgz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf srtp-1.4.4.tgz&lt;br /&gt;cd srtp&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;#Install Fax Capability&lt;br /&gt;cd ..&lt;br /&gt;wget http://soft-switch.org/downloads/spandsp/spandsp-0.0.6pre18.tgz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf spandsp-0.0.6pre18.tgz&lt;br /&gt;cd spandsp-0.0.6&lt;br /&gt;./configure --prefix=/usr &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1...&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf asterisk-1.8.7.1.tar.gz&lt;br /&gt;cd asterisk-1.8.7.1&lt;br /&gt;contrib/scripts/get_mp3_source.sh&lt;br /&gt;./configure&lt;br /&gt;make menuconfig&lt;br /&gt;&lt;br /&gt;#### app_mysql, app_saycountpl, cdr_mysql, format_mp3, res_config_mysql, res_srtp&lt;br /&gt;&lt;br /&gt;make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;#Install g729 Codec&lt;br /&gt;&lt;br /&gt;#For Server&lt;br /&gt;cd /usr/lib/asterisk/modules&lt;br /&gt;cat /proc/cpuinfo&lt;br /&gt;wget -O codec_g723.so http://asterisk.hosting.lv/bin/codec_g723-ast18-gcc4-glibc-core2.so&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;wget -O codec_g729.so http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-core2.so&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;chmod +x codec_g723.so&lt;br /&gt;chmod +x codec_g729.so&lt;br /&gt;&lt;br /&gt;#Install FreePBX&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://mirror.freepbx.org/freepbx-2.8.1.tar.gz&lt;br /&gt;tar zxf freepbx-2.8.1.tar.gz&lt;br /&gt;cd freepbx-2.8.1&lt;br /&gt;mysqladmin create asterisk&lt;br /&gt;mysqladmin create asteriskcdrdb&lt;br /&gt;mysql asterisk &amp;lt; SQL/newinstall.sql&lt;br /&gt;mysql asteriskcdrdb &amp;lt; SQL/cdr_mysql_table.sql&lt;br /&gt;mysql&lt;br /&gt;GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asterisk@localhost&lt;br /&gt;Email links icon&lt;br /&gt;IDENTIFIED BY &#39;changepassword&#39;;&lt;br /&gt;GRANT ALL PRIVILEGES ON asterisk.* TO asterisk@localhost&lt;br /&gt;Email links icon&lt;br /&gt;IDENTIFIED BY &#39;changepassword&#39;;&lt;br /&gt;flush privileges;&lt;br /&gt;\q&lt;br /&gt;pear channel-update pear.php.net&lt;br /&gt;pear install DB MDB2 MDB2#mysql&lt;br /&gt;mkdir -p /var/lib/asterisk/run&lt;br /&gt;&lt;br /&gt;#Fix Asterisk Music On Hold&lt;br /&gt;ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3&lt;br /&gt;&lt;br /&gt;#Install FreePBX&lt;br /&gt;cd /usr/src/freepbx-2.8.1&lt;br /&gt;./install_amp&lt;br /&gt;&lt;br /&gt;setenforce 0&lt;br /&gt;&lt;br /&gt;#Username asterisk Password changepassword&lt;br /&gt;#Change httpd apache user to asterisk&lt;br /&gt;&lt;br /&gt;chmod 777 /etc/amportal.conf&lt;br /&gt;cd /var/lib/asterisk&lt;br /&gt;chown -R asterisk:asterisk *&lt;br /&gt;chmod -R 777 *&lt;br /&gt;cd /var/www/html&lt;br /&gt;chown -R asterisk:asterisk *&lt;br /&gt;chmod -R 777 *&lt;br /&gt;chown -R asterisk:asterisk /var/lib/php/session&lt;br /&gt;chown -R asterisk:asterisk /var/spool/asterisk/*&lt;br /&gt;&lt;br /&gt;#Edit Asterisk IAX2 Settings Add Other Options in FreePBX&lt;br /&gt;calltokenoptional = 0.0.0.0/0.0.0.0&lt;br /&gt;maxcallnumbers = 16382&lt;br /&gt;requirecalltoken = no&lt;br /&gt;&lt;br /&gt;#Asterisk Settings for a2billing&lt;br /&gt;nano /etc/asterisk/cdr_mysql.conf&lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;hostname = localhost&lt;br /&gt;dbname=asteriskcdrdb&lt;br /&gt;password = changepassword&lt;br /&gt;user = asterisk&lt;br /&gt;userfield=1&lt;br /&gt;loguniqueid=yes&lt;br /&gt;;port=3306&lt;br /&gt;;sock=/tmp/mysql.sock&lt;br /&gt;&lt;br /&gt;nano /etc/asterisk/res_mysql.conf&lt;br /&gt;&lt;br /&gt;[a2billing]&lt;br /&gt;dbhost = localhost&lt;br /&gt;dbname = a2billing&lt;br /&gt;dbuser = root&lt;br /&gt;dbpass =&lt;br /&gt;dbport = 3306&lt;br /&gt;dbsock = /var/lib/mysql/mysql.sock&lt;br /&gt;&lt;br /&gt;#A2Billing Installation&lt;br /&gt;cd /usr/src&lt;br /&gt;mkdir a2billing&lt;br /&gt;cd a2billing&lt;br /&gt;wget --no-check-certificate https://github.com/Star2Billing/a2billing/tarball/v1-current&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf v1-current&lt;br /&gt;cd Star2Billing-a2billing-*&lt;br /&gt;mv * ..&lt;br /&gt;cd ..&lt;br /&gt;rm -rf Star2Billing-a2billing-*&lt;br /&gt;ln -s /usr/src/a2billing/a2billing.conf /etc/a2billing.conf&lt;br /&gt;chmod 777 /etc/asterisk&lt;br /&gt;touch /etc/asterisk/additional_a2billing_iax.conf&lt;br /&gt;touch /etc/asterisk/additional_a2billing_sip.conf&lt;br /&gt;echo \#include additional_a2billing_sip.conf &amp;gt;&amp;gt; /etc/asterisk/sip_custom.conf&lt;br /&gt;echo \#include additional_a2billing_iax.conf &amp;gt;&amp;gt; /etc/asterisk/iax_custom.conf&lt;br /&gt;chown asterisk:asterisk /etc/asterisk/additional_a2billing_iax.conf&lt;br /&gt;chown asterisk:asterisk /etc/asterisk/additional_a2billing_iax.conf&lt;br /&gt;cd addons/sounds/&lt;br /&gt;./install_a2b_sounds.sh&lt;br /&gt;ln -s /usr/src/a2billing/AGI/a2billing.php /var/lib/asterisk/agi-bin/a2billing.php&lt;br /&gt;ln -s /usr/src/a2billing/AGI/lib/ /var/lib/asterisk/agi-bin/&lt;br /&gt;chmod +x /var/lib/asterisk/agi-bin/a2billing.php&lt;br /&gt;ln -s /usr/src/a2billing/customer/ /var/www/html/billing&lt;br /&gt;ln -s /usr/src/a2billing/admin/ /var/www/html/billing&lt;br /&gt;ln -s /usr/src/a2billing/agent/ /var/www/html/billing&lt;br /&gt;ln -s /usr/src/a2billing/common/ /var/www/html/billing&lt;br /&gt;chmod 777 /var/www/html/billing/admin/templates_c/&lt;br /&gt;chmod 777 /var/www/html/billing/agent/templates_c/&lt;br /&gt;chmod 777 /var/www/html/billing/templates_c/&lt;br /&gt;&lt;br /&gt;nano /etc/asterisk/manager.conf&lt;br /&gt;&lt;br /&gt;[myasterisk] ;FOR a2billing&lt;br /&gt;secret = mycode&lt;br /&gt;deny=0.0.0.0/0.0.0.0&lt;br /&gt;permit=127.0.0.1/255.255.255.0&lt;br /&gt;read = system,call,log,verbose,command,agent,user&lt;br /&gt;write = system,call,log,verbose,command,agent,user&lt;br /&gt;&lt;br /&gt;#Install Database for A2Billing&lt;br /&gt;cd /usr/src/a2billing/DataBase/mysql-5.x&lt;br /&gt;mysqladmin create a2billing&lt;br /&gt;mysql&lt;br /&gt;GRANT ALL PRIVILEGES ON a2billing.* TO a2billing@localhost&lt;br /&gt;Email links icon&lt;br /&gt;IDENTIFIED BY &#39;changepassword&#39;;&lt;br /&gt;flush privileges;&lt;br /&gt;\q&lt;br /&gt;./install-db.sh&lt;br /&gt;&lt;br /&gt;#USE a2billing/changepassword&lt;br /&gt;&lt;br /&gt;#Secure MySQL&lt;br /&gt;nano /etc/my.cnf&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;bind-address = 127.0.0.1&lt;br /&gt;&lt;br /&gt;nano /etc/asterisk/extensions_custom.conf&lt;br /&gt;&lt;br /&gt;[a2billing]&lt;br /&gt;; Set by Network staff for manual assignment&lt;br /&gt;exten =&amp;gt; _X.,1,AGI(a2billing.php,1)&lt;br /&gt;exten =&amp;gt; _X.,n,Wait()&lt;br /&gt;exten =&amp;gt; _X.,n,Hangup()&lt;br /&gt;&lt;br /&gt;[a2billing-cc]&lt;br /&gt;; Used by Calling Card Platform for incoming calls&lt;br /&gt;exten =&amp;gt; _X.,1,AGI(a2billing.php,2)&lt;br /&gt;exten =&amp;gt; _X.,n,Wait()&lt;br /&gt;exten =&amp;gt; _X.,n,Hangup()&lt;br /&gt;&lt;br /&gt;[a2billing-passthrough]&lt;br /&gt;; Set by website signup for automatic assignment&lt;br /&gt;exten =&amp;gt; _X.,1,AGI(a2billing.php,3)&lt;br /&gt;exten =&amp;gt; _X.,n,Wait()&lt;br /&gt;exten =&amp;gt; _X.,n,Hangup()&lt;br /&gt;&lt;br /&gt;[a2billing-did]&lt;br /&gt;; This is where inbound DID calls are pointed to if you plan to be a DID service provider&lt;br /&gt;exten =&amp;gt; _X.,1,AGI(a2billing.php,1,did)&lt;br /&gt;exten =&amp;gt; _x,1,Hangup()&lt;br /&gt;&lt;br /&gt;[macro-dialout-trunk-predial-hook]&lt;br /&gt;exten =&amp;gt; s,1,GotoIf($[&quot;${OUT_${DIAL_TRUNK}:4:4}&quot; = &quot;A2B/&quot;]?custom-freepbx-a2billing,${OUTNUM},1:2)&lt;br /&gt;exten =&amp;gt; s,2,MacroExit&lt;br /&gt;&lt;br /&gt;[custom-freepbx-a2billing]&lt;br /&gt;exten =&amp;gt; _X.,1,AGI(a2billing.php|${OUT_${DIAL_TRUNK}:8})&lt;br /&gt;exten =&amp;gt; _X.,n,Hangup()&lt;br /&gt;&lt;br /&gt;mkdir /var/run/a2billing&lt;br /&gt;&lt;br /&gt;#Crontab&lt;br /&gt;&lt;br /&gt;crontab -e&lt;br /&gt;i&lt;br /&gt;&lt;br /&gt;# update the currency&lt;br /&gt;0 6 * * * php /usr/src/a2billing/Cronjobs/currencies_update_yahoo.php&lt;br /&gt;&lt;br /&gt;# monthly services subscription&lt;br /&gt;0 6 1 * * php /usr/src/a2billing/Cronjobs/a2billing_subscription_fee.php&lt;br /&gt;&lt;br /&gt;# check account of users&lt;br /&gt;0 * * * * php /usr/src/a2billing/Cronjobs/a2billing_notify_account.php&lt;br /&gt;&lt;br /&gt;# did billing&lt;br /&gt;0 2 * * * php /usr/src/a2billing/Cronjobs/a2billing_bill_diduse.php&lt;br /&gt;&lt;br /&gt;# recurring service.&lt;br /&gt;0 12 * * * php /usr/src/a2billing/Cronjobs/a2billing_batch_process.php&lt;br /&gt;&lt;br /&gt;# generate invoices and for each user.&lt;br /&gt;0 6 * * * php /usr/src/a2billing/Cronjobs/a2billing_batch_billing.php&lt;br /&gt;&lt;br /&gt;# autodialer&lt;br /&gt;*/5 * * * * php /usr/src/a2billing/Cronjobs/a2billing_batch_autodialer.php&lt;br /&gt;&lt;br /&gt;# manage alarms&lt;br /&gt;0 * * * * php /usr/src/a2billing/Cronjobs/a2billing_alarm.php&lt;br /&gt;&lt;br /&gt;esc&lt;br /&gt;:wq!&lt;br /&gt;&lt;br /&gt;mkdir -p /var/lib/a2billing/script&lt;br /&gt;touch /var/log/asterisk/a2billing-daemon-callback.log&lt;br /&gt;touch /var/log/a2billing-daemon-callback.log&lt;br /&gt;touch /var/log/cront_a2b_alarm.log&lt;br /&gt;touch /var/log/cront_a2b_autorefill.log&lt;br /&gt;touch /var/log/cront_a2b_batch_process.log&lt;br /&gt;touch /var/log/cront_a2b_bill_diduse.log&lt;br /&gt;touch /var/log/cront_a2b_subscription_fee.log&lt;br /&gt;touch /var/log/cront_a2b_currency_update.log&lt;br /&gt;touch /var/log/cront_a2b_invoice.log&lt;br /&gt;touch /var/log/a2billing_paypal.log&lt;br /&gt;touch /var/log/a2billing_epayment.log&lt;br /&gt;touch /var/log/api_ecommerce_request.log&lt;br /&gt;touch /var/log/api_callback_request.log&lt;br /&gt;touch /var/log/a2billing_agi.log&lt;br /&gt;LOAD_LOC=/usr/src/a2billing&lt;br /&gt;easy_install sqlalchemy&lt;br /&gt;cd $LOAD_LOC/CallBack/callback-daemon-py/&lt;br /&gt;cp $LOAD_LOC/CallBack/callback-daemon-py/build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon&lt;br /&gt;chmod +x /etc/init.d/a2b-callback-daemon&lt;br /&gt;python setup.py build&lt;br /&gt;python setup.py bdist_egg&lt;br /&gt;easy_install dist/callback_daemon-1.0.prod-py2.6.egg&lt;br /&gt;&lt;br /&gt;chkconfig --add a2b-callback-daemon&lt;br /&gt;service a2b-callback-daemon start&lt;br /&gt;chkconfig a2b-callback-daemon on&lt;br /&gt;&lt;br /&gt;#FreePBX Custom Destinations in /etc/asterisk/extensions_custom.conf&lt;br /&gt;Custom Destination: a2billing,${EXTEN},1&lt;br /&gt;Description: a2billing&lt;br /&gt;&lt;br /&gt;Custom Destination: a2billing-callback,${EXTEN},1&lt;br /&gt;Description: a2billing-callback&lt;br /&gt;&lt;br /&gt;Custom Destination: a2billing-cid-callback,${EXTEN},1&lt;br /&gt;Description: a2billing-cid-callback&lt;br /&gt;&lt;br /&gt;Custom Destination: a2billing-did,${EXTEN},1&lt;br /&gt;Description: a2billing-did&lt;br /&gt;&lt;br /&gt;Custom Destination: a2billing-sip,${EXTEN},1&lt;br /&gt;Description: a2billing-sip&lt;br /&gt;&lt;br /&gt;Custom Destination: a2billing-cc,${EXTEN},1&lt;br /&gt;Description: a2billing-cc&lt;br /&gt;&lt;br /&gt;Custom Destination: a2billing-passthrough,${EXTEN},1&lt;br /&gt;Description: a2billing-passthrough&lt;br /&gt;&lt;br /&gt;#Install Tesseract&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://www.leptonica.com/source/leptonica-1.68.tar.gz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf leptonica-1.68.tar.gz&lt;br /&gt;cd leptonica-1.68&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;wget http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf tesseract-3.00.tar.gz&lt;br /&gt;cd tesseract-3.00&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;#Install IAXModem&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://downloads.sourceforge.net/project/iaxmodem/iaxmodem/iaxmodem-1.2....&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf iaxmodem-1.2.0.tar.gz&lt;br /&gt;cd iaxmodem-1.2.0&lt;br /&gt;./configure&lt;br /&gt;./build static&lt;br /&gt;mkdir -p /etc/iaxmodem&lt;br /&gt;mkdir -p /var/log/iaxmodem&lt;br /&gt;cp iaxmodem /usr/local/sbin/&lt;br /&gt;&lt;br /&gt;nano /etc/iaxmodem/ttyIAX1&lt;br /&gt;&lt;br /&gt;device /dev/ttyIAX1&lt;br /&gt;owner uucp:uucp&lt;br /&gt;mode 660&lt;br /&gt;port 4570&lt;br /&gt;refresh 300&lt;br /&gt;server 127.0.0.1&lt;br /&gt;peername 111&lt;br /&gt;secret 111password&lt;br /&gt;codec ulaw&lt;br /&gt;cidname Fax&lt;br /&gt;cidnumber 4132853050&lt;br /&gt;nojitterbuffer&lt;br /&gt;&lt;br /&gt;#Install Hylafax&lt;br /&gt;cd ..&lt;br /&gt;wget ftp://ftp.hylafax.org/source/hylafax-6.0.5.tar.gz&lt;br /&gt;tar zxf hylafax-6.0.5.tar.gz&lt;br /&gt;cd hylafax-6.0.5&lt;br /&gt;./configure&lt;br /&gt;&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;faxsetup&lt;br /&gt;&lt;br /&gt;service hylafax restart&lt;br /&gt;&lt;br /&gt;nano /var/spool/hylafax/etc/config.ttyIAX1&lt;br /&gt;&lt;br /&gt;CountryCode: 1&lt;br /&gt;AreaCode: 413&lt;br /&gt;FAXNumber: 1.413.285.3050&lt;br /&gt;LongDistancePrefix: 1&lt;br /&gt;InternationalPrefix: 011&lt;br /&gt;DialStringRules: &quot;etc/dialrules&quot;&lt;br /&gt;ServerTracing: 1&lt;br /&gt;SessionTracing: 1&lt;br /&gt;RecvFileMode: 0600&lt;br /&gt;LogFileMode: 0600&lt;br /&gt;DeviceMode: 0600&lt;br /&gt;RingsBeforeAnswer: 1&lt;br /&gt;SpeakerVolume: off&lt;br /&gt;GettyArgs: &quot;-h %l dx_%s&quot;&lt;br /&gt;LocalIdentifier: &quot;WTN&quot;&lt;br /&gt;TagLineFont: etc/lutRS18.pcf&lt;br /&gt;TagLineFormat: &quot;From %%l|%c|Page %%P of %%T&quot;&lt;br /&gt;MaxRecvPages: 200&lt;br /&gt;JobReqNoCarrier: 180&lt;br /&gt;JobReqNoAnswer: 180&lt;br /&gt;FaxRcvdCmd: bin/faxrcvd.php&lt;br /&gt;DynamicConfig: bin/dynconf.php&lt;br /&gt;NotifyCmd: bin/notify.php&lt;br /&gt;ModemType: Class1 # use this to supply a hint&lt;br /&gt;ModemResetCmds: &quot;ATH1\nAT+VCID=1&quot; # enables CallID display&lt;br /&gt;ModemReadyCmds: ATH0&lt;br /&gt;Class1AdaptRecvCmd: AT+FAR=1&lt;br /&gt;Class1TMConnectDelay: 400 # counteract quick CONNECT response&lt;br /&gt;Class1RMQueryCmd: &quot;!24,48,72,96&quot; # V.17 fast-train recv doesn&#39;t work well&lt;br /&gt;Class1TMQueryCmd: &quot;!24,48,72,96&quot; # V.17 fast-train recv doesn&#39;t work well&lt;br /&gt;CallIDPattern: &quot;NMBR=&quot;&lt;br /&gt;CallIDPattern: &quot;NAME=&quot;&lt;br /&gt;CallIDPattern: &quot;ANID=&quot;&lt;br /&gt;CallIDPattern: &quot;NDID=&quot;&lt;br /&gt;&lt;br /&gt;cd /var/spool/hylafax/etc&lt;br /&gt;chown uucp:uucp config.ttyIAX1&lt;br /&gt;&lt;br /&gt;#Edit HylaFAX Verticle Resolution&lt;br /&gt;nano /usr/local/lib/fax/hyla.conf&lt;br /&gt;&lt;br /&gt;JobFmt: &quot;%-5j %1a %15o %-15.15e %5P %5D %5i %7z %.25s&quot;&lt;br /&gt;RcvFmt: &quot;%7o %-10t %-25s %-20f %5p %1z %-40e&quot;&lt;br /&gt;PageSize: na-let&lt;br /&gt;VRes: 196&lt;br /&gt;&lt;br /&gt;#ASTERISK MANAGER/DB PASSWORD&lt;br /&gt;faxadduser -a changepassword asterisk&lt;br /&gt;faxdeluser localhost&lt;br /&gt;faxdeluser 127.0.0.1&lt;br /&gt;echo 127.0.0.1 &amp;gt;&amp;gt; /var/spool/hylafax/etc/hosts.hfaxd&lt;br /&gt;&lt;br /&gt;nano /etc/init/faxgetty1.conf&lt;br /&gt;&lt;br /&gt;start on runlevel 2&lt;br /&gt;start on runlevel 3&lt;br /&gt;start on runlevel 4&lt;br /&gt;start on runlevel 5&lt;br /&gt;stop on runlevel 0&lt;br /&gt;stop on runlevel 1&lt;br /&gt;stop on runlevel 6&lt;br /&gt;respawn&lt;br /&gt;exec /usr/local/sbin/faxgetty ttyIAX1&lt;br /&gt;&lt;br /&gt;nano /etc/init/faxgetty2.conf&lt;br /&gt;&lt;br /&gt;start on runlevel 2&lt;br /&gt;start on runlevel 3&lt;br /&gt;start on runlevel 4&lt;br /&gt;start on runlevel 5&lt;br /&gt;stop on runlevel 0&lt;br /&gt;stop on runlevel 1&lt;br /&gt;stop on runlevel 6&lt;br /&gt;respawn&lt;br /&gt;exec /usr/local/sbin/faxgetty ttyIAX2&lt;br /&gt;&lt;br /&gt;nano /etc/init/iaxmodem1.conf&lt;br /&gt;&lt;br /&gt;start on runlevel 2&lt;br /&gt;start on runlevel 3&lt;br /&gt;start on runlevel 4&lt;br /&gt;start on runlevel 5&lt;br /&gt;stop on runlevel 0&lt;br /&gt;stop on runlevel 1&lt;br /&gt;stop on runlevel 6&lt;br /&gt;respawn&lt;br /&gt;exec /usr/local/sbin/iaxmodem ttyIAX1&lt;br /&gt;&lt;br /&gt;nano /etc/init/iaxmodem2.conf&lt;br /&gt;&lt;br /&gt;start on runlevel 2&lt;br /&gt;start on runlevel 3&lt;br /&gt;start on runlevel 4&lt;br /&gt;start on runlevel 5&lt;br /&gt;stop on runlevel 0&lt;br /&gt;stop on runlevel 1&lt;br /&gt;stop on runlevel 6&lt;br /&gt;respawn&lt;br /&gt;exec /usr/local/sbin/iaxmodem ttyIAX2&lt;br /&gt;&lt;br /&gt;nano /etc/rc.local&lt;br /&gt;&lt;br /&gt;/usr/local/sbin/amportal start&lt;br /&gt;initctl start faxgetty1&lt;br /&gt;initctl start faxgetty2&lt;br /&gt;initctl start faxgetty3&lt;br /&gt;initctl start faxgetty4&lt;br /&gt;initctl start iaxmodem1&lt;br /&gt;initctl start iaxmodem2&lt;br /&gt;initctl start iaxmodem3&lt;br /&gt;initctl start iaxmodem4&lt;br /&gt;&lt;br /&gt;#Install AvantFAX&lt;br /&gt;cd /usr/src&lt;br /&gt;wget http://downloads.sourceforge.net/project/avantfax/avantfax-3.3.3.tgz&lt;br /&gt;External Links icon&lt;br /&gt;&lt;br /&gt;tar zxf avantfax-3.3.3.tgz&lt;br /&gt;cd avantfax-3.3.3&lt;br /&gt;chown -R asterisk:asterisk *&lt;br /&gt;cd avantfax&lt;br /&gt;ln -s /usr/src/avantfax-3.3.3/avantfax /var/www/html/fax&lt;br /&gt;chown -R asterisk:asterisk /var/www/html/fax&lt;br /&gt;chmod -R 0770 /var/www/html/fax/tmp /var/www/html/fax/faxes&lt;br /&gt;chown -R asterisk:uucp /var/www/html/fax/tmp /var/www/html/fax/faxes&lt;br /&gt;chown -R asterisk:asterisk /var/lib/php/session&lt;br /&gt;mv /usr/local/bin/faxcover /usr/local/bin/faxcover.old&lt;br /&gt;ln -s /var/www/html/fax/includes/faxcover.php /usr/local/bin/faxcover&lt;br /&gt;ln -s /var/www/html/fax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd.php&lt;br /&gt;ln -s /var/www/html/fax/includes/dynconf.php /var/spool/hylafax/bin/dynconf.php&lt;br /&gt;ln -s /var/www/html/fax/includes/notify.php /var/spool/hylafax/bin/notify.php&lt;br /&gt;pear install --alldeps Mail Net_SMTP Mail_mime MDB2_driver_mysql pear/Auth_SASL&lt;br /&gt;cd ..&lt;br /&gt;mysql &amp;lt; create_user.sql&lt;br /&gt;mysql avantfax &amp;lt; create_tables.sql&lt;br /&gt;&lt;br /&gt;nano /etc/cron.d/avantfax&lt;br /&gt;&lt;br /&gt;# runs once an hour to update the phone book&lt;br /&gt;0 * * * * /var/www/html/fax/public_html/includes/phb.php&lt;br /&gt;# runs once a day to remove old files&lt;br /&gt;0 0 * * * /var/www/html/fax/public_html/includes/avantfaxcron.php -t 2&lt;br /&gt;&lt;br /&gt;cp /var/www/html/fax/includes/local_config-example.php /var/www/html/fax/includes/local_config.php&lt;br /&gt;&lt;br /&gt;#Edit local_config.php&lt;br /&gt;nano /var/www/html/fax/includes/local_config.php&lt;br /&gt;&lt;br /&gt;#Time Server&lt;br /&gt;time-b.timefreq.bldrdoc.gov&lt;br /&gt;&lt;br /&gt;#FREEPBX&lt;br /&gt;Custom Trunk&lt;br /&gt;&lt;br /&gt;A2B local/$OUTNUM$@a2billing/n&lt;br /&gt;8622466682 local/$OUTNUM$@8622466682&lt;br /&gt;Google gtalk/8622466682/+$OUTNUM$@voice.google.com&lt;br /&gt;&lt;br /&gt;Sip Trunk Free Toll-Free Calling&lt;br /&gt;TollFree voiper.ipkall.com (10 digit) proxy.ideasip.com (11 digit)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/2712889190759183305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2014/05/how-to-setup-asterisk-1871-on-centos-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/2712889190759183305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/2712889190759183305'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2014/05/how-to-setup-asterisk-1871-on-centos-6.html' title='How to setup Asterisk 1.8.7.1 on CentOS 6 i386 with FreePBX, Hylafax, Avantfax, IAXModem, and A2billing '/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-6348407495157819743</id><published>2014-05-16T06:39:00.002-07:00</published><updated>2014-05-18T22:30:01.218-07:00</updated><title type='text'>How to install Asterisk and A2billing on Ubuntu Server 12.04LTS</title><content type='html'>&lt;br /&gt;&lt;br /&gt;&lt;b&gt;This installation was carried out on Ubuntu 12.04 LTS on 64bit&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;We need to upgrade apt-get&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#apt-get upgrade&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#apt-get update&lt;/b&gt;&lt;br /&gt;Configure your timezone:&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#dpkg-reconfigure tzdata&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Install some pre-requisites:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get install libapache2-mod-php5 php5 php5-common&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get install php5-cli php5-mysql mysql-server apache2 php5-gd (note the password for mysql, we will need it later)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get install php5-mcrypt&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev &amp;nbsp;libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add &lt;span style=&quot;background-color: white;&quot;&gt;jansson&lt;/span&gt; and install Asterisk 12.1.1&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get install python-software-properties -y&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#apt-key adv --keyserver pgp.mit.edu --recv-keys 175E41DF&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#http://www.digip.org/jansson/releases/jansson-2.4.tar.gz&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#tar -zxf jansson-2.4.tar.gz&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#cd jansson-2.4/&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#./configure --prefix=/usr/ &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;asterisk-1.8.27.0-rc1.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#add-apt-repository &quot;deb http://packages.asterisk.org/deb `lsb_release -cs` main&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#sudo add-apt-repository &quot;deb-src http://packages.asterisk.org/deb `lsb_release -cs` main&quot; (If you get an error here just ignore and carry on)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cd /usr/src/&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.14.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.8.26.1.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-12.1.1.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#tar zxvf dahdi-linux-complete*&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#tar zxvf libpri*&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#tar zxvf asterisk*&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#cd /usr/src/dahdi-linux-complete*&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#make &amp;amp;&amp;amp; make install &amp;amp;&amp;amp; make config&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#cd ../libpri*&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#make &amp;amp;&amp;amp; make install&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#cd ../asterisk*&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#./configure &amp;amp;&amp;amp; make menuselect &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install &amp;amp;&amp;amp; make config &amp;amp;&amp;amp; make samples&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;/etc/init.d/dahdi start&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;#/etc/init.d/asterisk start&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#asterisk -rvvv&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#*CLI&amp;gt; dahdi show version&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;+++++++++++++++DAHDI Version: 2.6.1 Echo Canceller: HWEC&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#*CLI&amp;gt; pri show version&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;+++++++++++++++libpri version: 1.4.13&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get update&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#apt-get upgrade&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;# apt-get install asterisk&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Download and install A2billing:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# cd /usr/local/src&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;# wget https://github.com/Star2Billing/a2billing/archive/master.tar.gz&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;# tar -zxvf master.tar.gz&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; rm master.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; mv a2billing-* a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Prep the database:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cd a2billing/DataBase/mysql-5.x&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;# mysql -uroot -p &amp;lt; a2billing-createdb-user.sql&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;# ./install-db.sh&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You will be asked to enter details. Enter them as follows&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;database name : &amp;nbsp;mya2billing&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;hostname : localhost&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;User : root&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;Password : mysqlpassword &lt;/b&gt;(This is the one we created earlier)&lt;br /&gt;Copy and edit a2billing.conf:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# cp /usr/local/src/a2billing/a2billing.conf /etc/&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# nano -w /etc/a2billing.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make sure the first stanza looks like the following:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;[database]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;hostname = localhost&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;port = 3306&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;user = a2billinguser&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;password = mysqlpassword&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;dbname = mya2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;dbtype = mysql&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Additional files for A2billing:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# chmod 777 /etc/asterisk -R&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#touch /etc/asterisk/additional_a2billing_iax.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#touch /etc/asterisk/additional_a2billing_sip.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#echo #include additional_a2billing_iax.conf &amp;gt;&amp;gt; /etc/asterisk/iax.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chown -Rf www-data /etc/asterisk/additional_a2billing_iax.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chown -Rf www-data /etc/asterisk/additional_a2billing_sip.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install the A2billing sounds:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# cd /usr/local/src/a2billing/addons/sounds&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;./install_a2b_sounds_deb.sh&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Asterisk ended with exit status 1&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chown -R asterisk:asterisk /usr/share/asterisk/sounds/&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit manager.conf:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# nano -w /etc/asterisk/manager.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;[myasterisk]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;secret=mycode&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;read=system,call,log,verbose,command,agent,user&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;write=system,call,log,verbose,command,agent,user&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install the AGI etc:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# mkdir /usr/share/asterisk/agi-bin&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cd /usr/local/src/a2billing/AGI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cp a2billing.php /usr/share/asterisk/agi-bin/&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chown -R asterisk:asterisk /usr/share/asterisk/agi-bin&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chmod 755 /usr/share/asterisk/agi-bin/a2billing.php&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cp /usr/local/src/a2billing/common/lib &amp;nbsp;/usr/share/asterisk/agi-bin/lib -R&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install the webui:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# mkdir /var/www/a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chown www-data:www-data /var/www/a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cp -rf /usr/local/src/a2billing/admin /var/www/a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cp -rf /usr/local/src/a2billing/agent /var/www/a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cp -rf /usr/local/src/a2billing/customer /var/www/a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#cp -rf /usr/local/src/a2billing/common /var/www/a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chmod 755 /var/www/a2billing/admin/templates_c&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chmod 755 /var/www/a2billing/customer/templates_c&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#chmod 755 /var/www/a2billing/agent/templates_c&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#chown -R www-data:www-data /var/www&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Add contexts to extensions.conf: (For wholesale termination)&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# nano -w /etc/asterisk/extensions.conf&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;[a2billing]&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;; CallingCard application&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;;exten =&amp;gt; _X.,1,Answer&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;;exten =&amp;gt; _X.,2,Wait(2)&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;;exten =&amp;gt; _X.,3,deadAGI(a2billing.php)&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;;exten =&amp;gt; _X.,4,Wait(2)&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;;exten =&amp;gt; _X.,5,Hangup&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;exten =&amp;gt; _X.,1,deadAGI(a2billing.php)&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;exten =&amp;gt; _X.,n,Hangup&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;[did]&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;; CallingCard application&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;exten =&amp;gt; _X.,1,deadAGI(a2billing.php,1,did)&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;Add some cron entries:&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# crontab -e&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# update the currency table&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 6 * * * php /usr/local/src/a2billing/Cronjobs/currencies_update_yahoo.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# manage the monthly services subscription&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 6 1 * * php /usr/local/src/a2billing/Cronjobs/a2billing_subscription_fee.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# To check account of each Users and send an email if the balance is&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#less than the user have choice.&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_notify_account.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# this script will browse all the DID that are reserve and check if&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#the customer need to pay for it&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# bill them or warn them per email to know if they want to pay in&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#order to keep their DIDs&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 2 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_bill_diduse.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# This script will take care of the recurring service.&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 12 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_process.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# To generate invoices and for each user.&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 6 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_billing.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# to proceed the autodialer&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;*/5 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_autodialer.php&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# manage alarms&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_alarm.php&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Make a logfile:&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;# mkdir /var/log/a2billing&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#touch /var/log/a2billing/a2billing_agi.log&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#chown -R asterisk:asterisk /var/log/a2billing&lt;/b&gt;&lt;br /&gt;Add some rotation:&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# cd /etc/logrotate.d&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;#nano -w a2billing&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;/var/log/a2billing/*.log {&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;daily&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;missingok&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;rotate 4&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;sharedscripts&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;postrotate&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;endscript&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;}&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enable SSL using default certificate for admin:&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;#ln -s /etc/apache2/sites-available/default-ssl /etc/apache2/sites-enabled/000-default-ssl&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# a2enmod rewrite&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;b&gt;# service apache2 restart&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;Browse to http://youripaddress/a2billing/admin and login with the following credentials:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Username: &lt;span style=&quot;background-color: blue;&quot;&gt;root&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Password : &lt;span style=&quot;background-color: blue;&quot;&gt;changepassword&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any one Who Needs &amp;nbsp;Help Feel free to contract me.&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/6348407495157819743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2014/05/how-to-install-asterisk-and-a2billing.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6348407495157819743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6348407495157819743'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2014/05/how-to-install-asterisk-and-a2billing.html' title='How to install Asterisk and A2billing on Ubuntu Server 12.04LTS'/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>2</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-362063568726799518</id><published>2012-10-22T07:03:00.003-07:00</published><updated>2014-05-16T07:19:46.716-07:00</updated><title type='text'>Easy way to Build FTP server in Ubuntu Server 12.04</title><content type='html'>&lt;br /&gt;&lt;h1 class=&quot;entry-title&quot; style=&quot;background-color: white; color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; font-size: 2.2em; font-weight: normal; line-height: 1.364em; margin: 0px; padding: 0px;&quot;&gt;&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;header class=&quot;entry-header&quot; style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Arial, &#39;Lucida Sans Unicode&#39;, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;h1 class=&quot;entry-title&quot; style=&quot;border: 0px; clear: none; font-size: 2.2rem; line-height: 1.2; margin: 0px 56px 5px 0px; outline: 0px; padding: 5px 36px 0px 0px; text-shadow: rgba(0, 0, 0, 0.2) 0px 1px 1px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;vsftp change root&amp;nbsp;directory&lt;/span&gt;&lt;/h1&gt;&lt;/header&gt;&lt;br /&gt;&lt;div class=&quot;entry-content&quot; style=&quot;background-color: white; border: 0px; font-family: &#39;Lucida Grande&#39;, Arial, &#39;Lucida Sans Unicode&#39;, sans-serif; font-size: 13px; line-height: 19px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; text-align: justify;&quot;&gt;FTP (File Transfer Protocol) is one way we communicate with remote computers. On this occasion I would share a tutorial on&lt;/span&gt;&lt;a href=&quot;http://ubuntuserverguide.com/2012/05/easy-way-build-ftp-server-ubuntu-server-1204.html&quot; style=&quot;color: #77216f; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;how to build an&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;&lt;a href=&quot;http://ubuntuserverguide.com/2012/05/secure-ftp-server-tlsssl-connection-ubuntu-server-1204.html&quot; style=&quot;color: #77216f; margin: 0px; padding: 0px;&quot; title=&quot;See also How to Secure FTP Server with TLS/SSL Connection in Ubuntu Server 12.04&quot;&gt;FTP server&lt;/a&gt;&lt;/strong&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; text-align: justify;&quot;&gt;&amp;nbsp;ubuntu server LTS 12.04, Acctualy,there are many applications that can be used in building&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin: 0px; padding: 0px; text-align: justify; text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://ubuntuserverguide.com/2012/05/secure-ftp-server-tlsssl-connection-ubuntu-server-1204.html&quot; style=&quot;color: #77216f; margin: 0px; padding: 0px;&quot; title=&quot;See also How to Secure FTP Server with TLS/SSL Connection in Ubuntu Server 12.04&quot;&gt;FTP server&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; text-align: justify;&quot;&gt;, but on this tutorial&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin: 0px; padding: 0px; text-align: justify;&quot;&gt;how to build an&amp;nbsp;&lt;a href=&quot;http://ubuntuserverguide.com/2012/05/secure-ftp-server-tlsssl-connection-ubuntu-server-1204.html&quot; style=&quot;color: #77216f; margin: 0px; padding: 0px;&quot; title=&quot;See also How to Secure FTP Server with TLS/SSL Connection in Ubuntu Server 12.04&quot;&gt;FTP server&lt;/a&gt;&amp;nbsp;on&amp;nbsp;&lt;a href=&quot;http://ubuntuserverguide.com/2012/10/how-to-enable-and-configure-apache2-userdir-module-in-ubuntu-server-12-04.html&quot; style=&quot;color: #77216f; margin: 0px; padding: 0px;&quot; title=&quot;See also How to Enable and Configure Apache2 Userdir Module in Ubuntu Server 12.04&quot;&gt;ubuntu server&lt;/a&gt;&amp;nbsp;LTS 12.04&lt;/em&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; text-align: justify;&quot;&gt;&amp;nbsp;I will use an application called vsftpd (Very Secure FTP Daemon).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin-bottom: 1.538em; padding: 0px; text-align: justify;&quot;&gt;sftpd uses the GPL license and can be used on all UNIX family, including in Linux. Other benefits of vstpd more “secure” (compared with) the other FTP server application, faster, and more stable.&lt;/div&gt;&lt;div style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin-bottom: 1.538em; padding: 0px; text-align: justify;&quot;&gt;Let’s Start It, Now login to server with ssh. then install vsftpd with command below&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px solid rgb(221, 221, 221); clear: both; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.923em; line-height: 1.5em; margin-bottom: 1.667em; overflow: auto; padding: 0.583em 0.833em; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #76a5af;&quot;&gt;sudo apt-get install&amp;nbsp;vsftpd&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;div style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin-bottom: 1.538em; padding: 0px; text-align: justify;&quot;&gt;After vsftpd installation is complete. actually, you no longer need to configure the vsftpd, because the default configuration is very secure and can be directly used. But if you want to edit the configuration you can edit the file&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;/etc/vsftpd.conf&lt;/em&gt;&amp;nbsp;with command below:&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px solid rgb(221, 221, 221); clear: both; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.923em; line-height: 1.5em; margin-bottom: 1.667em; overflow: auto; padding: 0.583em 0.833em; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #76a5af;&quot;&gt;nano /etc/vsftpd.conf&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;div style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin-bottom: 1.538em; padding: 0px; text-align: justify;&quot;&gt;If&amp;nbsp;you&amp;nbsp;want&amp;nbsp;your users can&amp;nbsp;upload files&amp;nbsp;on&amp;nbsp;your&amp;nbsp;FTP&amp;nbsp;server, find and&amp;nbsp;edit&amp;nbsp;the following line:&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px solid rgb(221, 221, 221); clear: both; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.923em; line-height: 1.5em; margin-bottom: 1.667em; overflow: auto; padding: 0.583em 0.833em;&quot;&gt;&lt;span style=&quot;color: #76a5af;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;# Uncomment this to enable any form of FTP write command.&lt;/strong&gt;&lt;br /&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;write_enable=YES&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin-bottom: 1.538em; padding: 0px;&quot;&gt;If you do not want the anonymous FTP user free access to your server, please edit the following line:&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px solid rgb(221, 221, 221); clear: both; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.923em; line-height: 1.5em; margin-bottom: 1.667em; overflow: auto; padding: 0.583em 0.833em;&quot;&gt;&lt;span style=&quot;color: #76a5af;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;# Allow anonymous FTP? (Disabled by default)&lt;/strong&gt;&lt;br /&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;anonymous_enable=NO&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;color: #111111; font-family: &#39;Droid Sans&#39;, &#39;Lucida Grande&#39;, Tahoma, sans-serif; line-height: 19.983333587646484px; margin-bottom: 1.538em; padding: 0px;&quot;&gt;save (CTRL+O) your configuration and Exit (Ctrl+X), then restart vsftpd service with commads below:&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px solid rgb(221, 221, 221); clear: both; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.923em; line-height: 1.5em; margin-bottom: 1.667em; overflow: auto; padding: 0.583em 0.833em;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.923em; line-height: 1em; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #76a5af;&quot;&gt;sudo service vsftpd restart&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; color: #666666; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You can change the root directory in vsftp as you wish..&lt;/div&gt;&lt;div style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;If you enable&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #76a5af;&quot;&gt;chroot_local_user=YES&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #666666;&quot;&gt;, it will restrict local users to their home directories.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; color: #666666; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Some time you may want to change your root form home directory to other directory.&lt;/div&gt;&lt;div style=&quot;border: 0px; color: #666666; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To change the home directory from user home directory to other directory add following lines in your &amp;nbsp;vsftpd.conf (/etc/vsftpd.conf).&lt;/div&gt;&lt;div style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px 0px 0px 30px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #45818e;&quot;&gt;anonymous_enable=YES&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px 0px 0px 30px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #45818e;&quot;&gt;anonymous_root=/home/user/dir&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;nbsp;(hear you can set the directory as you wish)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; color: #666666; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Following is my vsftpd.conf&lt;/div&gt;&lt;div style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px 0px 0px 30px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;listen=YES&lt;br /&gt;anonymous_enable=YES&lt;br /&gt;local_enable=NO&lt;br /&gt;write_enable=YES&lt;br /&gt;dirmessage_enable=YES&lt;br /&gt;use_localtime=YES&lt;br /&gt;xferlog_enable=YES&lt;br /&gt;connect_from_port_20=YES&lt;br /&gt;secure_chroot_dir=/var/run/vsftpd/empty&lt;br /&gt;pam_service_name=vsftpd&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666;&quot;&gt;rsa_cert_file=/etc/ssl/private/vsftpd.pem&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666;&quot;&gt;anon_root=/home/abc/mydir&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; color: #666666; font-family: inherit; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-Sany&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/362063568726799518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/10/vsftp-change-root-you-can-change-root.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/362063568726799518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/362063568726799518'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/10/vsftp-change-root-you-can-change-root.html' title='Easy way to Build FTP server in Ubuntu Server 12.04'/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-307685013551784919</id><published>2012-09-05T11:24:00.000-07:00</published><updated>2012-09-05T11:24:03.157-07:00</updated><title type='text'></title><content type='html'>&lt;h2&gt;&lt;span&gt;Installation&lt;/span&gt; &lt;/h2&gt;&lt;h3&gt; &lt;span&gt; System Requirements:&lt;/span&gt; &lt;/h3&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;layout&quot; style=&quot;width: 100%px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td id=&quot;content&quot;&gt;&lt;li&gt; &lt;span&gt; 2 GB of hard disk space&lt;/span&gt; &lt;/li&gt;&lt;li&gt; &lt;span&gt; 128M or more memory, OpenVZ recommended 192MB or more (small memory Do not use the 64-bit systems)&lt;/span&gt; &lt;/li&gt;&lt;li&gt; &lt;span&gt; Linux is case-sensitive, enter the command Note!&lt;/span&gt; &lt;/li&gt;&lt;h3&gt; &lt;span&gt; Installation steps:&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; &lt;b&gt;1, landing &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/other/putty-ssh-linux-vps.html&amp;amp;usg=ALkJrhjgClGFSlbmIFajcArAvNBZyjpzxw&quot; target=&quot;_blank&quot;&gt;putty&lt;/a&gt; or similar SSH tools;&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; After landing run: &lt;b&gt;screen-S lnmp&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; If you are prompted to screen command does not exist can be executed: &lt;b&gt;yum install screen&lt;/b&gt; or &lt;b&gt;apt-get install screen&lt;/b&gt; installation, &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/manage/run-screen-lnmp.html&amp;amp;usg=ALkJrhhrue54OcznkkPopwp6cwCDY3oGmQ&quot; target=&quot;_blank&quot;&gt;detailed screen tutorial click here&lt;/a&gt; .&lt;/span&gt; &lt;br /&gt; &lt;span&gt; &lt;b&gt;2 Download LNMP a key installation package:&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; You can choose to use the download version (recommended foreign or  American VPS) or the full version (recommended domestic VPS use)&lt;/span&gt; &lt;br /&gt; &lt;span&gt; For the download version execute the command: &lt;b&gt;wget-c &lt;a href=&quot;http://soft.vpser.net/lnmp/lnmp0.9.tar.gz&quot; target=&quot;_blank&quot;&gt;http://soft.vpser.net/lnmp/lnmp0.9.tar.gz&lt;/a&gt;&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; For the full version execute the command: &lt;b&gt;wget-c &lt;a href=&quot;http://soft.vpser.net/lnmp/lnmp0.9-full.tar.gz&quot; target=&quot;_blank&quot;&gt;http://soft.vpser.net/lnmp/lnmp0.9-full.tar.gz of&lt;/a&gt;&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; After the download is complete LNMP a key installation package will be  downloaded to your server or VPS (generally not login as root then  switch directories should be in / root below).&lt;/span&gt; &lt;br /&gt; &lt;span&gt; &lt;b&gt;3, unpacked LNMP a key installation package:&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Run: the &lt;b&gt;tar zxvf lnmp0.9.tar.gz&lt;/b&gt; or &lt;b&gt;tar zxvf lnmp0.9-full.tar.gz&lt;/b&gt; will LNMP a key installation package unzip.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; &lt;b&gt;4, begin installation LNMP a key installation package:&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; The In entering LNMP installation directory, execute: &lt;b&gt;cd lnmp0.9 /&lt;/b&gt; or &lt;b&gt;cd lnmp0.9-full /&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Before running the installation program requires you to confirm your Linux distribution, you can do: &lt;b&gt;cat / etc / issue&lt;/b&gt; see CentOS, Debian or Ubuntu, can also be viewed on the Control Panel by VPS service provider.&lt;/span&gt; &lt;span&gt; Determined after the selection below corresponding system installation command:&lt;/span&gt; &lt;br /&gt; &lt;span&gt; &lt;b&gt;CentOS system&lt;/b&gt; &amp;lt;br \&amp;gt; &lt;b&gt;execute. / Centos.sh 2&amp;gt; &amp;amp; 1 | tee lnmp.log&lt;/b&gt; (if the system is Red Hat Enterprise Linux Server (RHEL) need to ensure that yum can the normal install software, &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://bbs.vpser.net/thread-7553-1-1.html&amp;amp;usg=ALkJrhiIhZ9HSAd804-rk9Y377T4Wi8v8w&quot; target=&quot;_blank&quot;&gt;RHEL install yum tutorial&lt;/a&gt; )&lt;/span&gt; &lt;br /&gt; &lt;span&gt; The &amp;lt;br \&amp;gt; perform &lt;b&gt;under Debian system. / Debian.sh 2&amp;gt; &amp;amp; 1 | tee lnmp.log&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; &lt;b&gt;The Ubuntu system&lt;/b&gt; &amp;lt;br \&amp;gt; &lt;b&gt;perform. / Ubuntu.sh 2&amp;gt; &amp;amp; 1 | tee lnmp.log&lt;/b&gt;&lt;/span&gt; &lt;br /&gt; &lt;span&gt; After the install command is executed, the following interface will appear:&lt;/span&gt; &lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-install-input-domain.jpg&quot; /&gt;&lt;br /&gt; &lt;span&gt; Input to bind the domain name (recommended to use a second-level domain  name, the domain name will be bound to the / home / wwwroot /, easy  management if the input error, you can hold down Ctrl and press the  Backspace key to delete), the input is complete car, will display the  following interface:&lt;/span&gt; &lt;br /&gt; &lt;span&gt; (Note: if Debian system, enter the domain name will prompt Where are  your servers located? Asia, america, europe, oceania or africa here is  to select the server or VPS in which continents are generally the U.S.  the VPS, press Enter on the line directly If, enter asia, Enter.)&lt;/span&gt; &lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-install-input-mysql-root-password.jpg&quot; /&gt;&lt;br /&gt; &lt;span&gt; MySQL root password, and then enter to set the input is complete, press Enter, and will display the following interface:&lt;/span&gt; &lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-install-input-mysql-innodb.jpg&quot; /&gt;&lt;br /&gt; &lt;span&gt; If you need to install the InnoDB can enter y enter, do not need, then you can directly enter.&lt;/span&gt; &lt;span&gt; Enter will display the following interface:&lt;/span&gt; &lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-install-press.jpg&quot; /&gt;&lt;br /&gt; &lt;span&gt; Prompt &quot;Press any key to start ...&quot;, press the Enter key to start the installation.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; LNMP script will automatically compile Nginx, MySQL, PHP, phpMyAdmin, Zend Optimizer installed several software.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; &lt;b&gt;5, the installation is complete,&lt;/b&gt; the following interface the &amp;lt;br \&amp;gt; If:&lt;/span&gt; &lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-install-success.jpg&quot; /&gt;&lt;br /&gt; &lt;span&gt; That have been installed successfully.&lt;/span&gt; &lt;br /&gt;&lt;br /&gt; &lt;span&gt; If you see the following interface:&lt;/span&gt; &lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-install-failed.jpg&quot; /&gt;&lt;br /&gt; &lt;span&gt; The description is not installed successfully!&lt;/span&gt; &lt;span&gt; !&lt;/span&gt; &lt;span&gt; Need to use &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/manage/winscp.html&amp;amp;usg=ALkJrhixShGraFnzw-DI5x1zzuls_kQM5A&quot; target=&quot;_blank&quot;&gt;winscp&lt;/a&gt; to lnmp0.9 directory under find lnmp.log, and downloaded to &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://bbs.vpser.net/forum-25-1.html&amp;amp;usg=ALkJrhg4z9FZ8k-NbMMSxWTzRoA8rrA_pg&quot;&gt;LNMP support forum&lt;/a&gt; posting indicate your system, 32-bit or 64-bit, and lnmp.log spread  form as an attachment to a forum, we through logs to find the error, and  feedback on the posts.&lt;/span&gt; &lt;h3&gt; &lt;span&gt; Web Host Manager&lt;/span&gt; &lt;/h3&gt;&lt;br /&gt;&lt;img src=&quot;http://lnmp.org/images/screenshots/lnmp-vhost.jpg&quot; /&gt; &lt;span&gt; 1, to add a virtual host, execute the following command: &lt;b&gt;/ root / vhost.sh&lt;/b&gt; prompted to enter the domain name to bind Enter, if you need to add  more domain names, type y, and then enter additional binding domain,  multiple The domain name can be separated by a space (Note: with www and  without www different domain, with www and without www domain need to  access the same site at the same time binding).&lt;/span&gt; &lt;span&gt; Then enter the directory (absolute directory, such as / home / wwwroot /  lnmp binding domain, if not filled by default is / home / wwwroot /  binding domain, the directory does not necessarily have to be / home /  wwwroot / if / data / below a lot of space can also fill in / data / www  / lnmp the class.), and then choose whether to add a pseudo-static  rule, default The already discuz discuzx, wordpress, sablog, emlog,  dabr, the phpwind, wp2 (secondary directory wp pseudo-static), can  directly enter the name of the above, if you need to add custom  pseudo-static rules directly enter a desired name, the program will  automatically create pseudo static files directly in the / usr / local /  nginx / conf / pseudo-static custom name. conf which add a  pseudo-static rules (Note: The finished adding the implementation of the  / etc / init.d / nginx restart restart to take effect).&lt;/span&gt; &lt;span&gt; Next will prompt the need to enable the log function, under normal  circumstances do not need to start on the line directly input n For a  start, enter y, then enter the name of the log file you want to define,  and carriage returns will automatically add the virtual host.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; 2, delete the virtual host, ssh execute: &lt;b&gt;rm / usr / local / nginx / conf / vhost / domain name. Conf&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;h3&gt; &lt;span&gt; Install additional components&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; (Note: Install the following components must in lnmp0.9 installation directory, that lnmp compression unpack &lt;b&gt;cd lnmp0.9 /&lt;/b&gt; directory!, If you can not find do &lt;b&gt;find /-name eaccelerator.sh&lt;/b&gt; find.)&lt;/span&gt; &lt;br /&gt; &lt;span&gt; (Note: You need the following components are not necessarily your needs!)&lt;/span&gt;  &lt;span&gt; 1, the installation the PureFTPd and FTP management panel, execute the following command: your MySQL root password &lt;b&gt;/ pureftpd.sh&lt;/b&gt; When prompted, enter the password of the FTP user management panel, a  MySQl The FTP database password (which can directly enter a password  automatically generated) , press Enter, it will automatically install  PureFTPd, suggesting installing PureFTPd perform http:// your domain  name or IP / ftp / input before you set the password of the FTP user  management panel, you can manage FTP browser.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; 2, install eAccelerator, execute the following &lt;b&gt;command:. / Eaccelerator.sh,&lt;/b&gt; follow the prompts to select the version, press Enter, and it will automatically install and restart the web service.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Install ionCube, execute the following &lt;b&gt;command:. / IonCube.sh&lt;/b&gt; press Enter, it will automatically install and restart the web service.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; The installation imageMagick, execute the following &lt;b&gt;command:. / ImageMagick.sh&lt;/b&gt; press Enter, it will automatically install and restart the web service.&lt;/span&gt; &lt;br /&gt; &lt;span&gt; 5, install memcached, execute the following command: &lt;b&gt;/ memcached.sh&lt;/b&gt; press Enter, it will automatically install and restart the web service.&lt;/span&gt; &lt;br /&gt;&lt;h3&gt; &lt;span&gt; Upgrade program&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; Upgrade Nginx version, execute the following command: &lt;b&gt;/ upgrade_nginx.sh&lt;/b&gt; prompted nginx version number, such as 1.0.10, version number can from http://nginx.org/en/download.html get the.&lt;/span&gt; &lt;span&gt; (Note: the upgrade process, MySQL, PHP-FPM will be suspended.)&lt;/span&gt; &lt;br /&gt; &lt;span&gt; 7 upgrade PHP version, execute the following &lt;b&gt;command:. / Upgrade_php.sh&lt;/b&gt; prompted, enter your php version number, such as 5.3.6.&lt;/span&gt; &lt;span&gt; (Note: some websites, such as shopex have compatibility issues, before  the upgrade, make sure you use the program to support the 5.3 version  upgrade process Nginx, MySQL, PHP-FPM will be suspended. 5.4 version of  the case of the test yet test version, production environment, do not  upgrade to 5.4. *.)&lt;/span&gt; &lt;br /&gt;&lt;h3&gt; &lt;span&gt; State management&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; LNMP state management: / root / lnmp {start | stop | reload | restart | the kill | status}&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Nginx state management :/ etc / init.d / nginx {start | stop | reload | restart}&lt;/span&gt; &lt;br /&gt; &lt;span&gt; PHP-FPM state management :/ etc / init.d / php-fpm {start | stop | quit | restart | reload | logrotate}&lt;/span&gt; &lt;br /&gt; &lt;span&gt; The PureFTPd state management: / etc / init.d / pureftpd {start | stop | restart | the kill | status}&lt;/span&gt; &lt;br /&gt; &lt;span&gt; MySQL state management :/ etc / init.d / mysql {start | stop | restart | reload | force-reload | status}&lt;/span&gt; &lt;br /&gt; &lt;span&gt; The Memcached state management :/ etc / init.d / memcached {start | stop | restart}&lt;/span&gt; &lt;br /&gt;&lt;h3&gt; &lt;span&gt; The related graphics interface program&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; phpinfo: http:// previously entered domain name or IP / phpinfo.php&lt;/span&gt; &lt;br /&gt; &lt;span&gt; phpMyAdmin: http:// the front input the domain name or IP / phpmyadmin /&lt;/span&gt; &lt;br /&gt; &lt;span&gt; The probe: http:// in front to enter the domain name or IP / p.php&lt;/span&gt; &lt;br /&gt; &lt;span&gt; PureFTP management domain name or IP interface: http:// the front input / ftp /&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Memcached test page: http:// previously entered domain name or IP / memcached.php&lt;/span&gt; &lt;br /&gt;&lt;h3&gt; &lt;span&gt; LNMP related directory&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; nginx: / usr / local / nginx&lt;/span&gt; &lt;br /&gt; &lt;span&gt; mysql: / usr / local / mysql&lt;/span&gt; &lt;br /&gt; &lt;span&gt; php: / usr / local / php&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Site Directory: / home / wwwroot /&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Nginx log directory :/ home / wwwlogs /&lt;/span&gt; &lt;br /&gt; &lt;span&gt; / Root / vhost.sh add virtual host configuration file directory where :/ usr / local / nginx / conf / vhost /&lt;/span&gt; &lt;br /&gt;&lt;h3&gt; &lt;span&gt; LNMP configuration file&lt;/span&gt; &lt;/h3&gt;&lt;span&gt; Nginx main configuration file :/ usr / local / nginx / conf / nginx.conf&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Add the virtual host configuration file / root / vhost.sh :/ usr / local / nginx / conf / vhost / domain name. Conf&lt;/span&gt; &lt;br /&gt; &lt;span&gt; MySQL configuration file :/ etc / my.cnf&lt;/span&gt; &lt;br /&gt; &lt;span&gt; PHP configuration file :/ usr / local / php / etc / php.ini&lt;/span&gt; &lt;br /&gt; &lt;span&gt; php-fpm configuration file :/ usr / local / php / etc / php-fpm.conf&lt;/span&gt; &lt;br /&gt; &lt;span&gt; PureFtpd configuration file :/ usr / local / pureftpd / pure-ftpd.conf&lt;/span&gt; &lt;br /&gt; &lt;span&gt; PureFtpd MySQL configuration file :/ usr / local / pureftpd / pureftpd-mysql.conf&lt;/span&gt; &lt;br /&gt; &lt;span&gt; Note: LNMP a key installation package 0.9 &amp;amp; LNMPA in &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/diahosting&amp;amp;usg=ALkJrhgayP2jV4KMVjbvBgWOsEPMgOvM2w&quot; target=&quot;_blank&quot;&gt;DiaHosting&lt;/a&gt; (thanks to provide testing the VPS) &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/vpsyou&amp;amp;usg=ALkJrhjqSMj7-DBLLyEubvUjkI-DrUNv-w&quot; target=&quot;_blank&quot;&gt;VPSYOU&lt;/a&gt; (thank provided to test the VPS), &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/photonvps&amp;amp;usg=ALkJrhi7-2FNmfT6UqBVyEtQkO0GFHnVuw&quot; target=&quot;_blank&quot;&gt;PhotonVPS&lt;/a&gt; (thank provided to test the VPS) &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/vpszz&amp;amp;usg=ALkJrhgqagSHU3wpXO-OYBGcrpi_jipsPg&quot; target=&quot;_blank&quot;&gt;VPSZZ&lt;/a&gt; , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/linode&amp;amp;usg=ALkJrhggn6RtClFMv8FkZduqmCCSD1J6Pg&quot; target=&quot;_blank&quot;&gt;the Linode&lt;/a&gt; , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/xehost&amp;amp;usg=ALkJrhgROeuSPIAxy0lzRB8KRUtyLO6KEw&quot; target=&quot;_blank&quot;&gt;XeHost&lt;/a&gt; &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/rashost&amp;amp;usg=ALkJrhjVp-oPrj7IE-LqkLz9jMbDwYVJQA&quot; target=&quot;_blank&quot;&gt;Regal open source VPS&lt;/a&gt; , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/yardvps&amp;amp;usg=ALkJrhgYRTc62la5audlTByWn7GOxj6lGA&quot; target=&quot;_blank&quot;&gt;YardVPS&lt;/a&gt; , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/hostigation&amp;amp;usg=ALkJrhhb7HTLL_65zYVO3c-bJz7LLbFMDA&quot; target=&quot;_blank&quot;&gt;Hostigation&lt;/a&gt; test by , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/myhost123&amp;amp;usg=ALkJrhiKJWGujp2VoHRW8hN8BmBHmnXGuQ&quot; target=&quot;_blank&quot;&gt;MyHost123&lt;/a&gt; , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/thrust&amp;amp;usg=ALkJrhgtfOXovIwa2ee0_d-p8mnngMMhww&quot; target=&quot;_blank&quot;&gt;ThrustVPS&lt;/a&gt; &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/buyvm&amp;amp;usg=ALkJrhgp2pBtsJebEDMUejuMY8YQDvNKxw&quot; target=&quot;_blank&quot;&gt;BuyVM&lt;/a&gt; , &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?depth=1&amp;amp;hl=en&amp;amp;prev=/search%3Fq%3Dhttp://www.lnmp.org/%26hl%3Den%26client%3Dubuntu%26hs%3DLkz%26channel%3Dfs%26prmd%3Dimvns&amp;amp;rurl=translate.google.com&amp;amp;sl=zh-CN&amp;amp;u=http://www.vpser.net/go/directspace&amp;amp;usg=ALkJrhhZ5TeiTXMjGVwd6nG19HAXAHU6cw&quot; target=&quot;_blank&quot;&gt;DirectSpace&lt;/a&gt; and many other U.S. VPS, CentOS, Debian, Ubuntu 32-bit and 64-bit systems.&lt;/span&gt; &lt;span&gt; Small memory Do not use the 64-bit system (Debian5 system source is a problem, please use Debian6!)&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/307685013551784919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/09/installation-system-requirements-2-gb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/307685013551784919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/307685013551784919'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/09/installation-system-requirements-2-gb.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8899875409841733378</id><published>2012-09-05T01:13:00.000-07:00</published><updated>2012-09-05T01:13:01.655-07:00</updated><title type='text'></title><content type='html'>&lt;h1 class=&quot;title&quot;&gt;     How to set-up a VPS with nginx, PHP, mysql, phpMyAdmin, mail  server, FTP, Webmin, Memcached and EAccelerator and then  install&amp;nbsp;WordPress    &lt;/h1&gt;&lt;div class=&quot;field-item even&quot;&gt;Here I explain how to set up a VPS with the features above and  install WordPress on Ubuntu 10.04 LTS. It is always best to use a LTS  (Long Term Support) version of Ubuntu since then you get security  updates for 5 years, instead of 18 months. I got my VPS from &lt;a href=&quot;http://www.intovps.com/&quot; target=&quot;_blank&quot; title=&quot;IntoVPS&quot;&gt;IntoVPS&lt;/a&gt;,  with 1024 MB of burstable RAM (512 MB guaranteed), 30GB disk space and  500GB monthly traffic for 10$/month. The steps I take here worked for me  on this server, but if you have any problems either leave a comment or  post in the forum.&lt;br /&gt; &lt;span id=&quot;more-19&quot;&gt;&lt;/span&gt;&lt;br /&gt; &lt;strong&gt;1. Initial setup&lt;/strong&gt;&lt;br /&gt; First we have to get the server ready. I am assuming you have already  logged in using PuTTY as root. First update the package repositary  listing:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get update&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now install any updates:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get upgrade&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Just in case:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;wget&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;make&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now were ready to install nginx.&lt;br /&gt; &lt;strong&gt;2. NGINX&lt;/strong&gt;&lt;br /&gt; nginx (pronounced “engine-x”) is a lightweight, fast and powerful HTTP server. More information &lt;a href=&quot;http://wiki.nginx.org/&quot; target=&quot;_blank&quot; title=&quot;nginx wiki&quot;&gt;here&lt;/a&gt;.  If you are having second thoughts about switching to nginx, let´s put  it this way: I still consider switching from Apache to nginx the best  thing I´ve ever done to this VPS, and I can personally testify that  WordPress, phpMyAdmin, Roundcube webmail and Simple Machines Forum work  perfectly with nginx.&lt;br /&gt; First we have to add the nginx repositary to the database, beacause  at the time of writing the latest stable nginx is version 0.8.54 (&lt;span style=&quot;text-decoration: underline;&quot;&gt;Update&lt;/span&gt;:  it is now 1.0.0), whereas the latest in the default Ubuntu repositary  is 0.7. To add the repositary first we have to install  python-software-properties:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; python-software-properties&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now add the repository:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;add-apt-repository ppa:nginx/stable&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now update the database:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get update&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now install nginx:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; nginx&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; We’ll configure it, and set up PHP5, in the next section.&lt;br /&gt; &lt;strong&gt;3. PHP&lt;/strong&gt;&lt;br /&gt; If your planning to just serve static content from your server, you  can stop here, or go on to set up the mail server. But if you´re going  to install WordPress (or an other PHP application) then we have to  install PHP.&lt;br /&gt; &lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;(Update:&lt;/span&gt; see an alternative (better) way of installing PHP &lt;a href=&quot;http://terra-byte.org/vps/php-fpm/&quot; target=&quot;_blank&quot; title=&quot;Install PHP-FPM and configure it for nginx and WordPress&quot;&gt;here&lt;/a&gt;)&lt;/em&gt;&lt;br /&gt; First we install the PHP CGI and other components we may need:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; php5 php5-cgi php5-sqlite php5-tidy php5-xmlrpc php5-xs php5-dev&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now we have to create a PHP-FastCGI initialization script. Let´s first open the new file with nano:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/init.d/php-fastcgi&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now paste the following code into the file (note: if you’re using PuTTY just copy this then right-click in the PuTTY window.) :&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-bash&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re3&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;BIND=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;127.0&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.0&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.1&lt;/span&gt;:&lt;span class=&quot;nu0&quot;&gt;9000&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;USER=&lt;/span&gt;www-data&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;PHP_FCGI_CHILDREN=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;PHP_FCGI_MAX_REQUESTS=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;PHP_CGI=&lt;/span&gt;/usr/bin/php-cgi&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;PHP_CGI_NAME=&lt;/span&gt;`&lt;span class=&quot;kw2&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$PHP_CGI&lt;/span&gt;`&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;PHP_CGI_ARGS=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;“- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;RETVAL=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;start&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; -n &lt;span class=&quot;st0&quot;&gt;“Starting PHP FastCGI: “&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;start-stop-daemon –quiet –start –background –chuid &lt;span class=&quot;st0&quot;&gt;“$USER”&lt;/span&gt; –&lt;span class=&quot;kw3&quot;&gt;exec&lt;/span&gt; /usr/bin/&lt;span class=&quot;kw2&quot;&gt;env&lt;/span&gt; — &lt;span class=&quot;re1&quot;&gt;$PHP_CGI_ARGS&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;RETVAL=&lt;/span&gt;$?&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;“$PHP_CGI_NAME.”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;stop&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; -n &lt;span class=&quot;st0&quot;&gt;“Stopping PHP FastCGI: “&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;killall&lt;/span&gt; -q -&lt;span class=&quot;kw2&quot;&gt;w&lt;/span&gt; -u &lt;span class=&quot;re1&quot;&gt;$USER&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$PHP_CGI&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re2&quot;&gt;RETVAL=&lt;/span&gt;$?&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;“$PHP_CGI_NAME.”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;“$1″&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;start&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;start&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;;;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;stop&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;stop&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;;;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;restart&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;stop&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;start&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;;;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;*&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;“Usage: php-fastcgi {start|stop|restart}”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;exit&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;;;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;esac&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;exit&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$RETVAL&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Things you may want to change:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;PHP_FCGI_CHILDREN on line 4: This is the number of worker processes  that FastCGI spawns to handle PHP requests. The more connections per  second your site recieves, the higher you should set this setting. Keep  this in mind: Connections per second * Seconds it takes to generate the  page = PHP_FCGI_CHILDREN. If you are running out of memory decrease this  value.&lt;/li&gt;&lt;li&gt;PHP_FCGI_MAX_REQUESTS on line 5: This is the number of requests  before the worker proces(es) are respawned (restarted). If you are  having any problems with memory leaks, blank pages, etc., try decreasing  this to 500.&lt;/li&gt;&lt;/ul&gt;Now save the file (usualy by pressing CTRL+O) and exit nano. We now have to make this file executable:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; +x /etc/init.d/php-fastcgi&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now start the script:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;/etc/init.d/php-fastcgi start&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now we have enable PHP in nginx. First open the config file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/nginx/sites-available/default&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now make the following changes:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;On line 25, add &lt;em&gt;index.php&lt;/em&gt; just before the semi-colon (;).&lt;/li&gt;&lt;li&gt;Change&lt;em&gt; localhost&lt;/em&gt; on line 28 to your domain. If you do not have a domain name leave it as it is.&lt;/li&gt;&lt;li&gt;Uncomment the following lines:&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location ~ .php$ {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;fastcgi_pass 127.0.0.1:9000;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;fastcgi_index index.php;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;include fastcgi_params;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Your config file should now look like this:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;server {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#listen 80; ## listen for ipv4; this line is default and implied&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#listen [::]:80 default ipv6only=on; ## listen for ipv6&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Document root:&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;root /usr/share/nginx/www;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;index index.html index.htm index.php;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Make site accessible from your-site.com and www.your-site.com (change to your domain name)&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;server_name your-site.com www.your-site.com;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location / {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# First attempt to serve request as file, then&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# as directory, then fall back to index.html&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;try_files $uri $uri/ /index.html;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location /doc {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;root /usr/share;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;autoindex on;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;allow 127.0.0.1;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;deny all;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location /images {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;root /usr/share;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;autoindex off;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#error_page 404 /404.html;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# redirect server error pages to the static page /50x.html&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#error_page 500 502 503 504 /50x.html;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#location = /50x.html {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# root /usr/share/nginx/www;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# proxy the PHP scripts to Apache listening on 127.0.0.1:80&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#location ~ .php$ {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# proxy_pass http://127.0.0.1;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location ~ .php$ {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;fastcgi_pass 127.0.0.1:9000;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;fastcgi_index index.php;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;include fastcgi_params;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# deny access to .htaccess files, if Apache’s document root&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# concurs with nginx’s one&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#location ~ /.ht {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#deny all;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Don’t forget to read the file to make shure everything is set up right.&lt;br /&gt; Now restart nginx:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;/etc/init.d/nginx restart&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now it´s time to create a test script:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /usr/share/nginx/www/&lt;span class=&quot;kw3&quot;&gt;test&lt;/span&gt;.php&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Inside, insert the following:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;php geshifilter-php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/phpinfo&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;phpinfo&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And save the file. Now go to &lt;em&gt;your-site.com/test.php &lt;/em&gt;in your web browser. You should see a page with your PHP configuration information. We are now ready to install MySQL!&lt;br /&gt; &lt;strong&gt;4. MySQL&lt;/strong&gt;&lt;br /&gt; Type:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; mysql-server mysql-client php5-mysql&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And follow the instructions that appear on-screen. Now restart the PHP server:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;/etc/init.d/php-fastcgi restart&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now it´s time to install phpMyAdmin&lt;br /&gt; &lt;strong&gt;5. phpMyAdmin&lt;/strong&gt;&lt;br /&gt; phpMyAdmin is a browser-based MySQL database manager writen in PHP. First let´s install it:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; phpmyadmin&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; If the installer asks you what HTTP server to configure for, press enter without answering.&lt;br /&gt; Now we have to be able to access phpMyAdmin through &lt;em&gt;phpmyadmin.your-site.com&lt;/em&gt;. First create a new config file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/nginx/sites-available/phpmyadmin&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And inside insert the following (don´t forget the right-click method):&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;server {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#listen 80; ## listen for ipv4; this line is default and implied&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#listen [::]:80 default ipv6only=on; ## listen for ipv6&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;root /usr/share/phpmyadmin;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;index index.php index.html index.htm;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Make site accessible from http://localhost/&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;server_name phpmyadmin.your-site.com;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location / {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# First attempt to serve request as file, then&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# as directory, then fall back to index.html&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;try_files $uri $uri/ /index.html;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location /doc {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;root /usr/share;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;autoindex on;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;allow 127.0.0.1;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;deny all;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location /images {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;root /usr/share;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;autoindex off;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#error_page 404 /404.html;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# redirect server error pages to the static page /50x.html&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#error_page 500 502 503 504 /50x.html;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#location = /50x.html {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# root /usr/share/nginx/www;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# proxy the PHP scripts to Apache listening on 127.0.0.1:80&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#location ~ .php$ {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# proxy_pass http://127.0.0.1;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location ~ .php$ {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;fastcgi_pass 127.0.0.1:9000;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;fastcgi_index index.php;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;include fastcgi_params;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# deny access to .htaccess files, if Apache’s document root&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# concurs with nginx’s one&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#location ~ /.ht {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# deny all;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Change &lt;em&gt;your-site.com&lt;/em&gt; on line 9 to your domain name. Don´t forget to set up the DNS record!!!&lt;br /&gt; Now we have to enable this configuration using the following command:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;ln&lt;/span&gt; -s /etc/nginx/sites-available/phpmyadmin /etc/nginx/sites-enabled/phpmyadmin&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now restart nginx and your done. Go to &lt;em&gt;phpmyadmin.your-site.com &lt;/em&gt;in your web-browser and login with the username and password you specified in the MySQL installer (not the phpMyAdmin one).&lt;br /&gt; &lt;strong&gt;6. Email server&lt;/strong&gt;&lt;br /&gt; Now it´s time to set up a Mail Transport Agent (MTA), in this case,  Postfix; and a POP3/IMAP server, Dovecot, so we can read the mail.  (Note: If your planning to use Google Apps for email, or not use your  own email at all, you can skip this step.&lt;br /&gt; First let´s install Postfix:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; postfix postfix-tls libsasl2&lt;span class=&quot;nu0&quot;&gt;-2&lt;/span&gt; sasl2-bin libsasl2-modules popa3d&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Follow the insructions on-screen until the installation completes. We´ll configure Postfix later. Now let´s install Dovecot:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; dovecot-imapd dovecot-pop3d dovecot-common&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Open the config file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/dovecot/dovecot.conf&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Find the following settings (using the CTRL+W function) and make shure they are set as below (uncomment if necesary):&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;protocols = imap pop3&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;ssl = no&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;mail_location = mbox:~/mail:INBOX=/var/mail/%u&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;pop3_uidl_format = %08Xu%08Xv&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;disable_plaintext_auth = no&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now replace this:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;auth default {&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; With this:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;auth default2 {&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And just before that line add:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;auth default {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;mechanisms = plain login&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;passdb pam {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;userdb passwd {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;socket listen {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;client {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;path = /var/spool/postfix/private/auth&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;mode = 0660&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;user = postfix&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;group = postfix&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now enter the Postfix config file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/postfix/main.cf&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And insert at the end:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;smtpd_sasl_auth_enable = yes&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;smtpd_sasl_local_domain = your-site.com&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;smtpd_sasl_security_options = noanonymous&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Replacing &lt;em&gt;your-site.com &lt;/em&gt;with your domain name.&lt;br /&gt; Now add a new user to recieve and send email (If new user is &lt;em&gt;joe&lt;/em&gt; then email address will be &lt;em&gt;joe@your-site.com&lt;/em&gt;. Create as many users as you want):&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;adduser username&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now restart all components of the mail server:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-bash&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;/etc/init.d/saslauthd restart&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;/etc/init.d/postfix restart&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;/etc/init.d/dovecot restart&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now you can access your email through your email client, or through  any webmail package. I recomend Roundcube webmail, since it is easy to  set up and use, stylish and works great with nginx!&lt;br /&gt; &lt;strong&gt;7. FTP server&lt;/strong&gt;&lt;br /&gt; I use vsftpd (Very Secure File Transfer Protocol Daemon) beacause  it´s lightning fast and very easy to set up. First let´s install it:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; vsftpd&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now let´s edit the config file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/vsftpd.conf&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Replace the entire contents with:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Run standalone? vsftpd can run either from an inetd or as a standalone&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# daemon started from an initscript.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;listen=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Run standalone with IPv6?&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Like the listen parameter, except vsftpd will listen on an IPv6 socket&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# instead of an IPv4 one. This parameter and the listen parameter are mutually&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# exclusive.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#listen_ipv6=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Allow anonymous FTP? (Disabled by default)&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;anonymous_enable=NO&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Uncomment this to allow local users to log in.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;local_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Uncomment this to enable any form of FTP write command.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;write_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Default umask for local users is 077. You may wish to change this to 022,&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# if your users expect that (022 is used by most other ftpd’s)&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#local_umask=022&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Uncomment this to allow the anonymous FTP user to upload files. This only&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# has an effect if the above global write enable is activated. Also, you will&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# obviously need to create a directory writable by the FTP user.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#anon_upload_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Uncomment this if you want the anonymous FTP user to be able to create&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# new directories.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#anon_mkdir_write_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Activate directory messages – messages given to remote users when they&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# go into a certain directory.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;dirmessage_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;force_dot_files=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# If enabled, vsftpd will display directory listings with the time&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# in your local time zone. The default is to display GMT. The&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# times returned by the MDTM FTP command are also affected by this&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# option.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;use_localtime=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Activate logging of uploads/downloads.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;xferlog_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Make sure PORT transfer connections originate from port 20 (ftp-data).&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;connect_from_port_20=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# If you want, you can arrange for uploaded anonymous files to be owned by&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# a different user. Note! Using “root” for uploaded files is not&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# recommended!&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#chown_uploads=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#chown_username=whoever&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may override where the log file goes if you like. The default is shown&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# below.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#xferlog_file=/var/log/vsftpd.log&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# If you want, you can have your log file in standard ftpd xferlog format.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Note that the default log file location is /var/log/xferlog in this case.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#xferlog_std_format=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may change the default value for timing out an idle session.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;idle_session_timeout=900&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may change the default value for timing out a data connection.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#data_connection_timeout=120&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# It is recommended that you define on your system a unique user which the&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# ftp server can use as a totally isolated and unprivileged user.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#nopriv_user=ftpsecure&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Enable this and the server will recognise asynchronous ABOR requests. Not&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# recommended for security (the code is non-trivial). Not enabling it,&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# however, may confuse older FTP clients.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#async_abor_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# By default the server will pretend to allow ASCII mode but in fact ignore&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# the request. Turn on the below options to have the server actually do ASCII&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# mangling on files when in ASCII mode.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Beware that on some FTP servers, ASCII support allows a denial of service&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# attack (DoS) via the command “SIZE /big/file” in ASCII mode. vsftpd&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# predicted this attack and has always been safe, reporting the size of the&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# raw file.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# ASCII mangling is a horrible feature of the protocol.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#ascii_upload_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#ascii_download_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may fully customise the login banner string:&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;ftpd_banner=Your welcome message&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may specify a file of disallowed anonymous e-mail addresses. Apparently&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# useful for combatting certain DoS attacks.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#deny_email_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# (default follows)&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#banned_email_file=/etc/vsftpd.banned_emails&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may restrict local users to their home directories. See the FAQ for&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# the possible risks in this before using chroot_local_user or&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# chroot_list_enable below.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#chroot_local_user=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may specify an explicit list of local users to chroot() to their home&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# directory. If chroot_local_user is YES, then this list becomes a list of&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# users to NOT chroot().&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#chroot_local_user=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#chroot_list_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# (default follows)&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#chroot_list_file=/etc/vsftpd.chroot_list&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# You may activate the “-R” option to the builtin ls. This is disabled by&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# default to avoid remote users being able to cause excessive I/O on large&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# sites. However, some broken FTP clients such as “ncftp” and “mirror” assume&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# the presence of the “-R” option, so there is a strong case for enabling it.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#ls_recurse_enable=YES&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Debian customization&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# Some of vsftpd’s settings don’t fit the Debian filesystem layout by&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# default. These settings are more Debian-friendly.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# This option should be the name of a directory which is empty. Also, the&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# directory should not be writable by the ftp user. This directory is used&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# as a secure chroot() jail at times vsftpd does not require filesystem&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# access.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;secure_chroot_dir=/var/run/vsftpd/empty&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# This string is the name of the PAM service vsftpd will use.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;pam_service_name=vsftpd&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;pasv_min_port=44950&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;pasv_max_port=45000&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# This option specifies the location of the RSA certificate to use for SSL&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# encrypted connections.&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;#rsa_cert_file=/etc/ssl/private/vsftpd.pem&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Things to change:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;On line 91, type your welcome message.&lt;/li&gt;&lt;li&gt;On lines 132 and 133 are the minimum and maximum ports passive  connections. You´ll need them if you install a firewall later. Change  them to any unspecified port range (see what ports are unspecified &lt;a href=&quot;http://www.iana.org/assignments/port-numbers&quot;&gt;here&lt;/a&gt;).&lt;/li&gt;&lt;/ul&gt;Now restart vsftpd:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;restart vsftpd&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; You can now login to your server using FTP (using the user account you created before. Root logins will not work.)&lt;br /&gt; &lt;strong&gt;8. Webmin&lt;/strong&gt;&lt;br /&gt; Webmin is a server control panel similar to cPanel and Plesk, but it  is free. First get the download path for the latest .tar.gz version &lt;a href=&quot;http://www.webmin.com/download.html&quot;&gt;here&lt;/a&gt;. Then download and install it on your server:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-bash&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;wget&lt;/span&gt; http://downloadpath/webmin-x.x.x.&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt;.gz&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt; xzf webmin-x.x.x.&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt;.gz&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;cd&lt;/span&gt; /webmin&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;./setup.&lt;span class=&quot;kw2&quot;&gt;sh&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;After setup is complete go to &lt;em&gt;your-site.com:10000&lt;/em&gt; and login with the username and password you specified during the installation.&lt;br /&gt; &lt;strong&gt;9.Things to set-up before continuing&lt;/strong&gt;&lt;br /&gt; Now is a good time to do certain tasks that should be performed.&lt;br /&gt; First, I recommend, as a security precaution, to change the SSH port  using Webmin (Servers &amp;gt; SSH server &amp;gt; Networking). Don´t forget to  click apply changes after changing the port number, or to update the  port number in the PuTTY configuration window.&lt;br /&gt; We also have to add the user you use to make FTP connections to the &lt;em&gt;www-data &lt;/em&gt;group, so that there isn´t any permission errors when we install WordPress. First go to &lt;em&gt;System &amp;gt; Users and Groups&lt;/em&gt; and select the user account you use to make your FTP connections. Go to the &lt;em&gt;Group membership&lt;/em&gt; section and set &lt;em&gt;Primary Group &lt;/em&gt;to &lt;em&gt;www-data&lt;/em&gt;. Now go to &lt;em&gt;Secondary groups&lt;/em&gt; and add the group with the same name as the user account. Also add the &lt;em&gt;sudo&lt;/em&gt; group if you want this user account to be able to use the sudo command. Now set &lt;em&gt;Change group ID on files? &lt;/em&gt;to &lt;em&gt;All files.&lt;/em&gt;&lt;br /&gt; &lt;div style=&quot;display: block; margin: 0 auto; width: 310px;&quot;&gt;&lt;em&gt;&lt;a href=&quot;http://terra-byte.org/wp-content/uploads/2011/03/Usergroup.png&quot;&gt;&lt;img alt=&quot;Group settings&quot; class=&quot;size-medium wp-image-307&quot; height=&quot;120&quot; src=&quot;http://terra-byte.org/wp-content/uploads/2011/03/Usergroup-300x120.png&quot; title=&quot;Usergroup&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/em&gt;Settings should look like this &lt;/div&gt;&lt;/div&gt;Now click save. Do this to all user accounts you use to upload files  via FTP. So now nginx has group access to your users files (In other  words, permission 774 means full permissions for owner,&lt;em&gt; full permissions for nginx (and therefore WordPress, etc…)&lt;/em&gt; and read permissions for everybody else. We do this so the server can  modify files when we use things like WordPress. Now go to the SSH  terminal and type:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chown&lt;/span&gt; -R username /usr/share/nginx/www&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Replacing username with the user you´ve just added to the &lt;em&gt;www-data&lt;/em&gt; group.&lt;br /&gt; We`re now ready to set up Memcached&lt;br /&gt; &lt;strong&gt;10. Memcached&lt;/strong&gt;&lt;br /&gt; Memcached is a general-purpose distributed memory caching system. It is very easy to install. Just type:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;apt-get &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; memcached php5-memcached&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And you´re done! Instructions on how to integrate it into WordPress &lt;a href=&quot;http://mohanjith.net/blog/2008/10/using-memcached-with-wordpress-object-cache.html&quot; target=&quot;_blank&quot; title=&quot;WordPress memcached intergration&quot;&gt;here.&lt;br /&gt;&lt;/a&gt;&lt;br /&gt; &lt;strong&gt;11. EAccelerator&lt;/strong&gt;&lt;br /&gt; EAccelerator is a caching extension for PHP that stores PHP scripts in their compiled state in shared memory.&lt;br /&gt; First, we need to download the latest version of EAccelerator:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt; &lt;span class=&quot;kw2&quot;&gt;wget&lt;/span&gt; http://bart.eaccelerator.net/&lt;span class=&quot;kw3&quot;&gt;source&lt;/span&gt;/&lt;span class=&quot;nu0&quot;&gt;0.9&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.6&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.1&lt;/span&gt;/eaccelerator&lt;span class=&quot;nu0&quot;&gt;-0.9&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.6&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.1&lt;/span&gt;.&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt;.bz2&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now let´s compile and install it:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-bash&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt; xvjf eaccelerator&lt;span class=&quot;nu0&quot;&gt;-0.9&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.6&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.1&lt;/span&gt;.&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt;.bz2&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;cd&lt;/span&gt; eaccelerator&lt;span class=&quot;nu0&quot;&gt;-0.9&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.6&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.1&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;phpize&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;./configure –enable-&lt;span class=&quot;re2&quot;&gt;eaccelerator=&lt;/span&gt;shared&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;make&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;make&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now we have to enable it in the php.ini file. Open the php.ini file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/php5/cgi/php.ini&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And insert this just after &lt;em&gt;(PHP)&lt;/em&gt;&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;zend_extension = “/usr/lib/php5/20090626/eaccelerator.so”&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.shm_size = “32″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.cache_dir = “/var/cache/eaccelerator”&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.enable = “1″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.optimizer = “1″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.check_mtime = “1″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.debug = “0″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.filter = “”&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.shm_max = “0″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.shm_ttl = “0″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.shm_prune_period = “0″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.shm_only = “0″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.compress = “1″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.compress_level = “9″&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;eaccelerator.allowed_admin_path = “/usr/share/nginx/www/eaccelerator/control.php”&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now restart PHP:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;/etc/init.d/php-fastcgi restart&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now we´ll enable the EAccelerator control panel:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-bash&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;mkdir&lt;/span&gt; /usr/share/nginx/www/eaccelerator&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;mv&lt;/span&gt; control.php /usr/share/nginx/www/eaccelerator&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;644&lt;/span&gt; /usr/share/nginx/www/eaccelerator/control.php&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /usr/share/nginx/www/eaccelerator/control.php&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now find the &lt;em&gt;$user &lt;/em&gt;and &lt;em&gt;$pw&lt;/em&gt; settings and change them to a username and password.&lt;br /&gt; &lt;strong&gt;12. And finally… WordPress&lt;/strong&gt;&lt;br /&gt; We are now ready to install WordPress. First we´ll configure nginx so pretty permalinks work. Open the config file:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;nano&lt;/span&gt; /etc/nginx/sites-available/default&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now find:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location / {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# First attempt to serve request as file, then&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;# as directory, then fall back to index.html&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;try_files $uri $uri/ /index.html;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;And just after that (before the }) add:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;if (!-e $request_filename) {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;rewrite ^(.+)$ /index.php?q=$1 last;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;This will enable pretty permalinks. While we´re here we might as well block access to the wp-config.php file. Just before:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;location /doc {&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Add:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location /wp-config.php {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;deny all;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;And also block access to the .htaccess files that come with some  WordPress plugins (while we´re on the subject, .htaccess files don´t  work with nginx, instead you use location blocks in the config file, as  you´ve probably already figured out). Uncomment the following lines:&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-text&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;location ~ /.ht {&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;deny all;&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now restart nginx:&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;/etc/init.d/nginx restart&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; Now we´re ready to install WordPress. Make shure you are logged in using the user account you added to the &lt;em&gt;www-data&lt;/em&gt; group in step 9 (following this procedure wil install it in the root of your site):&lt;br /&gt; &lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;geshifilter-bash&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;ol&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;cd&lt;/span&gt; /usr/share/nginx/www&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;wget&lt;/span&gt; http://wordpress.org/latest.&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt;.gz&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt; xzf latest.&lt;span class=&quot;kw2&quot;&gt;tar&lt;/span&gt;.gz&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;cd&lt;/span&gt; wordpress&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;mv&lt;/span&gt; * ..&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;rm&lt;/span&gt; -rf wordpress&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; -R &lt;span class=&quot;nu0&quot;&gt;755&lt;/span&gt; /usr/share/nginx/www&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; -R &lt;span class=&quot;nu0&quot;&gt;775&lt;/span&gt; wp-content&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt; &lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;664&lt;/span&gt; wp-config.php&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;Now login to phpMyAdmin, click on the permisions tab and create a new user account and database for WordPress. Then go to &lt;em&gt;your-site.com/wp-admin/install.php&lt;/em&gt; and complete WordPress´famous 5-minute install.&lt;br /&gt; After installing go to SSH and type&lt;br /&gt; &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;bash geshifilter-bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;640&lt;/span&gt; /usr/share/nginx/www/wp-config.php&lt;/code&gt;&lt;/span&gt;&lt;br /&gt; And you´re done! By following this tutorial you have (hopefully) gone  from a blank box to a sophisticatedly set-up VPS capable of handling  almost anything. I hope that this tutorial is both accurate and easy to  understand. If you have any problems please leave a comment below.</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8899875409841733378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/09/how-to-set-up-vps-with-nginx-php-mysql.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8899875409841733378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8899875409841733378'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/09/how-to-set-up-vps-with-nginx-php-mysql.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>2</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-7605862385457370147</id><published>2012-08-26T00:33:00.000-07:00</published><updated>2012-08-26T00:33:06.282-07:00</updated><title type='text'></title><content type='html'>&lt;div class=&quot;header&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;            How to set up a Pirate Bay proxy&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;header&quot;&gt;&lt;div style=&quot;float: right;&quot;&gt;                              &lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: -10px;&quot;&gt;Jump to: &lt;a href=&quot;http://about.piratereverse.info/proxy/#windows&quot;&gt;Windows proxy&lt;/a&gt; - &lt;a href=&quot;http://about.piratereverse.info/proxy/#linux&quot;&gt;linux proxy instructions&lt;/a&gt; - &lt;a href=&quot;http://about.piratereverse.info/proxy/#mac&quot;&gt;Mac OS X proxy instructions&lt;/a&gt; - &lt;a href=&quot;http://about.piratereverse.info/proxy/#php&quot;&gt;PHP script&lt;/a&gt; - &lt;a href=&quot;http://about.piratereverse.info/proxy/#more&quot;&gt;submit, help, and share&lt;/a&gt;&lt;/div&gt;Looking for a list of working proxies? See &lt;a href=&quot;http://about.piratereverse.info/proxy/list.html&quot;&gt;http://about.piratereverse.info/proxy/list.html&lt;/a&gt; - updated daily!&lt;br /&gt; &lt;h3&gt;Background&lt;/h3&gt;This article will be explaining how to set up your own pirate bay  proxy, as some ISPs in the UK have been ordered to block it by the High  Court. In addition to this we will also be explaining how it is a good  and low cost investment with a great outcome - we must fight censorship,  we cannot let this continue.&lt;br /&gt; For most of the article we&#39;ll be using a web server called &lt;a href=&quot;http://wiki.nginx.org/&quot; target=&quot;_blank&quot;&gt;nginx&lt;/a&gt;.  It has been tested on Red Hat based and Debian based distributions but  it works on pretty much all UNIX-based systems. Your server should not  have anything else running on port 80 though, and of course it needs  sufficient bandwidth. Don&#39;t use a precompiled binary from your  distributions repos though as it will not have all the required modules.  You can get good value VPS servers for next to nothing these days that  will be more than capable of running it, ours costs less than £5 per  month.&lt;br /&gt; There is also a PHP script that proxies The Pirate Bay that has been  designed specifically for this, and can be used on web hosting packages  (i.e. does not require a server dedicated to it). If you are planning on  doing this, make sure you aren&#39;t violating any terms of service that  your provider has.&lt;br /&gt; These guides were created in the spirit of The Hydra Bay. In ancient  Greek mythology, the Hydra was a serpent that possessed many heads.  Herakles was sent to destroy it as one of his twelve labours, but for  each of the heads that he decapitated, two more grew. In a sense this is  what we are trying to achive; ISPs block The Pirate Bay, and many more  proxies appear.&lt;br /&gt; &lt;br /&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; name=&quot;windows&quot;&gt;&lt;/a&gt;  &lt;h3&gt;Preconfigured Windows nginx proxy&lt;/h3&gt;We have preconfigured nginx for Windows into a Pirate Bay proxy. Just  download it, run start.bat and configure your router and you have a  fully functional proxy that you can share.&lt;br /&gt; &lt;b&gt;&lt;a href=&quot;http://about.piratereverse.info/proxy/nginx-piratereverse.zip&quot; target=&quot;_blank&quot;&gt;Download&lt;/a&gt; v1.0 based on nginx/1.2.0&lt;/b&gt;&lt;br /&gt; This will only work if your ISP has not blocked The Pirate Bay, if  they have then your proxy will be serving their block page rather than  the actual Pirate Bay site. If your ISP has blocked it and you need to  access The Pirate Bay, use &lt;a href=&quot;https://piratereverse.info/&quot;&gt;https://piratereverse.info&lt;/a&gt; instead, or check out &lt;a href=&quot;http://about.piratereverse.info/proxy/list.html&quot;&gt;this list of proxies&lt;/a&gt;.&lt;br /&gt; Once the software is running you will need to forward port 80 on your  router or firewall to the IP of the computer with nginx. This guide &lt;a href=&quot;http://portforward.com/english/applications/port_forwarding/Apache/default.htm&quot; target=&quot;_blank&quot;&gt;about Apache will help&lt;/a&gt; as it uses the same port. You will also need to open nginx.conf in the  conf directory and change where it says 127.0.0.1 to your external IP  address or hostname. If you don&#39;t have a static IP address, use a  service like &lt;a href=&quot;http://no-ip.com/&quot; target=&quot;_blank&quot;&gt;no-ip.com&lt;/a&gt; to get a free hostname and dynamic DNS.&lt;br /&gt;  &lt;br /&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; name=&quot;linux&quot;&gt;&lt;/a&gt;  &lt;h3&gt;Guide for nginx proxy on linux&lt;/h3&gt;1. Once you&#39;ve got your server set up and online you&#39;ll want to get  nginx installed. Install the dependencies first, this is for a Red Hat  based system. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;yum install pcre-devel zlib-devel openssl-devel gcc make subversion&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; If you&#39;re using a Debian based operating system you should use this. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl gcc make subversion&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 2. Download the source. Latest version is 1.2.0 as of 04/05/2012.  &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;wget http://nginx.org/download/nginx-1.2.0.tar.gz&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 3. Download the substitutions4nginx source using subversion. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 4. Extract the source. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;tar xzvf nginx-1.2.0.tar.gz&lt;br /&gt;cd nginx-1.2.0&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 5. Get ready to compile by configuring. Leave out  --with-http_ssl_module if you aren&#39;t planning on using SSL. Change the  path of the substitutions4nginx-read-only directory to where you&#39;ve  downloaded it to. If you haven&#39;t changed the path and are logged in as  root it&#39;ll probably be /root/substitutions4nginx-read-only/ &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;./configure --with-http_ssl_module --add-module=/path/to/substitutions4nginx-read-only&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 6. Compile it. It&#39;ll be installed to /usr/local/nginx/ by default. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;make&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;make install&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 7. Test nginx is working by starting it then typing in your server IP  in your web browser. You should see the &quot;Welcome to nginx!&quot; message. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;cd /usr/local/nginx/&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;./sbin/nginx&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 8. If its working, we&#39;ll stop it so we can configure it. If you can&#39;t  connect to it, make sure there isn&#39;t a firewall blocking it. For  testing, &lt;a href=&quot;http://bash.cyberciti.biz/security/shell-script-to-stop-linux-firewall/&quot; target=&quot;_blank&quot;&gt;see this shell script&lt;/a&gt;. You should configure iptables properly later but its not something in the scope of this article, instead &lt;a href=&quot;http://www.thegeekstuff.com/2011/06/iptables-rules-examples/&quot; target=&quot;_blank&quot;&gt;see here&lt;/a&gt;. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;./sbin/nginx -s stop&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 9. Rename the default config file so we&#39;ve got a copy just in case something isn&#39;t quite right. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;cd conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;mv nginx.conf nginx.conf-backup&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 10. Download this non-SSL config and open it. Have a look at it &lt;a href=&quot;http://about.piratereverse.info/proxy/config.html&quot;&gt;here&lt;/a&gt; online first if you&#39;re unsure. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;wget http://about.piratereverse.info/proxy/nginx.conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;vi nginx.conf&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt;  If you are using SSL, download this config and open it. Have a look at it &lt;a href=&quot;http://about.piratereverse.info/proxy/config-ssl.html&quot;&gt;here&lt;/a&gt; online first if you&#39;re unsure. This is for SSL. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;wget http://about.piratereverse.info/proxy/nginx-ssl.conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;mv nginx-ssl.conf nginx.conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;vi nginx.conf&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 11. If you aren&#39;t using SSL the only thing you should consider  changing is the subs_filters, or you can remove them. They perform a  find and replace. If you are using SSL change the paths of the SSL  certificates as appropriate and edit the server_name so it is relevant.&lt;br /&gt; &lt;br /&gt; 12. Make the cache directory. By caching we&#39;ll be taking the stress  off The Pirate Bay&#39;s servers and speeding up delivery of our site. If  you changed the cache path above then make sure its the same here too. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;mkdir /usr/local/nginx/cache&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 13. Test your config works by starting nginx. If there isn&#39;t any  output then its started. If you get [emerg] errors, something needs  changing. Usually the output will point you in the right direction. If  you can&#39;t figure it out, try searching the internet as there are a lot  of resources - otherwise email with as much detail as possible. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;./usr/local/nginx/sbin/nginx&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 14. If it works, try it out. You&#39;ve completed it. We recommend  installing Webmin too, so you can see the error logs in the browser and  manage the server with ease. If you are hosting this as a public proxy  then see &lt;a href=&quot;http://about.piratereverse.info/proxy/#more&quot;&gt;this section on contacting us&lt;/a&gt; as we are maintaining a &lt;a href=&quot;http://about.piratereverse.info/proxy/list.html&quot;&gt;list of known proxies&lt;/a&gt;.&lt;br /&gt;   &lt;br /&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; name=&quot;mac&quot;&gt;&lt;/a&gt;  &lt;h3&gt;Guide for nginx proxy on Mac OS X&lt;/h3&gt;One of the advantages with nginx is that it works on a Mac too. This  guide will explain how to configure it. You&#39;ll need to have Xcode  installed, but that is free from Apple.&lt;br /&gt; 1. Configure the dependencies by going to the Terminal (Applications  &amp;gt; Utilities) and paste in the following. If it does not work, paste  it in each line at a time (note that the long URL on the first line  wraps over onto the second, but it should be treated as a single line). &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz &amp;gt; /usr/local/src/pcre-8.30.tar.gz&lt;br /&gt;  sudo mkdir -p /usr/local/src&lt;br /&gt;cd /usr/local/src&lt;br /&gt;tar xvzf pcre-8.30.tar.gz&lt;br /&gt;cd pcre-8.30&lt;br /&gt;./configure --prefix=/usr/local&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;cd&lt;br /&gt; &lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 2. Download nginx source and untar it. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;sudo curl -OL h http://nginx.org/download/nginx-1.2.0.tar.gz &amp;gt; /usr/local/src/nginx-1.2.0.tar.gz&lt;br /&gt;tar xvzf /usr/local/src/nginx-1.2.0.tar.gz&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 3. Download the substitutions4nginx source using subversion. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;cd /usr/local/src/&lt;br /&gt;svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 4. Get ready to compile by configuring. Leave out  --with-http_ssl_module if you aren&#39;t planning on using SSL. Change the  path of the substitutions4nginx-read-only directory to where you&#39;ve  downloaded it to. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;cd nginx-1.2.0&lt;br /&gt;./configure --with-http_ssl_module --add-module=/path/to/substitutions4nginx-read-only&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 5. Compile it. It&#39;ll be installed to /usr/local/sbin/ by default. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;make&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;sudo make install&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 6. Test nginx is working by starting it then typing in your server IP  in your web browser. You should see the &quot;Welcome to nginx!&quot; message.  &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;sudo /usr/local/sbin/nginx&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 7. If its working, we&#39;ll stop it so we can configure it. If there are any problems, try installing it again using &lt;a href=&quot;http://en.saturngod.net/install-nginx-on-mac-os-x-1067&quot; target=&quot;_blank&quot;&gt;this guide&lt;/a&gt; but make sure you include the &quot;--add-module=/path/to/substitutions4nginx-read-only&quot; parameter to ./compile &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;sudo /usr/local/sbin/nginx -s stop&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 8. Rename the default config file so we&#39;ve got a copy just in case something isn&#39;t quite right. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;cd /usr/local/conf/&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;mv nginx.conf nginx.conf-backup&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 9. Download this non-SSL config and open it. Have a look at it &lt;a href=&quot;http://about.piratereverse.info/proxy/config.html&quot;&gt;here&lt;/a&gt; online first if you&#39;re unsure. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;wget http://about.piratereverse.info/proxy/nginx.conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;vi nginx.conf&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt;  If you are using SSL, download this config and open it. Have a look at it &lt;a href=&quot;http://about.piratereverse.info/proxy/config-ssl.html&quot;&gt;here&lt;/a&gt; online first if you&#39;re unsure. This is for SSL. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;wget http://about.piratereverse.info/proxy/nginx-ssl.conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;mv nginx-ssl.conf nginx.conf&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;vi nginx.conf&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 10. If you aren&#39;t using SSL the only thing you should consider  changing is the subs_filters, or you can remove them. They perform a  find and replace. If you are using SSL change the paths of the SSL  certificates as appropriate and edit the server_name so it is relevant.&lt;br /&gt; &lt;br /&gt; 11. Test your config works by starting nginx. If you get [emerg]  errors, something needs changing. Usually the output will point you in  the right direction. If you can&#39;t figure it out, try searching the  internet as there are a lot of resources - otherwise email with as much  detail as possible. &lt;br /&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;tt&gt;sudo /usr/local/sbin/nginx&lt;/tt&gt;&lt;/div&gt;&lt;br /&gt; 12. Installation is complete, try it out. If you are hosting this as a public proxy then see &lt;a href=&quot;http://about.piratereverse.info/proxy/#more&quot;&gt;this section on contacting us&lt;/a&gt; as we are maintaining a &lt;a href=&quot;http://about.piratereverse.info/proxy/list.html&quot;&gt;list of known proxies&lt;/a&gt;.&lt;br /&gt;   &lt;br /&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; name=&quot;php&quot;&gt;&lt;/a&gt;&lt;h3&gt;PHP script&lt;/h3&gt;This PHP script is a proxy designed specifically for providing access  to The Pirate Bay. A great solution if you do not have a server that  you can dedicate to the task. It was developed by &lt;a href=&quot;http://unblockedpiratebay.com/external/&quot;&gt;UnblockedPirateBay.com&lt;/a&gt; and requires at least PHP5 and cURL. Just unzip it and upload it to your web server.&lt;br /&gt; &lt;b&gt;&lt;a href=&quot;http://unblockedpiratebay.com/external/download/&quot;&gt;Download&lt;/a&gt; latest&lt;/b&gt;&lt;br /&gt; The cookies.txt file should be chmod 755/777. There is no additional configuration required however in the file &lt;tt&gt;configurationfile.php&lt;/tt&gt; there are some options you can change, such as the page title.&lt;br /&gt;   &lt;br /&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; name=&quot;more&quot;&gt;&lt;/a&gt;  &lt;h3&gt;Tips for running a successful proxy&lt;/h3&gt;Do the following:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;ensure your proxy is fast&lt;/li&gt;&lt;li&gt;ensure it is easily accessible, i.e. no complicated domains!&lt;/li&gt;&lt;li&gt;ensure it is available 24/7 - proxies that no longer work are removed from the list!&lt;/li&gt;&lt;/ul&gt;Don&#39;t do the following:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;interfere with TPB&#39;s content&lt;/li&gt;&lt;li&gt;charge for access - you&#39;ll get blacklisted by TPB and your proxy will stop working!&lt;/li&gt;&lt;li&gt;insert many of your own ads&lt;/li&gt;&lt;li&gt;show any pages before TPB&#39;s homepage&lt;/li&gt;&lt;li&gt;use an open web proxy such as Glype or PHProxy&lt;/li&gt;&lt;li&gt;save POST data of any kind&lt;/li&gt;&lt;/ul&gt;Unfortunately some rouge sites have appeared, which is unacceptable  and disappointing that people feel the need to abuse the situation. Any  sites found to be in the best interest of the operators and not the  visitors will be reported to The Pirate Bay so they can be dealt with!  Find out more at &lt;a href=&quot;http://torrentfreak.com/pirate-bay-slaps-pathetic-proxies-and-scammy-copies-120507/&quot; target=&quot;_blank&quot;&gt;http://torrentfreak.com/pirate-bay-slaps-pathetic-proxies-and-scammy-copies-120507/&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;  &lt;h3&gt;Submit your site&lt;/h3&gt;Once you have created your site, we would appreciate it if you would share it with us by emailing &lt;a href=&quot;mailto:nospam@piratereverse.info&quot;&gt;nospam@piratereverse.info&lt;/a&gt; - this is so we can all build up a list of proxies. Our list is at &lt;a href=&quot;http://about.piratereverse.info/proxy/list.html&quot;&gt;http://about.piratereverse.info/proxy/list.html&lt;/a&gt; and will be shared on The Pirate Bay&#39;s Facebook wall.&lt;br /&gt; &lt;br /&gt; &lt;h3&gt;Help&lt;/h3&gt;If anyone has any questions or suggestions please email &lt;a href=&quot;mailto:nospam@piratereverse.info&quot;&gt;nospam@piratereverse.info&lt;/a&gt; and we&#39;ll be happy to try and help. If we get a lot of similar questions we&#39;ll add a FAQ section here.&lt;br /&gt; Likewise if anyone has any improvements to make the process easier  then please submit them at the above email address. We&#39;re also looking  for any alternative methods of creating proxies, so if you have wrote  some code or are making a guide, let us know and we&#39;ll post it here. It  is important we can get as many Pirate Bay proxies up as possible, that  is what The Hydra Bay is all about.&lt;br /&gt; &lt;br /&gt; &lt;h3&gt;Spread the word&lt;/h3&gt;Please let people know about this - the more proxies that work properly the better. If you use Twitter follow us, we are &lt;a href=&quot;https://twitter.com/piratereverse&quot; target=&quot;_blank&quot;&gt;@piratereverse&lt;/a&gt;. Post about it, include the hashtag &lt;b&gt;#thehydrabay&lt;/b&gt;.  Let&#39;s see if we can get this trending! If you are able to donate,  please do so below using flattr so we can keep providing a fast and  reliable service with continually updated information. If you&#39;d like to  donate via PayPal, that is fine just send us an email and we&#39;ll discuss  from there. You can donate via BitCoin too, our address is &lt;tt&gt;1BsHaQccToKwN7LEr6kqVjPtZKxNu84SDg&lt;/tt&gt;. &lt;b&gt;All donations are very much appreciated, no matter how little you are able to send us.&lt;/b&gt; It is the only way we are able to keep the proxy going.</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/7605862385457370147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/how-to-set-up-pirate-bay-proxy-jump-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7605862385457370147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7605862385457370147'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/how-to-set-up-pirate-bay-proxy-jump-to.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-4832704373624574394</id><published>2012-08-22T06:25:00.003-07:00</published><updated>2012-08-22T06:27:29.023-07:00</updated><title type='text'></title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-4n4VNoEwq7I/UDTdolTE-5I/AAAAAAAAADk/NS6KaODpzg0/s1600/youtube-cache.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;http://4.bp.blogspot.com/-4n4VNoEwq7I/UDTdolTE-5I/AAAAAAAAADk/NS6KaODpzg0/s320/youtube-cache.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/4832704373624574394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/4832704373624574394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/4832704373624574394'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/blog-post.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-4n4VNoEwq7I/UDTdolTE-5I/AAAAAAAAADk/NS6KaODpzg0/s72-c/youtube-cache.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-7034252622662873446</id><published>2012-08-13T08:24:00.001-07:00</published><updated>2012-08-13T08:24:34.999-07:00</updated><title type='text'></title><content type='html'>&lt;h1&gt;How to Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6 &lt;/h1&gt;&lt;div class=&quot;social&quot;&gt; &lt;/div&gt;&lt;h3&gt;About Lemp&lt;/h3&gt;&lt;hr /&gt;LEMP stack is a group of open source software to  get web servers up and running. The acronym stands for Linux, nginx  (pronounced Engine x), MySQL, and PHP. Since the server is already  running CentOS, the linux part is taken care of. Here is how to install  the rest. &lt;br /&gt;&lt;br /&gt;  &lt;h2&gt;Step One—Install the Required Repositories&lt;/h2&gt;&lt;hr /&gt;We will be installing all of the required software with Yum. However,  because neither nginx nor php-fpm are available straight from CentOS, we  need to download two extra repositories first.  &lt;pre&gt;sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm&lt;br /&gt;sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm&lt;/pre&gt;&lt;br /&gt; &lt;h2&gt;Step Two—Install MySQL&lt;/h2&gt;&lt;hr /&gt; The next step is to begin installing the server software, starting with MySQL and dependancies. &lt;pre&gt; sudo yum install mysql mysql-server&lt;/pre&gt;&lt;br /&gt; Once the download is complete, restart MySQL:  &lt;pre&gt;sudo /etc/init.d/mysqld restart&lt;/pre&gt;&lt;br /&gt; You can do some configuration of MySQL with this command: &lt;pre&gt;sudo /usr/bin/mysql_secure_installation&lt;/pre&gt;The prompt will ask you for your current root password. &lt;br /&gt; &lt;br /&gt; Since you just installed MySQL, you most likely won’t have one, so leave it blank by pressing enter. &lt;pre&gt;Enter current password for root (enter for none): &lt;br /&gt;OK, successfully used password, moving on...&lt;/pre&gt;&lt;br /&gt;   Then the prompt will ask you if you want to set a root password. Go ahead and choose Y and follow the instructions. &lt;br /&gt; &lt;br /&gt; CentOS automates the process of setting up MySQL, asking you a series of yes or no questions. &lt;br /&gt; &lt;br /&gt;It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the changes. &lt;pre&gt;By default, a MySQL installation has an anonymous user, allowing anyone&lt;br /&gt;to log into MySQL without having to have a user account created for&lt;br /&gt;them.  This is intended only for testing, and to make the installation&lt;br /&gt;go a bit smoother.  You should remove them before moving into a&lt;br /&gt;production environment.&lt;br /&gt;&lt;br /&gt;Remove anonymous users? [Y/n] y                                            &lt;br /&gt; ... Success!&lt;br /&gt;&lt;br /&gt;Normally, root should only be allowed to connect from &#39;localhost&#39;.  This&lt;br /&gt;ensures that someone cannot guess at the root password from the network.&lt;br /&gt;&lt;br /&gt;Disallow root login remotely? [Y/n] y&lt;br /&gt;... Success!&lt;br /&gt;&lt;br /&gt;By default, MySQL comes with a database named &#39;test&#39; that anyone can&lt;br /&gt;access.  This is also intended only for testing, and should be removed&lt;br /&gt;before moving into a production environment.&lt;br /&gt;&lt;br /&gt;Remove test database and access to it? [Y/n] y&lt;br /&gt; - Dropping test database...&lt;br /&gt; ... Success!&lt;br /&gt; - Removing privileges on test database...&lt;br /&gt; ... Success!&lt;br /&gt;&lt;br /&gt;Reloading the privilege tables will ensure that all changes made so far&lt;br /&gt;will take effect immediately.&lt;br /&gt;&lt;br /&gt;Reload privilege tables now? [Y/n] y&lt;br /&gt; ... Success!&lt;br /&gt;&lt;br /&gt;Cleaning up...&lt;br /&gt;&lt;br /&gt;All done!  If you&#39;ve completed all of the above steps, your MySQL&lt;br /&gt;installation should now be secure.&lt;br /&gt;&lt;br /&gt;Thanks for using MySQL!&lt;/pre&gt;&lt;br /&gt; &lt;h2&gt; Step Three—Install nginx&lt;/h2&gt;&lt;hr /&gt; As with MySQL, we will install nginx using yum:  &lt;pre&gt;sudo yum install nginx&lt;/pre&gt;&lt;br /&gt; nginx does not start on its own. To get nginx running, type: &lt;pre&gt;sudo /etc/init.d/nginx start&lt;/pre&gt;&lt;br /&gt; You can confirm that nginx has installed on your web server by directing your browser to your IP address.   You can run the following command to reveal your server’s IP address. &lt;pre&gt;ifconfig eth0 | grep inet | awk &#39;{ print $2 }&#39;&lt;/pre&gt;&lt;br /&gt;  &lt;h2&gt;Step Four—Install PHP&lt;/h2&gt;&lt;hr /&gt;The php-fpm package is located within the REMI repository, which, at  this point, is disabled. The first thing we need to do is enable the  REMI repository and install php and php-fpm:  &lt;pre&gt;sudo yum --enablerepo=remi install php php-fpm php-mysql&lt;/pre&gt;&lt;br /&gt; Then start php-fpm up.  &lt;pre&gt;sudo service php-fpm start&lt;/pre&gt;&lt;br /&gt;  &lt;h2&gt;Step Five—Configure php&lt;/h2&gt;&lt;hr /&gt;We need to make one small change in the php configuration.Open up php.ini: &lt;pre&gt; sudo vi /etc/php.ini&lt;/pre&gt;&lt;br /&gt; Find the line, cgi.fix_pathinfo=1, and change the 1 to 0.   &lt;pre&gt;cgi.fix_pathinfo=0&lt;/pre&gt;&lt;br /&gt; If this number is kept as a 1, the php interpreter will do its best to  process the file that is as near to the requested file as possible. This  is a possible security risk. If this number is set to 0, conversely,  the interpreter will only process the exact file path—a much safer  alternative. Save and Exit.&lt;br /&gt;&lt;br /&gt; Restart php-fpm:  &lt;pre&gt;sudo service php-fpm restart&lt;/pre&gt;&lt;br /&gt; &lt;h2&gt;Step Six—Configure nginx&lt;/h2&gt;&lt;hr /&gt; Open up the default nginx config file: &lt;pre&gt;sudo vi /etc/nginx/nginx.conf&lt;/pre&gt;&lt;br /&gt; Raise the number of worker processes to 4 then save and exit that file. &lt;br /&gt;&lt;br /&gt; Now we should configure the nginx virtual hosts.  In order to make the default nginx file more concise, the virtual host details are in a different location.   &lt;pre&gt;sudo vi /etc/nginx/conf.d/*.conf&lt;/pre&gt;&lt;br /&gt; The configuration should include the changes below (the details of the changes are under the config information):  &lt;pre&gt;#&lt;br /&gt;# The default server&lt;br /&gt;#&lt;br /&gt;server {&lt;br /&gt;    listen       80;&lt;br /&gt;    server_name  _;&lt;br /&gt;&lt;br /&gt;    #charset koi8-r;&lt;br /&gt;&lt;br /&gt;    #access_log  logs/host.access.log  main;&lt;br /&gt;&lt;br /&gt;    location / {&lt;br /&gt;        root   /usr/share/nginx/html;&lt;br /&gt;        index index.php  index.html index.htm;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    error_page  404              /404.html;&lt;br /&gt;    location = /404.html {&lt;br /&gt;        root   /usr/share/nginx/html;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    # redirect server error pages to the static page /50x.html&lt;br /&gt;    #&lt;br /&gt;    error_page   500 502 503 504  /50x.html;&lt;br /&gt;    location = /50x.html {&lt;br /&gt;        root   /usr/share/nginx/html;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    # proxy the PHP scripts to Apache listening on 127.0.0.1:80&lt;br /&gt;    #&lt;br /&gt;    #location ~ \.php$ {&lt;br /&gt;    #    proxy_pass   http://127.0.0.1;&lt;br /&gt;    #}&lt;br /&gt;&lt;br /&gt;    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000&lt;br /&gt;    #&lt;br /&gt;    location ~ \.php$ {&lt;br /&gt;        root           /usr/share/nginx/html;&lt;br /&gt;        fastcgi_pass   127.0.0.1:9000;&lt;br /&gt;        fastcgi_index  index.php;&lt;br /&gt;        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;&lt;br /&gt;        include        fastcgi_params;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    # deny access to .htaccess files, if Apache&#39;s document root&lt;br /&gt;    # concurs with nginx&#39;s one&lt;br /&gt;    #&lt;br /&gt;    #location ~ /\.ht {&lt;br /&gt;    #    deny  all;&lt;br /&gt;    #}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; Here are the details of the changes:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Add index.php within the index line.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Change the root to  /usr/share/nginx/html;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Uncomment the section beginning with &quot;location ~ \.php$ {&quot;, &lt;/li&gt;&lt;br /&gt;&lt;li&gt;Change the root to access the actual document root, /usr/share/nginx/html;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Change the fastcgi_param line to help the PHP interpreter find the PHP script that we stored in the document root home.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt; Save and Exit&lt;br /&gt;&lt;br /&gt; &lt;h2&gt;Step Seven—RESULTS: Create a php info page&lt;/h2&gt;&lt;hr /&gt; Although LEMP is installed, we can still take a look and see the components online by creating a quick php info page&lt;br /&gt;&lt;br /&gt; To set this up, first create a new file:  &lt;pre&gt;sudo vi /usr/share/nginx/html/info.php&lt;/pre&gt;&lt;br /&gt; Add in the following line:  &lt;pre&gt;&amp;lt;?php&lt;br /&gt;phpinfo();&lt;br /&gt;?&amp;gt;&lt;/pre&gt;&lt;br /&gt; Then Save and Exit. &lt;br /&gt;&lt;br /&gt; Restart apache so that all of the changes take effect:  &lt;pre&gt;sudo service nginx restart&lt;/pre&gt;&lt;br /&gt; Finish up by visiting your php info page (make sure you replace the  example ip address with your correct one): http://12.34.56.789/info.php&lt;br /&gt;&lt;br /&gt; It should look similar to &lt;a href=&quot;http://i.imgur.com/hu4uM.png&quot;&gt;this&lt;/a&gt;.   &lt;h2&gt;Step Eight—Set Up Autostart&lt;/h2&gt;&lt;hr /&gt; You are almost done. The last step is to set all of the newly installed programs to automatically begin when the server boots.  &lt;pre&gt;sudo chkconfig --levels 235 mysqld on&lt;br /&gt;sudo chkconfig --levels 235 nginx on&lt;br /&gt;sudo chkconfig --levels 235 php-fpm on&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/7034252622662873446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/how-to-install-linux-nginx-mysql-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7034252622662873446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7034252622662873446'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/how-to-install-linux-nginx-mysql-php.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-2496707473329478971</id><published>2012-08-10T05:59:00.001-07:00</published><updated>2012-08-10T06:11:06.291-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;$(document).ready(function(){  //DROPDOWN MENU INIT  ddsmoothmenu.init({  mainmenuid: &quot;topMenu&quot;, //menu DIV id  orientation: &#39;h&#39;, //Horizontal or vertical menu: Set to &quot;h&quot; or &quot;v&quot;  classname: &#39;ddsmoothmenu&#39;, //class added to menu&#39;s outer DIV  //customtheme: [&quot;#1c5a80&quot;, &quot;#18374a&quot;],  contentsource: &quot;markup&quot; //&quot;markup&quot; or [&quot;container_id&quot;, &quot;path_to_menu_file&quot;]  });    // PRETTY PHOTO INIT  $(&quot;a[rel^=&#39;prettyPhoto&#39;]&quot;).prettyPhoto(); }); &lt;/script&gt;&lt;title&gt;External Proxy Server for Mikrotik - fazar.net&lt;/title&gt;&lt;link href=&quot;http://www.fazar.net/external-proxy-server-mikrotik/&quot; rel=&quot;canonical&quot;&gt;&lt;/link&gt;&lt;br /&gt;&lt;link href=&quot;http://www.fazar.net/external-proxy-server-mikrotik/feed/&quot; rel=&quot;alternate&quot; title=&quot;fazar.net • live connected, worldwide!  External Proxy Server for Mikrotik Comments Feed&quot; type=&quot;application/rss+xml&quot;&gt;&lt;/link&gt;&lt;link href=&quot;http://www.fazar.net/?p=332&quot; rel=&quot;shortlink&quot;&gt;&lt;/link&gt;&lt;link href=&quot;http://www.fazar.net/wp-content/uploads/2012/05/ext-proxy-mikrotik-300x122.png&quot; rel=&quot;image_src&quot;&gt;&lt;/link&gt;&lt;script charset=&quot;utf-8&quot; type=&quot;text/javascript&quot;&gt;    /* &lt;![CDATA[ */      jQuery.post(&#39;http://www.fazar.net/wp-admin/admin-ajax.php&#39;, {action: &#39;wpp_update&#39;, token: &#39;e7f37f4655&#39;, id: 332});     /* ]]&gt; */ &lt;/script&gt;&lt;style media=&quot;all&quot; type=&quot;text/css&quot;&gt;/* &lt;![CDATA[ */   /* ]]&gt; */ &lt;/style&gt;&lt;div id=&quot;mainWrapper&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1&gt;&lt;a href=&quot;http://www.fazar.net/external-proxy-server-mikrotik/&quot;&gt;External Proxy Server for Mikrotik&lt;/a&gt;&lt;/h1&gt;&lt;div class=&quot;bottomcontainerBox&quot;&gt;&lt;div style=&quot;float: left; height: 30px; margin: 4px 4px 4px 4px; padding-right: 10px; width: 85px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.fazar.net%2Fexternal-proxy-server-mikrotik%2F&amp;amp;layout=button_count&amp;amp;show_faces=false&amp;amp;width=85&amp;amp;action=like&amp;amp;font=verdana&amp;amp;colorscheme=light&amp;amp;height=21&quot; style=&quot;border: none; height: 21px; overflow: hidden; width: 85px;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;float: left; height: 30px; margin: 4px 4px 4px 4px; padding-right: 10px; width: 85px;&quot;&gt;&lt;g:plusone href=&quot;http://www.fazar.net/external-proxy-server-mikrotik/&quot; size=&quot;medium&quot;&gt;&lt;/g:plusone&gt;&lt;/div&gt;&lt;div style=&quot;float: left; height: 30px; margin: 4px 4px 4px 4px; padding-right: 10px; width: 85px;&quot;&gt;&lt;a class=&quot;twitter-share-button&quot; data-count=&quot;horizontal&quot; data-text=&quot;External Proxy Server for Mikrotik&quot; data-url=&quot;http://www.fazar.net/external-proxy-server-mikrotik/&quot; href=&quot;http://twitter.com/share&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;float: left; height: 30px; margin: 4px 4px 4px 4px; padding-right: 10px; width: 105px;&quot;&gt;&lt;script data-counter=&quot;right&quot; data-url=&quot;http://www.fazar.net/external-proxy-server-mikrotik/&quot; type=&quot;in/share&quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;padding-bottom: 4px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Mikrotik routerboard has a built-in proxy in it, but it has main constraint : very limited storage capacity. Therefore, most network administrators whom using mikrotik will use an external proxy to overcome this constraint. Here you can found an easy ways to implementing external proxy server for Mikrotik.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span id=&quot;more-332&quot;&gt;&lt;/span&gt;Squid is the most widely used proxy daemon for linux (including its derivative such as lusca). Some several advantages in the implementation of external proxy are :&lt;/div&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Easy to adjust the configuration to suite your needs&lt;/li&gt;&lt;li&gt;The use of access control lists (ACLs) that can be used for specific purposes&lt;/li&gt;&lt;li&gt;Squid (especially version 2.7) can be “armed” with a url redirector. In some condition, url redirector can be used to force squid to cache dynamic content (such as Youtube videos).&lt;/li&gt;&lt;li&gt;Greater storage capacity as the general computer or server use the harddisk as data storage.&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;In this post, I’ll describe how to integrate external proxy with mikrotik using 2 methods : using NAT or using mangle.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.fazar.net/wp-content/uploads/2012/05/ext-proxy-mikrotik.png&quot; rel=&quot;prettyPhoto&quot; title=&quot;External Proxy Server for Mikrotik&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-medium wp-image-333&quot; height=&quot;130&quot; src=&quot;http://www.fazar.net/wp-content/uploads/2012/05/ext-proxy-mikrotik-300x122.png&quot; title=&quot;ext-proxy-mikrotik&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Annotation :&lt;/div&gt;&lt;ol style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Mikrotik to proxy IP address : 192.168.90.1&lt;/li&gt;&lt;li&gt;Proxy to Mikrotik IP address : 192.168.90.2&lt;/li&gt;&lt;li&gt;Clients IP address : 192.168.1.0/24&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;&lt;b&gt;First method : Using NAT&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;We can used Mikrotik built in NAT to forward HTTP request (port 80) from clients to external proxy.&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;crayon-syntax crayon-theme-twilight crayon-font-courier-new crayon-os-pc print-yes&quot; data-settings=&quot; scroll-mouseover&quot; id=&quot;crayon-5024fffc3375f&quot; style=&quot;clear: both; float: none; margin-bottom: 12px; margin-top: 12px;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; mouseover overlay hide delay&quot;&gt;&lt;div class=&quot;crayon-tools&quot;&gt;&lt;span class=&quot;crayon-mixed-highlight&quot; title=&quot;Contains Mixed Languages&quot;&gt;&lt;/span&gt;&lt;a class=&quot;crayon-nums-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Toggle Line Numbers&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-copy-button crayon-button&quot; data-text=&quot;Press %s to Copy, %s to Paste&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Copy Plain Code&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-popup-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; onclick=&quot;return false;&quot; title=&quot;Open Code In New Window&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-plain-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Toggle Plain Code&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;crayon-info&quot;&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot;&gt;&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;mouseover&quot; readonly=&quot;readonly&quot; style=&quot;-moz-tab-size: 4; -o-tab-size: 4; -webkit-tab-size: 4; tab-size: 4;&quot; wrap=&quot;off&quot;&gt;/ip firewall address-list add address=192.168.90.0/24 list=ip-proxy /ip firewall nat add action=dst-nat chain=dstnat comment=&quot;transparent proxy&quot; dst-port=80 protocol=tcp src-address-list=!ip-proxy to-addresses=192.168.90.2 to-ports=3128&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot;&gt;&lt;table class=&quot;crayon-table&quot;&gt;&lt;tbody&gt;&lt;tr class=&quot;crayon-row&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;hide&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot;&gt;&lt;div class=&quot;crayon-num&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot;&gt;&lt;div class=&quot;crayon-pre&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5024fffc3375f-1&quot;&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;ip &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;firewall &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;list&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5024fffc3375f-2&quot;&gt;&lt;span class=&quot;e&quot;&gt;add &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.90.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;24&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;proxy&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5024fffc3375f-3&quot;&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;ip &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;firewall &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;nat&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5024fffc3375f-4&quot;&gt;&lt;span class=&quot;e&quot;&gt;add &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;dst&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;nat &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;chain&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;dstnat &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;comment&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;transparent proxy&quot;&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;dst&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;port&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;protocol&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;tcp &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;proxy &lt;/span&gt;&lt;span class=&quot;st&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;addresses&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.90.2&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;st&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;3128&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Explanation :&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;First, we define IP address class for proxy server.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;/ip firewall address-list&lt;/i&gt;&lt;br /&gt;&lt;i&gt;add address=192.168.90.0/24 list=ip-proxy&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Then add new rule on NAT to forward http  request to external proxy.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;/ip firewall nat&lt;/i&gt;&lt;br /&gt;&lt;i&gt;add action=dst-nat chain=dstnat comment=”transparent proxy” dst-port=80 protocol=tcp src-address-list=!ip-proxy to-addresses=192.168.90.2 to-ports=3128&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;Second method : Using built-in mangle&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;crayon-syntax crayon-theme-twilight crayon-font-courier-new crayon-os-pc print-yes&quot; data-settings=&quot; scroll-mouseover&quot; id=&quot;crayon-5024fffc33b46&quot; style=&quot;clear: both; float: none; margin-bottom: 12px; margin-top: 12px;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; mouseover overlay hide delay&quot;&gt;&lt;div class=&quot;crayon-tools&quot;&gt;&lt;span class=&quot;crayon-mixed-highlight&quot; title=&quot;Contains Mixed Languages&quot;&gt;&lt;/span&gt;&lt;a class=&quot;crayon-nums-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Toggle Line Numbers&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-copy-button crayon-button&quot; data-text=&quot;Press %s to Copy, %s to Paste&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Copy Plain Code&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-popup-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; onclick=&quot;return false;&quot; title=&quot;Open Code In New Window&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-plain-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Toggle Plain Code&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;crayon-info&quot;&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot;&gt;&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;mouseover&quot; readonly=&quot;readonly&quot; style=&quot;-moz-tab-size: 4; -o-tab-size: 4; -webkit-tab-size: 4; tab-size: 4;&quot; wrap=&quot;off&quot;&gt;/ip route add check-gateway=ping distance=1 gateway=192.168.90.2 routing-mark=to-ext-proxy /ip firewall mangle add action=mark-routing chain=prerouting comment=&quot;mark routing to proxy&quot; dst-port=80 new-routing-mark=to-ext-proxy protocol=tcp src-address=192.168.1.0/24&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot;&gt;&lt;table class=&quot;crayon-table&quot;&gt;&lt;tbody&gt;&lt;tr class=&quot;crayon-row&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;hide&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot;&gt;&lt;div class=&quot;crayon-num&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot;&gt;&lt;div class=&quot;crayon-pre&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5024fffc33b46-1&quot;&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;ip &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;route&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5024fffc33b46-2&quot;&gt;&lt;span class=&quot;e&quot;&gt;add &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;check&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;gateway&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;ping &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;distance&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;gateway&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.90.2&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;routing&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;mark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ext&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;proxy&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5024fffc33b46-3&quot;&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;ip &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;firewall &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;mangle&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5024fffc33b46-4&quot;&gt;&lt;span class=&quot;e&quot;&gt;add &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;mark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;routing &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;chain&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;prerouting &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;comment&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;mark routing to proxy&quot;&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;dst&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;port&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;r&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;routing&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;mark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ext&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;proxy &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;protocol&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;tcp &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.1.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;24&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Another method to forward http requests from clients is using mangle by adding new route. This method will work if external proxy able to act as gateway.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Explanation :&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;First, add route to external proxy.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;/ip route&lt;/i&gt;&lt;br /&gt;&lt;i&gt;add check-gateway=ping distance=1 gateway=192.168.90.2 routing-mark=to-ext-proxy&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Then, mark http requests from all clients to use route to external proxy.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;/ip firewall mangle&lt;/i&gt;&lt;br /&gt;&lt;i&gt;add action=mark-routing chain=prerouting comment=”mark routing to proxy” dst-port=80 new-routing-mark=to-ext-proxy protocol=tcp src-address=192.168.1.0/24&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;&lt;b&gt;Proxy server requirements :&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;You may need to configure some options in order to make it works for both methods such as enabling IPv4 forwarding (by editing systcl.conf) and allowing access to port 3128 in iptables. Add the following lines into the file /etc/rc.local then save :&lt;/div&gt;&lt;div class=&quot;crayon-syntax crayon-theme-twilight crayon-font-courier-new crayon-os-pc print-yes&quot; data-settings=&quot; scroll-mouseover&quot; id=&quot;crayon-5024fffc33f2f&quot; style=&quot;clear: both; float: none; margin-bottom: 12px; margin-top: 12px;&quot;&gt;&lt;div class=&quot;crayon-toolbar&quot; data-settings=&quot; mouseover overlay hide delay&quot;&gt;&lt;div class=&quot;crayon-tools&quot;&gt;&lt;span class=&quot;crayon-mixed-highlight&quot; title=&quot;Contains Mixed Languages&quot;&gt;&lt;/span&gt;&lt;a class=&quot;crayon-nums-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Toggle Line Numbers&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-copy-button crayon-button&quot; data-text=&quot;Press %s to Copy, %s to Paste&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Copy Plain Code&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-popup-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; onclick=&quot;return false;&quot; title=&quot;Open Code In New Window&quot;&gt;&lt;/a&gt;&lt;a class=&quot;crayon-plain-button crayon-button&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=1433207994035541360&quot; title=&quot;Toggle Plain Code&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;crayon-info&quot;&gt;&lt;/div&gt;&lt;div class=&quot;crayon-plain-wrap&quot;&gt;&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;mouseover&quot; readonly=&quot;readonly&quot; style=&quot;-moz-tab-size: 4; -o-tab-size: 4; -webkit-tab-size: 4; tab-size: 4;&quot; wrap=&quot;off&quot;&gt;route add default gateway 192.168.90.1 iptables -A PREROUTING -t nat -j REDIRECT -p tcp -s 192.168.1.0/24 -d 0/0 --dport 80 --to-ports 3128 iptables -A INPUT -p tcp -s 0.0.0.0/0 -d 192.168.90.2 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p tcp -s 192.168.90.2 --sport 3128 -d 0.0.0.0/0 -m state --state ESTABLISHED -j ACCEPT&lt;/textarea&gt;&lt;/div&gt;&lt;div class=&quot;crayon-main&quot;&gt;&lt;table class=&quot;crayon-table&quot;&gt;&lt;tbody&gt;&lt;tr class=&quot;crayon-row&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;hide&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot;&gt;&lt;div class=&quot;crayon-num&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;crayon-num&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;crayon-num crayon-striped-num&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;crayon-code&quot;&gt;&lt;div class=&quot;crayon-pre&quot;&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5024fffc33f2f-1&quot;&gt;&lt;span class=&quot;e&quot;&gt;route &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;add &lt;/span&gt;&lt;span class=&quot;st&quot;&gt;default&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;gateway&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.90.1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5024fffc33f2f-2&quot;&gt;&lt;span class=&quot;i&quot;&gt;iptables&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;PREROUTING&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;nat&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;REDIRECT&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;tcp&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.1.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;24&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;dport&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;3128&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5024fffc33f2f-3&quot;&gt;&lt;span class=&quot;i&quot;&gt;iptables&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;INPUT&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;tcp&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;0.0.0.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.90.2&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;state &lt;/span&gt;&lt;span class=&quot;r&quot;&gt;NEW&lt;/span&gt;&lt;span class=&quot;sy&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ESTABLISHED&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;e&quot;&gt;ACCEPT&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5024fffc33f2f-4&quot;&gt;&lt;span class=&quot;i&quot;&gt;iptables&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;OUTPUT&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;tcp&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;192.168.90.2&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;sport&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;3128&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;0.0.0.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cn&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;e&quot;&gt;state &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ESTABLISHED&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;h&quot;&gt; &lt;/span&gt;&lt;span class=&quot;i&quot;&gt;ACCEPT&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id=&quot;site5bottom&quot;&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;   var _gaq = _gaq || [];   _gaq.push([&#39;_setAccount&#39;, &#39;UA-33316259-1&#39;]);   _gaq.push([&#39;_trackPageview&#39;]);    (function() {     var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;     ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;     var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);   })();  &lt;/script&gt;&lt;script src=&quot;http://platform.twitter.com/widgets.js?ver=3.4.1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script src=&quot;http://apis.google.com/js/plusone.js?ver=3.4.1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script src=&quot;http://platform.linkedin.com/in.js?ver=3.4.1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/2496707473329478971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/document_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/2496707473329478971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/2496707473329478971'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/document_10.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8198251448508140110</id><published>2012-08-06T09:43:00.001-07:00</published><updated>2012-08-06T09:43:53.280-07:00</updated><title type='text'></title><content type='html'>How To Remove Ubuntu’s Password Keyring&lt;br /&gt;&lt;br /&gt;UPDATE:  This post is almost 2 years old now and the method described below is somewhat obsolete (but still works).  Borrowing from the comments posted below, do the following to remove the keyring in a more simple fashion:&lt;br /&gt;&lt;br /&gt;1) Go click Applications &gt; Accessories &gt; Passwords and Encryption keys&lt;br /&gt;2) The should be entries there listing an array of keyring password.&lt;br /&gt;3) Right click on them and select change password&lt;br /&gt;4) Enter the old password if you have one then leave the new password blank. (A warning message should appear)&lt;br /&gt;&lt;br /&gt;I’ve not done this personally (I haven’t had to) but if I’m guessing correctly, the “warning message” mentioned above in step 4 is likely the same warning message pictured below, asking if you are sure you want to use “Unsafe Storage”.  You can read more about what this means below.&lt;br /&gt;&lt;br /&gt;—————-[Begin old post]—————-&lt;br /&gt;&lt;br /&gt;I would have made the title of this post “How to remove the Keyring password manager in Ubuntu Linux” but that’s kinda long…  Anyway, you might be wondering what the keyring password manager is.  It is a built in feature of Ubuntu (specifically, a package called “Seahorse“) that remembers passwords for things like FTP account logins, Evolution Email accounts, your wireless network authentication passwords, etc., and locks them all behind a kind of Master Password of sorts.  So for example, lets pretend that the password for your wireless network was 64 characters long and was just a bunch of random numbers and letters that you’d only be able to remember if you were some kind of freak savant mathematician.  The keyring password manager would remember this for you, but will only allow the system to access and use that long password after you grant it access to the keyring.&lt;br /&gt;&lt;br /&gt;As nice and handy as this might sound to security buffs, it’s struck me as a minor inconvenience.  For starts, if I were to configure Ubuntu to automatically login to my account after I turn the computer on, I would then also be asked to type in my keyring password so it would connect to my wireless network.  This becomes a bigger problem if, for instance, I were to connect to my computer remotely and had to reset it for some reason, like applying a recent kernel update.  The snag there would be that after restarting, my computer would boot up, but since I’m not physically sitting in front of it, it would sit there waiting for me to enter a keyring password before it would reconnect to my wireless network, and I’d have to go home or ask someone else to type in the password for me.&lt;br /&gt;&lt;br /&gt;So what I’ve always wanted to have happen is this:&lt;br /&gt;&lt;br /&gt;    I start or restart the computer by remote (such as through SSH or VNC).&lt;br /&gt;    After booting it automatically logs into my account and connects to my wireless network without asking for any passwords along the way so I can VNC right back into the system with no further trouble.&lt;br /&gt;&lt;br /&gt;I’ve finally learned how to do this, and it’s stupid easy to do.&lt;br /&gt;&lt;br /&gt;There is of course a few security drawbacks about doing this.  For starts, if any person were to gain physical access to my machine they’d be able to connect to my wireless network without needing to enter a password. Then again, if someone I don’t trust has somehow gained physical access to my machine I might as well go ahead and consider it to be compromised.&lt;br /&gt;&lt;br /&gt;Now, if the PC were in an office with a bunch of random co-workers always around, I’d be a lot more concerned.  If that were the case, I’d have that puppy locked down with a power on password, disable booting from the CD-ROM/Ethernet/USB in the BIOS, perhaps have a GRUB password and be working from an encrypted HD with the required /boot partition on a USB key, and of course auto-login would be disabled so I would be required to enter anywhere from 2 to 3 different passwords just to login to the system.  But this thing is in my house behind two large dogs and a dead-bolt locked door, functioning as a server that requires a password for me to access it by via SSH or VNC anyway.  So for this particular PC, I see little harm in opting out of using this security feature.&lt;br /&gt;&lt;br /&gt;So here’s how you get rid of the keyring manager.  Please note: This will erase saved passwords you have so be sure you know or remember them before you make your computer forget them!&lt;br /&gt;&lt;br /&gt;    Open up your Home Folder by clicking Places&gt;Home Folder&lt;br /&gt;    Press CTRL-H (or click View&gt;Show Hidden Files)&lt;br /&gt;    Find a folder called .gnome2 (it has a period at the beginning of the name) and open it by double clicking on it&lt;br /&gt;    Inside of the .gnome2 folder, there is another folder called keyrings.  Open it up.&lt;br /&gt;    Delete any files you find within the keyrings folder&lt;br /&gt;    Restart the computer&lt;br /&gt;&lt;br /&gt;After you restart and login (if you’re automatically logging in) you’ll probably be asked to enter your wireless networks WPA/WEP encryption key (because we made it forget).  After you type that password in, the keyring manager will appear to let you know that it would like to handle the storage of that password and lock it away with a new keyring.  The box looks like this:&lt;br /&gt;&lt;br /&gt;Instead of typing in a new password, leave both boxes completely empty and click Create.&lt;br /&gt;&lt;br /&gt;You’ll then be asked if you know what the hell you’re doing:&lt;br /&gt;&lt;br /&gt;Go ahead and click Use Unsafe Storage.&lt;br /&gt;&lt;br /&gt;WARNING: Doing this creates a new file in your ~/.gnome2/keyrings/ folder called default.keyring and it will now house passwords IN CLEAR TEXT and not in an encrypted form.  So it is imperative that you are certain no untrustworthy persons can access your user account (either physically or by remote) or they will be able to easily open and read this file and obtain many passwords (for things such as FTP accounts, SSH, e-mail accounts, etc).  Proceed with caution.&lt;br /&gt;&lt;br /&gt;From here on all keyring-stored passwords you enter will not safeguarded behind a master password or encryption.  Whether or not you want to do this is entirely up to you.  I personally have had enough of the keyring manager and consider it kind of annoying.  But as I said before, you may have certain environmental factors that make having a master password over the rest of your passwords a good idea.  Keep in mind that the keyring password manager has absolutely nothing to do with your administrative/root privilages password that has to be entered any time you want to apply updates, or add/remove software.  You will still have to type your account password in for these actions, and that is something I am quite comfortable with. I’m just happy I don’t have to have to ask my girlfriend to type in a keyring password every time I want to restart the computer while I’m away from home.</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8198251448508140110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/how-to-remove-ubuntus-password-keyring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8198251448508140110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8198251448508140110'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/how-to-remove-ubuntus-password-keyring.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8894434758000997758</id><published>2012-08-04T00:55:00.001-07:00</published><updated>2012-08-04T00:55:01.240-07:00</updated><title type='text'></title><content type='html'>&lt;h1 class=&quot;content-title&quot;&gt;Installing &amp;amp; Configuring VSftpd&lt;/h1&gt;Installing &amp;amp; Configuring VSftpd&lt;br /&gt;  &lt;h2 class=&quot;contentheading&quot;&gt;Applicable to Centos Versions:&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Centos 5.x&lt;/li&gt;&lt;li&gt;Centos 6.x&lt;/li&gt;&lt;/ul&gt;&lt;h2 class=&quot;heading&quot;&gt;Requirements&lt;/h2&gt;&lt;div&gt;  Explanation of requirements. &lt;ol start=&quot;1&quot;&gt;&lt;li&gt;Root access to your server&lt;/li&gt;&lt;li&gt;Server running Centos 5.x or 6.x&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;h2 class=&quot;Heading&quot;&gt;Doing the Work&lt;/h2&gt;Basic description of what will be done and what is expected.&lt;br /&gt; &lt;div class=&quot;contentheading&quot;&gt;&lt;ol start=&quot;1&quot;&gt;&lt;li&gt;Install VSftpd and add a user:&lt;/li&gt;&lt;pre class=&quot;TerminalCommand&quot;&gt;&lt;strong&gt;yum install vsftpd&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;useradd ftpuser&lt;br /&gt;passwd ftpuser&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;li&gt;Configure VSftpd:&lt;/li&gt;&lt;pre class=&quot;TerminalCommand&quot;&gt;&lt;strong&gt;vi /etc/vsftpd/vsftpd.conf&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Change these options to your liking, when finished making any changes here, restart the vsftpd service so they take effect.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Example config file /etc/vsftpd/vsftpd.conf&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# The default compiled in settings are fairly paranoid. This sample file&lt;br /&gt;&lt;br /&gt;# loosens things up a bit, to make the ftp daemon more usable.&lt;br /&gt;&lt;br /&gt;# Please see vsftpd.conf.5 for all compiled in defaults.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# READ THIS: This example file is NOT an exhaustive list of vsftpd options.&lt;br /&gt;&lt;br /&gt;# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd&#39;s&lt;br /&gt;&lt;br /&gt;# capabilities.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Allow anonymous FTP? (Beware - allowed by default if you comment this out).&lt;br /&gt;&lt;br /&gt;anonymous_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Uncomment this to allow local users to log in.&lt;br /&gt;&lt;br /&gt;local_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Uncomment this to enable any form of FTP write command.&lt;br /&gt;&lt;br /&gt;write_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Default umask for local users is 077. You may wish to change this to 022,&lt;br /&gt;&lt;br /&gt;# if your users expect that (022 is used by most other ftpd&#39;s)&lt;br /&gt;&lt;br /&gt;local_umask=022&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Uncomment this to allow the anonymous FTP user to upload files. This only&lt;br /&gt;&lt;br /&gt;# has an effect if the above global write enable is activated. Also, you will&lt;br /&gt;&lt;br /&gt;# obviously need to create a directory writable by the FTP user.&lt;br /&gt;&lt;br /&gt;#anon_upload_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Uncomment this if you want the anonymous FTP user to be able to create&lt;br /&gt;&lt;br /&gt;# new directories.&lt;br /&gt;&lt;br /&gt;#anon_mkdir_write_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Activate directory messages - messages given to remote users when they&lt;br /&gt;&lt;br /&gt;# go into a certain directory.&lt;br /&gt;&lt;br /&gt;dirmessage_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# The target log file can be vsftpd_log_file or xferlog_file.&lt;br /&gt;&lt;br /&gt;# This depends on setting xferlog_std_format parameter&lt;br /&gt;&lt;br /&gt;xferlog_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Make sure PORT transfer connections originate from port 20 (ftp-data).&lt;br /&gt;&lt;br /&gt;connect_from_port_20=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# If you want, you can arrange for uploaded anonymous files to be owned by&lt;br /&gt;&lt;br /&gt;# a different user. Note! Using &quot;root&quot; for uploaded files is not&lt;br /&gt;&lt;br /&gt;# recommended!&lt;br /&gt;#chown_uploads=YES&lt;br /&gt;&lt;br /&gt;#chown_username=whoever&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# The name of log file when xferlog_enable=YES and xferlog_std_format=YES&lt;br /&gt;&lt;br /&gt;# WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log&lt;br /&gt;&lt;br /&gt;#xferlog_file=/var/log/xferlog&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Switches between logging into vsftpd_log_file and xferlog_file files.&lt;br /&gt;&lt;br /&gt;# NO writes to vsftpd_log_file, YES to xferlog_file&lt;br /&gt;&lt;br /&gt;xferlog_std_format=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# You may change the default value for timing out an idle session.&lt;br /&gt;&lt;br /&gt;#idle_session_timeout=600&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# You may change the default value for timing out a data connection.&lt;br /&gt;&lt;br /&gt;#data_connection_timeout=120&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# It is recommended that you define on your system a unique user which the&lt;br /&gt;&lt;br /&gt;# ftp server can use as a totally isolated and unprivileged user.&lt;br /&gt;&lt;br /&gt;#nopriv_user=ftpsecure&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Enable this and the server will recognise asynchronous ABOR requests. Not&lt;br /&gt;&lt;br /&gt;# recommended for security (the code is non-trivial). Not enabling it,&lt;br /&gt;&lt;br /&gt;# however, may confuse older FTP clients.&lt;br /&gt;&lt;br /&gt;#async_abor_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# By default the server will pretend to allow ASCII mode but in fact ignore&lt;br /&gt;&lt;br /&gt;# the request. Turn on the below options to have the server actually do ASCII&lt;br /&gt;&lt;br /&gt;# mangling on files when in ASCII mode.&lt;br /&gt;&lt;br /&gt;# Beware that on some FTP servers, ASCII support allows a denial of service&lt;br /&gt;&lt;br /&gt;# attack (DoS) via the command &quot;SIZE /big/file&quot; in ASCII mode. vsftpd&lt;br /&gt;&lt;br /&gt;# predicted this attack and has always been safe, reporting the size of the&lt;br /&gt;&lt;br /&gt;# raw file.&lt;br /&gt;&lt;br /&gt;# ASCII mangling is a horrible feature of the protocol.&lt;br /&gt;&lt;br /&gt;#ascii_upload_enable=YES&lt;br /&gt;&lt;br /&gt;#ascii_download_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# You may fully customise the login banner string:&lt;br /&gt;&lt;br /&gt;#ftpd_banner=Welcome to blah FTP service.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# You may specify a file of disallowed anonymous e-mail addresses. Apparently&lt;br /&gt;&lt;br /&gt;# useful for combatting certain DoS attacks.&lt;br /&gt;&lt;br /&gt;#deny_email_enable=YES&lt;br /&gt;&lt;br /&gt;# (default follows)&lt;br /&gt;&lt;br /&gt;#banned_email_file=/etc/vsftpd/banned_emails&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# You may specify an explicit list of local users to chroot() to their home&lt;br /&gt;&lt;br /&gt;# directory. If chroot_local_user is YES, then this list becomes a list of&lt;br /&gt;&lt;br /&gt;# users to NOT chroot().&lt;br /&gt;#chroot_list_enable=YES&lt;br /&gt;&lt;br /&gt;# (default follows)&lt;br /&gt;#chroot_list_file=/etc/vsftpd/chroot_list&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# You may activate the &quot;-R&quot; option to the builtin ls. This is disabled by&lt;br /&gt;&lt;br /&gt;# default to avoid remote users being able to cause excessive I/O on large&lt;br /&gt;&lt;br /&gt;# sites. However, some broken FTP clients such as &quot;ncftp&quot; and &quot;mirror&quot; assume&lt;br /&gt;&lt;br /&gt;# the presence of the &quot;-R&quot; option, so there is a strong case for enabling it.&lt;br /&gt;&lt;br /&gt;#ls_recurse_enable=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# When &quot;listen&quot; directive is enabled, vsftpd runs in standalone mode and&lt;br /&gt;&lt;br /&gt;# listens on IPv4 sockets. This directive cannot be used in conjunction&lt;br /&gt;&lt;br /&gt;# with the listen_ipv6 directive.&lt;br /&gt;&lt;br /&gt;listen=YES&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6&lt;br /&gt;&lt;br /&gt;# sockets, you must run two copies of vsftpd whith two configuration files.&lt;br /&gt;&lt;br /&gt;# Make sure, that one of the listen options is commented !!&lt;br /&gt;&lt;br /&gt;#listen_ipv6=YES&lt;br /&gt;pam_service_name=vsftpd&lt;br /&gt;userlist_enable=YES&lt;br /&gt;tcp_wrappers=YES&lt;/pre&gt;&lt;li&gt;Add the bolded lines below as shown and restart iptables:&lt;/li&gt;&lt;pre class=&quot;TerminalCommand&quot;&gt;&lt;strong&gt;service iptables stop&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;(&lt;em&gt;assumes your ftp server has an IP of: 192.168.0.1. If not, change this IP.&lt;/em&gt;)&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d 192.168.0.1 --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A OUTPUT -p tcp -s 192.168.0.1 --sport 21 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d 192.168.0.1 --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A OUTPUT -p tcp -s 192.168.0.1 --sport 1024:65535 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A OUTPUT -p tcp -s 192.168.0.1 --sport 20 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d 192.168.0.1 --dport 20 -m state --state ESTABLISHED -j ACCEPT&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;vi /etc/sysconfig/iptables-config&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# Load additional iptables modules (nat helpers)&lt;br /&gt;#   Default: -none-&lt;br /&gt;# Space separated list of nat helpers (e.g. &#39;ip_nat_ftp ip_nat_irc&#39;), which&lt;br /&gt;# are loaded after the firewall rules are applied. Options for the helpers are&lt;br /&gt;# stored in /etc/modprobe.conf.&lt;br /&gt;IPTABLES_MODULES=&quot;ip_conntrack_netbios_ns&quot;&lt;br /&gt;&lt;strong&gt;IPTABLES_MODULES=&quot;ip_conntrack_ftp&quot;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;service iptables start&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;li&gt;Set VSftpd to start on boot and start it right now:&lt;/li&gt;&lt;pre class=&quot;TerminalCommand&quot;&gt;&lt;strong&gt;chkconfig --level 23 vsftpd on &amp;amp;&amp;amp; service vsftpd start&lt;/strong&gt;&lt;/pre&gt;&lt;/ol&gt;&lt;/div&gt;&lt;h3 class=&quot;contentheading&quot;&gt;Troubleshooting / How To Test&lt;/h3&gt;&lt;div&gt;    Explanation troubleshooting basics and expectations. &lt;ol start=&quot;1&quot;&gt;&lt;li&gt;Make sure VSftpd is set to start at boot time and is running:&lt;/li&gt;&lt;pre class=&quot;TerminalCommand&quot;&gt;&lt;strong&gt;chkconfig --list | grep vsftpd; service vsftpd status&lt;/strong&gt;&lt;/pre&gt;&lt;li&gt;Check the firewall to make sure the required data and command ports are open and the correct modules are loading:&lt;/li&gt;&lt;pre class=&quot;TerminalCommand&quot;&gt;&lt;strong&gt;service iptables status; grep ip_conntrack_ftp &lt;/strong&gt;&lt;strong&gt;/etc/sysconfig/iptables-config&lt;/strong&gt;&lt;/pre&gt;&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8894434758000997758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/installing-configuring-vsftpd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8894434758000997758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8894434758000997758'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/installing-configuring-vsftpd.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-6718924264787514749</id><published>2012-08-01T02:46:00.002-07:00</published><updated>2012-08-01T02:46:25.604-07:00</updated><title type='text'></title><content type='html'>&lt;h1&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Native VLAN Mismatches&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Error#1&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;Lets assume that one  of the workstations on the network (PC 5) cannot connect to the  internal web server WEB/TFTP, lets use the figure below as an example of  a switched network, the first place you start will be at the Switch 2  to check if VLANs are properly configured. Looking at the diagram,  switch port fa0/3 on Switch 2 is configured as a trunk  port.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;nbsp;Native VLAN Mismatch&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;372&quot; src=&quot;http://www.orbit-computer-solutions.com/images/native.jpg&quot; title=&quot;&quot; width=&quot;570&quot; /&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;When you connect to switch S2, if  there is an error&amp;nbsp;on the switch port, it will appear on your console  window, in this case there is and it looks like this:&lt;/span&gt;&lt;br /&gt; &lt;blockquote dir=&quot;ltr&quot;&gt;&lt;blockquote dir=&quot;ltr&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;&lt;span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;S2#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;&lt;span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;#CDP-4-NATIVE VLAN_MISMATCH: Native VLAN mismatch discovered on&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;&lt;span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;FastEthernet0/3&amp;nbsp; (100), with S1&amp;nbsp; FastEthernet0/3&amp;nbsp; (99).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;Using the &lt;strong&gt;show interfaces fa0/3 switchport&lt;/strong&gt; command will display connectivity detail on the port.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;e.g &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;blockquote dir=&quot;ltr&quot; style=&quot;background-color: #efef10;&quot;&gt;&lt;blockquote dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;&lt;strong&gt;S2&lt;/strong&gt;# show interfaces fa0/3 switchport&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Name: &amp;nbsp;fa0/3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Switchport: &amp;nbsp;Enabled&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Administrative Mode: &amp;nbsp;trunk&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Operational Mode: &amp;nbsp;trunk&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Administrative Trunking Encapsulation: &amp;nbsp;dot1q&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Operational Trunking Encapsulation: &amp;nbsp;dot1q&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Nagotiation of Trunking: &amp;nbsp;On&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Access Mode VLAN: &amp;nbsp;1 (default)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;&lt;span&gt;Trunking Native Mode VLAN: 100 (Inactive)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;…&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: larger;&quot;&gt;Trunking VLANs Enabled: &amp;nbsp;10, &amp;nbsp;99&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;Looking at the above detail, you will notice that the native VLAN has been set to VLAN 100 and it is inactive.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&amp;nbsp;As you look further down the output, you see that the allowed VLANs are 10 and 99. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;To sum it up, this is a case of a mismatched native VLAN&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;ins style=&quot;border: none; display: inline-table; height: 200px; margin: 0; padding: 0; position: relative; visibility: visible; width: 200px;&quot;&gt;&lt;ins id=&quot;aswift_1_anchor&quot; style=&quot;border: none; display: block; height: 200px; margin: 0; padding: 0; position: relative; visibility: visible; width: 200px;&quot;&gt;&lt;/ins&gt;&lt;/ins&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The solution: &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;You need to reconfigure the native VLAN on the Fast Ethernet F0/3 trunk port to be VLAN 99. &amp;nbsp;e.g&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;blockquote dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;S2#&lt;strong&gt;config t&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;S2#&lt;strong&gt;interface fa0/3&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;S2#&lt;strong&gt;switchport trunk native vlan 99&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New; font-size: larger;&quot;&gt;S2#&lt;strong&gt;end&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;After you have done that, use the&lt;strong&gt; show interfaces fa0/3 switchport&lt;/strong&gt; confirm you configuration. &lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: larger;&quot;&gt;And use the &lt;strong&gt;Ping &lt;/strong&gt;to confirm connectivity with the server.&amp;nbsp; e.g.&lt;/span&gt;&lt;br /&gt; &lt;div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;blockquote dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;strong&gt;PC5&lt;/strong&gt;&amp;gt; &lt;span style=&quot;font-family: Courier New;&quot;&gt;ping 192.168.10.30&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;Pinging 192.168.10.30 with 32 bytes of data:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;Reply from 192.168.10.30: bytes-32 times-147ms TT-128&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;Reply from 192.168.10.30: bytes-32 times-147ms TT-128&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;Reply from 192.168.10.30: bytes-32 times-147ms TT-128&lt;/span&gt;&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;blockquote dir=&quot;ltr&quot;&gt;&lt;div&gt;&amp;nbsp;&lt;span style=&quot;font-size: larger;&quot;&gt;The screen output for the computer  PC5 shows that connectivity has been restored to the WEB/TFTP server  found at IP address 192.168.10.30.&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/6718924264787514749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/native-vlan-mismatches-error1-lets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6718924264787514749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6718924264787514749'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/08/native-vlan-mismatches-error1-lets.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-7306103566389519805</id><published>2012-07-26T05:47:00.002-07:00</published><updated>2012-07-26T05:47:16.490-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;u&gt;&lt;b&gt;&amp;nbsp;Daloradius server config&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;#yum -y update &lt;br /&gt;#reboot &lt;br /&gt;#yum -y install wget vim ntp man &lt;br /&gt;#ntpdate pool.ntp.org &lt;br /&gt;#yum -y install httpd mysql mysql-devel mysql-server php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc \ &lt;br /&gt;#yum -y install freeradius freeradius-mysql freeradius-utils &lt;br /&gt;&lt;br /&gt;#setenforce 0 &lt;br /&gt;chkconfig httpd on &lt;br /&gt;chkconfig mysqld on &lt;br /&gt;/etc/init.d/httpd start &lt;br /&gt;/etc/init.d/mysqld start &lt;br /&gt;#mysql_secure_installation&amp;nbsp; mysqlpwd &lt;br /&gt;#####Disallow root login remotely? [Y/n]n#####press &#39;n&#39; &lt;br /&gt;# iptables -F &lt;br /&gt;# vi /var/www/html/test.php &lt;br /&gt;&amp;lt;?php &lt;br /&gt;phpinfo(); &lt;br /&gt;?&amp;gt; &lt;br /&gt;&lt;br /&gt;PHPmyadmin &lt;br /&gt;cd /var/www/html/ &lt;br /&gt;wget your-phpMyadmin.tar.gz &lt;br /&gt;tar -zxvf your-phpMyadmin.tar.gz &lt;br /&gt;mv your-phpMyadmin phpmyadmin &lt;br /&gt;cd phpmyadmin &lt;br /&gt;cp config.sample.inc.php config.inc.php &lt;br /&gt;vi config.inc.php &lt;br /&gt;$cfg[&#39;Servers&#39;][$i][&#39;auth_type&#39;] = ¡®http¡®; &lt;br /&gt;#/etc/init.d/httpd restart &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#vi /etc/raddb/users &lt;br /&gt;testuser Cleartext-Password := &quot;testpassword&quot; &lt;br /&gt;&lt;br /&gt;#radiusd -X &lt;br /&gt;#radtest testuser testpassword localhost 1812 testing123 &lt;br /&gt;&lt;br /&gt;####FR with MySQL &lt;br /&gt;cp /etc/raddb/clients.conf /etc/raddb/clients.conf.bak &lt;br /&gt;grep -v \# /etc/raddb/clients.conf.bak &amp;gt; /etc/raddb/clients.conf &lt;br /&gt;vi /etc/raddb/clients.conf &lt;br /&gt;&amp;nbsp;client 192.168.1.0/24 { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; secret&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = radiussecret &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = testfreeradius &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;vim /etc/raddb/users &lt;br /&gt;#testuser Cleartext-Password := &quot;testpassword&quot; &lt;br /&gt;####commment out this line &lt;br /&gt;&lt;br /&gt;cp /etc/raddb/sql/mysql/admin.sql /etc/raddb/sql/mysql/admin.sql.bak &lt;br /&gt;grep -v \# /etc/raddb/sql/mysql/admin.sql.bak &amp;gt; /etc/raddb/sql/mysql/admin.sql &lt;br /&gt;vim /etc/raddb/sql/mysql/admin.sql &lt;br /&gt;CREATE USER &#39;radius&#39;@&#39;localhost&#39;; &lt;br /&gt;SET PASSWORD FOR &#39;radius&#39;@&#39;localhost&#39; = PASSWORD(&#39;radpass&#39;); &lt;br /&gt;GRANT SELECT ON radius.* TO &#39;radius&#39;@&#39;localhost&#39;; &lt;br /&gt;GRANT ALL on radius.radacct TO &#39;radius&#39;@&#39;localhost&#39;; &lt;br /&gt;GRANT ALL on radius.radpostauth TO &#39;radius&#39;@&#39;localhost&#39;; &lt;br /&gt;&lt;br /&gt;vim /etc/raddb/sql.conf &lt;br /&gt;change the password &#39;radpass&#39; to &#39;radpass&#39; &lt;br /&gt;&lt;br /&gt;mysql -u root -p &lt;br /&gt;mysql&amp;gt;create database radius; &lt;br /&gt;mysql&amp;gt;exit &lt;br /&gt;mysql -u root -p radius &amp;lt; /etc/raddb/sql/mysql/admin.sql &lt;br /&gt;mysql -u root -p radius &amp;lt; /etc/raddb/sql/mysql/schema.sql &lt;br /&gt;mysql -u root -p radius &amp;lt; /etc/raddb/sql/mysql/nas.sql &lt;br /&gt;mysql -u root -p radius &amp;lt; /etc/raddb/sql/mysql/ippool.sql &lt;br /&gt;&lt;br /&gt;vi /etc/raddb/radiusd.conf &lt;br /&gt;$INCLUDE sql.conf&amp;nbsp; &lt;br /&gt;&lt;br /&gt;vi /etc/raddb/sql.conf &lt;br /&gt;&amp;nbsp; server = &quot;localhost&quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port = 3306 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; login = &quot;radius&quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password = &quot;radpass&quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; radius_db = &quot;radius&quot; &lt;br /&gt;readclients = yes &lt;br /&gt;&lt;br /&gt;vi /etc/raddb/sites-enabled/default &lt;br /&gt;authorize { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preprocess &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chap &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mschap &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suffix &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eap &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pap &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;accounting { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; detail &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;session { &lt;br /&gt;radutmp &lt;br /&gt;sql &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;mysql -u root -p &lt;br /&gt;&lt;br /&gt;mysql&amp;gt; use radius; &lt;br /&gt;&lt;br /&gt;INSERT INTO radcheck (UserName, Attribute, Value) VALUES (&#39;user1&#39;, &#39;Password&#39;,&#39;password1&#39;); &lt;br /&gt;&lt;br /&gt;mysql&amp;gt; exit &lt;br /&gt;&lt;br /&gt;radiusd -X &lt;br /&gt;radtest user1 password1 localhost 1812 testing123 &lt;br /&gt;&lt;br /&gt;wget http://download.pear.php.net/package/DB-1.7.14RC2.tgz &lt;br /&gt;pear install DB-1.7.14RC2.tgz &lt;br /&gt;&lt;br /&gt;###Notes daloradius 0.9-9 also works &lt;br /&gt;wget http://nchc.dl.sourceforge.net/project/daloradius/daloradius/daloradius-0.9-8/daloradius-0.9-8.tar.gz &lt;br /&gt;tar -zxvf daloradius-0.9-8.tar.gz &lt;br /&gt;mv daloradius-0.9-8 daloradius &lt;br /&gt;cp -rf daloradius /var/www/html/ &lt;br /&gt;chown apache:apache /var/www/html/daloradius/ -R &lt;br /&gt;chmod 644 /var/www/html/daloradius/library/daloradius.conf.php &lt;br /&gt;cd /var/www/html/daloradius/contrib/db/ &lt;br /&gt;&amp;nbsp; mysql -u root -p radius &amp;lt; mysql-daloradius.sql &lt;br /&gt;&amp;nbsp;vi /var/www/html/daloradius/library/daloradius.conf.php &lt;br /&gt;&lt;br /&gt;########### &lt;br /&gt;&lt;br /&gt;$configValues[&#39;DALORADIUS_VERSION&#39;] = &#39;0.9-8&#39;; &lt;br /&gt;$configValues[&#39;FREERADIUS_VERSION&#39;] = &#39;2&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_ENGINE&#39;] = &#39;mysql&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_HOST&#39;] = &#39;localhost&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_USER&#39;] = &#39;radius&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_PASS&#39;] = &#39;radpass&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_NAME&#39;] = &#39;radius&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADCHECK&#39;] = &#39;radcheck&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADREPLY&#39;] = &#39;radreply&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADGROUPREPLY&#39;] = &#39;radgroupreply&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADGROUPCHECK&#39;] = &#39;radgroupcheck&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADUSERGROUP&#39;] = &#39;radusergroup&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADNAS&#39;] = &#39;nas&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADPOSTAUTH&#39;] = &#39;radpostauth&#39;; &lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADACCT&#39;] = &#39;radacct&#39;; &lt;br /&gt;........... &lt;br /&gt;############# &lt;br /&gt;&lt;br /&gt;Optionals: &lt;br /&gt;touch /tmp/daloradius.log &lt;br /&gt;chown apache.apache /tmp/daloradius.log &lt;br /&gt;http://ip/daloradius &lt;br /&gt;username: administrator &lt;br /&gt;password: radius &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO &#39;radius&#39;@&#39;192.168.1.115&#39; IDENTIFIED BY &#39;radpass&#39; WITH GRANT OPTION;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;****************************************************************************##############&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;############################################################################&lt;br /&gt;Hi&lt;br /&gt;Thanks for last advices with freeradius installations + peap on debian lenny&lt;br /&gt;Now i have no problem with enabling peap :)&lt;br /&gt;&lt;br /&gt;this time I&#39;m asking for help with some other problem:&lt;br /&gt;I&#39;m trying to enable WPA2 enterprice authentication on my accesspoints.&lt;br /&gt;When trying to auth my wireless client I&#39;m getting sth like this in log :&lt;br /&gt;&lt;br /&gt;Wed May&amp;nbsp; 5 15:09:25 2010 : Auth: Login incorrect: [karol/&amp;lt;no User-Password attribute&amp;gt;] (from client AP1 port 0 cli 0022431380c4)&lt;br /&gt;where :&lt;br /&gt;0022431380c4 is my wireless mac adress (laptop)&lt;br /&gt;client AP1 is my Access Point client from clients.conf&lt;br /&gt;karol - is my user from users.conf&lt;br /&gt;&lt;br /&gt;it looks like freeradius don&#39;t want to look inside the password field and can&#39;t recognize a laptop ip (getting mac)&lt;br /&gt;&lt;br /&gt;Please give me some advices - what&#39;s next ?&lt;br /&gt;&lt;br /&gt;Here is my debug.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kill-9:/home/kornel# freeradius -X&lt;br /&gt;FreeRADIUS Version 2.1.8, for host i486-pc-linux-gnu, built on Jan&amp;nbsp; 3 2010 at 15:51:52&lt;br /&gt;Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.&lt;br /&gt;There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A&lt;br /&gt;PARTICULAR PURPOSE.&lt;br /&gt;You may redistribute copies of FreeRADIUS under the terms of the&lt;br /&gt;GNU General Public License v2.&lt;br /&gt;Starting - reading configuration files ...&lt;br /&gt;including configuration file /etc/freeradius/radiusd.conf&lt;br /&gt;including configuration file /etc/freeradius/proxy.conf&lt;br /&gt;including configuration file /etc/freeradius/clients.conf&lt;br /&gt;including configuration file /etc/freeradius/snmp.conf&lt;br /&gt;including configuration file /etc/freeradius/eap.conf&lt;br /&gt;including configuration file /etc/freeradius/policy.conf&lt;br /&gt;including files in directory /etc/freeradius/sites-enabled/&lt;br /&gt;main {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user = &quot;freerad&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group = &quot;freerad&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow_core_dumps = no&lt;br /&gt;}&lt;br /&gt;including dictionary file /etc/freeradius/dictionary&lt;br /&gt;main {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefix = &quot;/usr&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; localstatedir = &quot;/var&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logdir = &quot;/var/log/freeradius&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; libdir = &quot;/usr/lib/freeradius&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; radacctdir = &quot;/var/log/freeradius/radacct&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hostname_lookups = no&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max_request_time = 30&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cleanup_delay = 5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max_requests = 1024&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pidfile = &quot;/var/run/freeradius/freeradius.pid&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; checkrad = &quot;/usr/sbin/checkrad&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; debug_level = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxy_requests = yes&lt;br /&gt;&amp;nbsp;log {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; stripped_names = yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; auth = yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; auth_badpass = yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; auth_goodpass = yes&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;security {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max_attributes = 200&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reject_delay = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status_server = yes&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;radiusd: #### Loading Realms and Home Servers ####&lt;br /&gt;&amp;nbsp;proxy server {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retry_delay = 5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retry_count = 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; default_fallback = yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dead_time = 120&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wake_all_if_all_dead = no&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;radiusd: #### Loading Clients ####&lt;br /&gt;&amp;nbsp;client localhost {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipaddr = 127.0.0.1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require_message_authenticator = no&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; secret = &quot;testing123&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nastype = &quot;other&quot;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;client 172.16.0.16 {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------Client ip adress&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require_message_authenticator = no&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; secret = &quot;tajne1234&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortname = &quot;eee&quot;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;client 192.168.10.50 {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------AP ip adress&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require_message_authenticator = no&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; secret = &quot;tajne1234&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortname = &quot;AP1&quot;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;radiusd: #### Instantiating modules ####&lt;br /&gt;&amp;nbsp;instantiate {&lt;br /&gt;&amp;nbsp;Module: Linked to module rlm_exec&lt;br /&gt;&amp;nbsp;Module: Instantiating exec&lt;br /&gt;&amp;nbsp; exec {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait = yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input_pairs = &quot;request&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shell_escape = yes&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;Module: Linked to module rlm_expr&lt;br /&gt;&amp;nbsp;Module: Instantiating expr&lt;br /&gt;&amp;nbsp;Module: Linked to module rlm_expiration&lt;br /&gt;&amp;nbsp;Module: Instantiating expiration&lt;br /&gt;&amp;nbsp; expiration {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reply-message = &quot;Password Has Expired&amp;nbsp; &quot;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;Module: Linked to module rlm_logintime&lt;br /&gt;&amp;nbsp;Module: Instantiating logintime&lt;br /&gt;&amp;nbsp; logintime {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reply-message = &quot;You are calling outside your allowed timespan&amp;nbsp; &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minimum-timeout = 60&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;radiusd: #### Loading Virtual Servers ####&lt;br /&gt;server {&lt;br /&gt;&amp;nbsp;modules {&lt;br /&gt;&amp;nbsp;} # modules&lt;br /&gt;} # server&lt;br /&gt;radiusd: #### Opening IP addresses and Ports ####&lt;br /&gt;listen {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type = &quot;auth&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipaddr = *&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; port = 1812&lt;br /&gt;}&lt;br /&gt;listen {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type = &quot;acct&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipaddr = *&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; port = 0&lt;br /&gt;}&lt;br /&gt;Listening on authentication address * port 1812&lt;br /&gt;Listening on accounting address * port 1813&lt;br /&gt;Listening on proxy address * port 1814&lt;br /&gt;Ready to process requests.&lt;br /&gt;&lt;br /&gt;AND here is an authenticate attempt debug&lt;br /&gt;&lt;br /&gt;rad_recv: Access-Request packet from host 192.168.10.50 port 2054, id=148, length=169&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User-Name = &quot;karol&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAS-IP-Address = 192.168.10.50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------AP ip adress&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAS-Port = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Called-Station-Id = &quot;00265abab28d&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------AP mac adress&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calling-Station-Id = &quot;0022431380c4&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------Client mac adress&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAS-Identifier = &quot;Realtek Access Point. 8186&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Framed-MTU = 1400&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAS-Port-Type = Wireless-802.11&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service-Type = Framed-User&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect-Info = &quot;CONNECT 11Mbps 802.11b&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EAP-Message = 0x0200000b016d617263696e&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message-Authenticator = 0x2ea50a302a451ed3b32b748a23fe00e3&lt;br /&gt;&amp;nbsp; WARNING: Empty section.&amp;nbsp; Using default return values.&lt;br /&gt;No authenticate method (Auth-Type) configuration found for the request: Rejecting the user&lt;br /&gt;Failed to authenticate the user.&lt;br /&gt;Login incorrect: [karol/&amp;lt;no User-Password attribute&amp;gt;] (from client AP1 port 0 cli 0022431380c4)&lt;br /&gt;Delaying reject of request 0 for 1 seconds&lt;br /&gt;Going to the next request&lt;br /&gt;Waking up in 0.9 seconds.&lt;br /&gt;Sending delayed reject for request 0&lt;br /&gt;Sending Access-Reject of id 148 to 192.168.10.50 port 2054&lt;br /&gt;Waking up in 4.9 seconds.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Client&#39;s system is eeebuntu and i&#39;m sure that&#39;s on client and on AP everything is ok because when i&#39;m connecting to another freeradius server - it&#39;s working fine (unfortunatelly i don&#39;t have an acces to those confs) in addition - temporarily I accepted all connections from those two ip&#39;s on my firewall to have 100% sure that&#39;s not a connection issue.&lt;br /&gt;&lt;br /&gt;Thank you for your time and knowledge share.&lt;br /&gt;&lt;br /&gt;-- &lt;br /&gt;LAN Administrator of DS14&lt;br /&gt;Kornel Kornatka&lt;br /&gt;room 529&lt;br /&gt;&lt;br /&gt;***************************************************************************&lt;br /&gt;&amp;lt;?php&lt;br /&gt;/*&lt;br /&gt;&amp;nbsp;*********************************************************************************************************&lt;br /&gt;&amp;nbsp;* daloRADIUS - RADIUS Web Platform&lt;br /&gt;&amp;nbsp;* Copyright (C) 2007 - Liran Tal &amp;lt;liran@enginx.com&amp;gt; All Rights Reserved.&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;* This program is free software; you can redistribute it and/or&lt;br /&gt;&amp;nbsp;* modify it under the terms of the GNU General Public License&lt;br /&gt;&amp;nbsp;* as published by the Free Software Foundation; either version 2&lt;br /&gt;&amp;nbsp;* of the License, or (at your option) any later version.&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;* You should have received a copy of the GNU General Public License&lt;br /&gt;&amp;nbsp;* along with this program; if not, write to the Free Software&lt;br /&gt;&amp;nbsp;* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA&amp;nbsp; 02111-1307, USA.&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;*********************************************************************************************************&lt;br /&gt;&amp;nbsp;* Description:&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; daloRADIUS Configuration File&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;* Modification Date:&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tue Sep 13 11:56:08 EAT 2011&lt;br /&gt;&amp;nbsp;*********************************************************************************************************&lt;br /&gt;&amp;nbsp;*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$configValues[&#39;DALORADIUS_VERSION&#39;] = &#39;0.9-9&#39;;&lt;br /&gt;$configValues[&#39;FREERADIUS_VERSION&#39;] = &#39;2&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_ENGINE&#39;] = &#39;mysql;&lt;br /&gt;$configValues[&#39;CONFIG_DB_HOST&#39;] = &#39;localhost&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_PORT&#39;] = &#39;3306&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_USER&#39;] = &#39;radius&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_PASS&#39;] = &#39;radpass&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_NAME&#39;] = &#39;radius&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADCHECK&#39;] = &#39;radcheck&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADREPLY&#39;] = &#39;radreply&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADGROUPREPLY&#39;] = &#39;radgroupreply&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADGROUPCHECK&#39;] = &#39;radgroupcheck&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADUSERGROUP&#39;] = &#39;radusergroup&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADNAS&#39;] = &#39;nas&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADHG&#39;] = &#39;radhuntgroup&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADPOSTAUTH&#39;] = &#39;radpostauth&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADACCT&#39;] = &#39;radacct&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_RADIPPOOL&#39;] = &#39;radippool&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOOPERATORS&#39;] = &#39;operators&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOOPERATORS_ACL&#39;] = &#39;operators_acl&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOOPERATORS_ACL_FILES&#39;] = &#39;operators_acl_files&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALORATES&#39;] = &#39;rates&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOHOTSPOTS&#39;] = &#39;hotspots&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOUSERINFO&#39;] = &#39;userinfo&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOUSERBILLINFO&#39;] = &#39;userbillinfo&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALODICTIONARY&#39;] = &#39;dictionary&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOREALMS&#39;] = &#39;realms&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOPROXYS&#39;] = &#39;proxys&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGPAYPAL&#39;] = &#39;billing_paypal&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGMERCHANT&#39;] = &#39;billing_merchant&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGPLANS&#39;] = &#39;billing_plans&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGRATES&#39;] = &#39;billing_rates&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGHISTORY&#39;] = &#39;billing_history&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBATCHHISTORY&#39;] = &#39;batch_history&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGPLANSPROFILES&#39;] = &#39;billing_plans_profiles&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGINVOICE&#39;] = &#39;invoice&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGINVOICEITEMS&#39;] = &#39;invoice_items&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGINVOICESTATUS&#39;] = &#39;invoice_status&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOBILLINGINVOICETYPE&#39;] = &#39;invoice_type&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOPAYMENTS&#39;] = &#39;payment&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALOPAYMENTTYPES&#39;] = &#39;payment_type&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_TBL_DALONODE&#39;] = &#39;node&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_FILE_RADIUS_PROXY&#39;] = &#39;/etc/freeradius/proxy.conf&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_PATH_RADIUS_DICT&#39;] = &#39;&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_PATH_DALO_VARIABLE_DATA&#39;] = &#39;/var/www/daloradius/var&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DB_PASSWORD_ENCRYPTION&#39;] = &#39;cleartext&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_LANG&#39;] = &#39;en&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_LOG_PAGES&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_LOG_ACTIONS&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_LOG_QUERIES&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DEBUG_SQL&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DEBUG_SQL_ONPAGE&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_LOG_FILE&#39;] = &#39;/tmp/daloradius.log&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_IFACE_PASSWORD_HIDDEN&#39;] = &#39;no&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_IFACE_TABLES_LISTING&#39;] = &#39;25&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_IFACE_TABLES_LISTING_NUM&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_IFACE_AUTO_COMPLETE&#39;] = &#39;yes&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAINT_TEST_USER_RADIUSSERVER&#39;] = &#39;127.0.0.1&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAINT_TEST_USER_RADIUSPORT&#39;] = &#39;1812&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAINT_TEST_USER_NASPORT&#39;] = &#39;0&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAINT_TEST_USER_RADIUSSECRET&#39;] = &#39;testing123&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_USER_ALLOWEDRANDOMCHARS&#39;] = &#39;abcdefghijkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAIL_SMTPADDR&#39;] = &#39;127.0.0.1&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAIL_SMTPPORT&#39;] = &#39;25&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAIL_SMTPAUTH&#39;] = &#39;&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_MAIL_SMTPFROM&#39;] = &#39;root@daloradius.xdsl.by&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DASHBOARD_DALO_SECRETKEY&#39;] = &#39;sillykey&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DASHBOARD_DALO_DEBUG&#39;] = &#39;1&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DASHBOARD_DALO_DELAYSOFT&#39;] = &#39;5&#39;;&lt;br /&gt;$configValues[&#39;CONFIG_DASHBOARD_DALO_DELAYHARD&#39;] = &#39;15&#39;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;*******************************************************************************&lt;br /&gt;CREATE USER &#39;radius&#39;@&#39;localhost&#39;;&lt;br /&gt;&lt;br /&gt;SET PASSWORD FOR &#39;radius&#39;@&#39;localhost&#39; = PASSWORD(&#39;radpass&#39;);&lt;br /&gt;&lt;br /&gt;GRANT SELECT ON radius.* TO &#39;radius&#39;@&#39;localhost&#39;;&lt;br /&gt;&lt;br /&gt;GRANT ALL on radius.radacct TO &#39;radius&#39;@&#39;localhost&#39;;&lt;br /&gt;&lt;br /&gt;GRANT ALL on radius.radpostauth TO &#39;radius&#39;@&#39;localhost&#39;;&lt;br /&gt;*****************************************************************************&lt;br /&gt;# -*- text -*-&lt;br /&gt;##&lt;br /&gt;## radiusd.conf&amp;nbsp;&amp;nbsp;&amp;nbsp; -- FreeRADIUS server configuration file.&lt;br /&gt;##&lt;br /&gt;##&amp;nbsp;&amp;nbsp;&amp;nbsp; http://www.freeradius.org/&lt;br /&gt;##&amp;nbsp;&amp;nbsp;&amp;nbsp; $Id$&lt;br /&gt;##&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; Read &quot;man radiusd&quot; before editing this file.&amp;nbsp; See the section&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; titled DEBUGGING.&amp;nbsp; It outlines a method where you can quickly&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; obtain the configuration you want, without running into&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; trouble.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; Run the server in debugging mode, and READ the output.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ radiusd -X&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; We cannot emphasize this point strongly enough.&amp;nbsp; The vast&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; majority of problems can be solved by carefully reading the&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; debugging output, which includes warnings about common issues,&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; and suggestions for how they may be fixed.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; There may be a lot of output, but look carefully for words like:&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;warning&quot;, &quot;error&quot;, &quot;reject&quot;, or &quot;failure&quot;.&amp;nbsp; The messages there&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; will usually be enough to guide you to a solution.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are going to ask a question on the mailing list, then&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; explain what you are trying to do, and include the output from&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; debugging mode (radiusd -X).&amp;nbsp; Failure to do so means that all&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; of the responses to your question will be people telling you&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; to &quot;post the output of radiusd -X&quot;.&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; The location of other config files and logfiles are declared&lt;br /&gt;#&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; in this file.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Also general configuration for modules can be done in this&lt;br /&gt;#&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; file, it is exported through the API to modules that ask for&lt;br /&gt;#&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; it.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; See &quot;man radiusd.conf&quot; for documentation on the format of this&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; file.&amp;nbsp; Note that the individual configuration items are NOT&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; documented in that &quot;man&quot; page.&amp;nbsp; They are only documented here,&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; in the comments.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; As of 2.0.0, FreeRADIUS supports a simple processing language&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; in the &quot;authorize&quot;, &quot;authenticate&quot;, &quot;accounting&quot;, etc. sections.&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; See &quot;man unlang&quot; for details.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;prefix = /usr&lt;br /&gt;exec_prefix = /usr&lt;br /&gt;sysconfdir = /etc&lt;br /&gt;localstatedir = /var&lt;br /&gt;sbindir = /usr/sbin&lt;br /&gt;logdir = ${localstatedir}/log/radius&lt;br /&gt;raddbdir = ${sysconfdir}/raddb&lt;br /&gt;radacctdir = ${logdir}/radacct&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; name of the running server.&amp;nbsp; See also the &quot;-n&quot; command-line option.&lt;br /&gt;name = radiusd&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; Location of config and logfiles.&lt;br /&gt;confdir = ${raddbdir}&lt;br /&gt;run_dir = ${localstatedir}/run/${name}&lt;br /&gt;&lt;br /&gt;# Should likely be ${localstatedir}/lib/radiusd&lt;br /&gt;db_dir = ${raddbdir}&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# libdir: Where to find the rlm_* modules.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; This should be automatically set at configuration time.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; If the server builds and installs, but fails at execution time&lt;br /&gt;#&amp;nbsp;&amp;nbsp; with an &#39;undefined symbol&#39; error, then you can use the libdir&lt;br /&gt;#&amp;nbsp;&amp;nbsp; directive to work around the problem.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; The cause is usually that a library has been installed on your&lt;br /&gt;#&amp;nbsp;&amp;nbsp; system in a place where the dynamic linker CANNOT find it.&amp;nbsp; When&lt;br /&gt;#&amp;nbsp;&amp;nbsp; executing as root (or another user), your personal environment MAY&lt;br /&gt;#&amp;nbsp;&amp;nbsp; be set up to allow the dynamic linker to find the library.&amp;nbsp; When&lt;br /&gt;#&amp;nbsp;&amp;nbsp; executing as a daemon, FreeRADIUS MAY NOT have the same&lt;br /&gt;#&amp;nbsp;&amp;nbsp; personalized configuration.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; To work around the problem, find out which library contains that symbol,&lt;br /&gt;#&amp;nbsp;&amp;nbsp; and add the directory containing that library to the end of &#39;libdir&#39;,&lt;br /&gt;#&amp;nbsp;&amp;nbsp; with a colon separating the directory names.&amp;nbsp; NO spaces are allowed.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; e.g. libdir = /usr/local/lib:/opt/package/lib&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; You can also try setting the LD_LIBRARY_PATH environment variable&lt;br /&gt;#&amp;nbsp;&amp;nbsp; in a script which starts the server.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; If that does not work, then you can re-configure and re-build the&lt;br /&gt;#&amp;nbsp;&amp;nbsp; server to NOT use shared libraries, via:&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; ./configure --disable-shared&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; make&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; make install&lt;br /&gt;#&lt;br /&gt;libdir = /usr/lib/freeradius&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; pidfile: Where to place the PID of the RADIUS server.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The server may be signalled while it&#39;s running by using this&lt;br /&gt;#&amp;nbsp; file.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; This file is written when ONLY running in daemon mode.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; e.g.:&amp;nbsp; kill -HUP `cat /var/run/radiusd/radiusd.pid`&lt;br /&gt;#&lt;br /&gt;pidfile = ${run_dir}/${name}.pid&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; chroot: directory where the server does &quot;chroot&quot;.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The chroot is done very early in the process of starting the server.&lt;br /&gt;#&amp;nbsp; After the chroot has been performed it switches to the &quot;user&quot; listed&lt;br /&gt;#&amp;nbsp; below (which MUST be specified).&amp;nbsp; If &quot;group&quot; is specified, it switchs&lt;br /&gt;#&amp;nbsp; to that group, too.&amp;nbsp; Any other groups listed for the specified &quot;user&quot;&lt;br /&gt;#&amp;nbsp; in &quot;/etc/group&quot; are also added as part of this process.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The current working directory (chdir / cd) is left *outside* of the&lt;br /&gt;#&amp;nbsp; chroot until all of the modules have been initialized.&amp;nbsp; This allows&lt;br /&gt;#&amp;nbsp; the &quot;raddb&quot; directory to be left outside of the chroot.&amp;nbsp; Once the&lt;br /&gt;#&amp;nbsp; modules have been initialized, it does a &quot;chdir&quot; to ${logdir}.&amp;nbsp; This&lt;br /&gt;#&amp;nbsp; means that it should be impossible to break out of the chroot.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If you are worried about security issues related to this use of chdir,&lt;br /&gt;#&amp;nbsp; then simply ensure that the &quot;raddb&quot; directory is inside of the chroot,&lt;br /&gt;#&amp;nbsp; end be sure to do &quot;cd raddb&quot; BEFORE starting the server.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If the server is statically linked, then the only files that have&lt;br /&gt;#&amp;nbsp; to exist in the chroot are ${run_dir} and ${logdir}.&amp;nbsp; If you do the&lt;br /&gt;#&amp;nbsp; &quot;cd raddb&quot; as discussed above, then the &quot;raddb&quot; directory has to be&lt;br /&gt;#&amp;nbsp; inside of the chroot directory, too.&lt;br /&gt;#&lt;br /&gt;#chroot = /path/to/chroot/directory&lt;br /&gt;&lt;br /&gt;# user/group: The name (or #number) of the user/group to run radiusd as.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; If these are commented out, the server will run as the user/group&lt;br /&gt;#&amp;nbsp;&amp;nbsp; that started it.&amp;nbsp; In order to change to a different user/group, you&lt;br /&gt;#&amp;nbsp;&amp;nbsp; MUST be root ( or have root privleges ) to start the server.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp;&amp;nbsp; We STRONGLY recommend that you run the server with as few permissions&lt;br /&gt;#&amp;nbsp;&amp;nbsp; as possible.&amp;nbsp; That is, if you&#39;re not using shadow passwords, the&lt;br /&gt;#&amp;nbsp;&amp;nbsp; user and group items below should be set to radius&#39;.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; NOTE that some kernels refuse to setgid(group) when the value of&lt;br /&gt;#&amp;nbsp; (unsigned)group is above 60000; don&#39;t use group nobody on these systems!&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; On systems with shadow passwords, you might have to set &#39;group = shadow&#39;&lt;br /&gt;#&amp;nbsp; for the server to be able to read the shadow password file.&amp;nbsp; If you can&lt;br /&gt;#&amp;nbsp; authenticate users while in debug mode, but not in daemon mode, it may be&lt;br /&gt;#&amp;nbsp; that the debugging mode server is running as a user that can read the&lt;br /&gt;#&amp;nbsp; shadow info, and the user listed below can not.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The server will also try to use &quot;initgroups&quot; to read /etc/groups.&lt;br /&gt;#&amp;nbsp; It will join all groups where &quot;user&quot; is a member.&amp;nbsp; This can allow&lt;br /&gt;#&amp;nbsp; for some finer-grained access controls.&lt;br /&gt;#&lt;br /&gt;user = radiusd&lt;br /&gt;group = radiusd&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; max_request_time: The maximum time (in seconds) to handle a request.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; Requests which take more time than this to process may be killed, and&lt;br /&gt;#&amp;nbsp; a REJECT message is returned.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; WARNING: If you notice that requests take a long time to be handled,&lt;br /&gt;#&amp;nbsp; then this MAY INDICATE a bug in the server, in one of the modules&lt;br /&gt;#&amp;nbsp; used to handle a request, OR in your local configuration.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; This problem is most often seen when using an SQL database.&amp;nbsp; If it takes&lt;br /&gt;#&amp;nbsp; more than a second or two to receive an answer from the SQL database,&lt;br /&gt;#&amp;nbsp; then it probably means that you haven&#39;t indexed the database.&amp;nbsp; See your&lt;br /&gt;#&amp;nbsp; SQL server documentation for more information.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; Useful range of values: 5 to 120&lt;br /&gt;#&lt;br /&gt;max_request_time = 30&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; cleanup_delay: The time to wait (in seconds) before cleaning up&lt;br /&gt;#&amp;nbsp; a reply which was sent to the NAS.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The RADIUS request is normally cached internally for a short period&lt;br /&gt;#&amp;nbsp; of time, after the reply is sent to the NAS.&amp;nbsp; The reply packet may be&lt;br /&gt;#&amp;nbsp; lost in the network, and the NAS will not see it.&amp;nbsp; The NAS will then&lt;br /&gt;#&amp;nbsp; re-send the request, and the server will respond quickly with the&lt;br /&gt;#&amp;nbsp; cached reply.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If this value is set too low, then duplicate requests from the NAS&lt;br /&gt;#&amp;nbsp; MAY NOT be detected, and will instead be handled as seperate requests.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If this value is set too high, then the server will cache too many&lt;br /&gt;#&amp;nbsp; requests, and some new requests may get blocked.&amp;nbsp; (See &#39;max_requests&#39;.)&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; Useful range of values: 2 to 10&lt;br /&gt;#&lt;br /&gt;cleanup_delay = 5&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; max_requests: The maximum number of requests which the server keeps&lt;br /&gt;#&amp;nbsp; track of.&amp;nbsp; This should be 256 multiplied by the number of clients.&lt;br /&gt;#&amp;nbsp; e.g. With 4 clients, this number should be 1024.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If this number is too low, then when the server becomes busy,&lt;br /&gt;#&amp;nbsp; it will not respond to any new requests, until the &#39;cleanup_delay&#39;&lt;br /&gt;#&amp;nbsp; time has passed, and it has removed the old requests.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If this number is set too high, then the server will use a bit more&lt;br /&gt;#&amp;nbsp; memory for no real benefit.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If you aren&#39;t sure what it should be set to, it&#39;s better to set it&lt;br /&gt;#&amp;nbsp; too high than too low.&amp;nbsp; Setting it to 1000 per client is probably&lt;br /&gt;#&amp;nbsp; the highest it should be.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; Useful range of values: 256 to infinity&lt;br /&gt;#&lt;br /&gt;max_requests = 1024&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; listen: Make the server listen on a particular IP address, and send&lt;br /&gt;#&amp;nbsp; replies out from that address. This directive is most useful for&lt;br /&gt;#&amp;nbsp; hosts with multiple IP addresses on one interface.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If you want the server to listen on additional addresses, or on&lt;br /&gt;#&amp;nbsp; additionnal ports, you can use multiple &quot;listen&quot; sections.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; Each section make the server listen for only one type of packet,&lt;br /&gt;#&amp;nbsp; therefore authentication and accounting have to be configured in&lt;br /&gt;#&amp;nbsp; different sections.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The server ignore all &quot;listen&quot; section if you are using &#39;-i&#39; and &#39;-p&#39;&lt;br /&gt;#&amp;nbsp; on the command line.&lt;br /&gt;#&lt;br /&gt;listen {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Type of packets to listen for.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Allowed values are:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; auth&amp;nbsp;&amp;nbsp;&amp;nbsp; listen for authentication packets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; acct&amp;nbsp;&amp;nbsp;&amp;nbsp; listen for accounting packets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; proxy&amp;nbsp;&amp;nbsp; IP to use for sending proxied packets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; detail&amp;nbsp; Read from the detail file.&amp;nbsp; For examples, see&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raddb/sites-available/copy-acct-to-home-server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; status&amp;nbsp; listen for Status-Server packets.&amp;nbsp; For examples,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; see raddb/sites-available/status&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; coa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listen for CoA-Request and Disconnect-Request&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; packets.&amp;nbsp; For examples, see the file&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; raddb/sites-available/coa-server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type = auth&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Note: &quot;type = proxy&quot; lets you control the source IP used for&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxying packets, with some limitations:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; * A proxy listener CANNOT be used in a virtual server section.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; * You should probably set &quot;port = 0&quot;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; * Any &quot;clients&quot; configuration will be ignored.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; See also proxy.conf, and the &quot;src_ipaddr&quot; configuration entry&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; in the sample &quot;home_server&quot; section.&amp;nbsp; When you specify the&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; source IP address for packets sent to a home server, the&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; proxy listeners are automatically created.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; IP address on which to listen.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Allowed values are:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; dotted quad (1.2.3.4)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hostname&amp;nbsp;&amp;nbsp;&amp;nbsp; (radius.example.com)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wildcard&amp;nbsp;&amp;nbsp;&amp;nbsp; (*)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipaddr = *&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; OR, you can use an IPv6 address, but not both&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; at the same time.&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; ipv6addr = ::&amp;nbsp;&amp;nbsp;&amp;nbsp; # any.&amp;nbsp; ::1 == localhost&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Port on which to listen.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Allowed values are:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; integer port number (1812)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 means &quot;use /etc/services for the proper port&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; port = 0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Some systems support binding to an interface, in addition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; to the IP address.&amp;nbsp; This feature isn&#39;t strictly necessary,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; but for sites with many IP addresses on one interface,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; it&#39;s useful to say &quot;listen on all addresses for eth0&quot;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; If your system does not support this feature, you will&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; get an error if you try to use it.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; interface = eth0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Per-socket lists of clients.&amp;nbsp; This is a very useful feature.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; The name here is a reference to a section elsewhere in&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; radiusd.conf, or clients.conf.&amp;nbsp; Having the name as&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; a reference allows multiple sockets to use the same&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; set of clients.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; If this configuration is used, then the global list of clients&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; is IGNORED for this &quot;listen&quot; section.&amp;nbsp; Take care configuring&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; this feature, to ensure you don&#39;t accidentally disable a&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; client you need.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; See clients.conf for the configuration of &quot;per_socket_clients&quot;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; clients = per_socket_clients&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; This second &quot;listen&quot; section is for listening on the accounting&lt;br /&gt;#&amp;nbsp; port, too.&lt;br /&gt;#&lt;br /&gt;listen {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipaddr = *&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; ipv6addr = ::&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; port = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type = acct&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; interface = eth0&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; clients = per_socket_clients&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; hostname_lookups: Log the names of clients or just their IP addresses&lt;br /&gt;#&amp;nbsp; e.g., www.freeradius.org (on) or 206.47.27.232 (off).&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; The default is &#39;off&#39; because it would be overall better for the net&lt;br /&gt;#&amp;nbsp; if people had to knowingly turn this feature on, since enabling it&lt;br /&gt;#&amp;nbsp; means that each client request will result in AT LEAST one lookup&lt;br /&gt;#&amp;nbsp; request to the nameserver.&amp;nbsp;&amp;nbsp; Enabling hostname_lookups will also&lt;br /&gt;#&amp;nbsp; mean that your server may stop randomly for 30 seconds from time&lt;br /&gt;#&amp;nbsp; to time, if the DNS requests take too long.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; Turning hostname lookups off also means that the server won&#39;t block&lt;br /&gt;#&amp;nbsp; for 30 seconds, if it sees an IP address which has no name associated&lt;br /&gt;#&amp;nbsp; with it.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; allowed values: {no, yes}&lt;br /&gt;#&lt;br /&gt;hostname_lookups = no&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; Core dumps are a bad thing.&amp;nbsp; This should only be set to &#39;yes&#39;&lt;br /&gt;#&amp;nbsp; if you&#39;re debugging a problem with the server.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; allowed values: {no, yes}&lt;br /&gt;#&lt;br /&gt;allow_core_dumps = no&lt;br /&gt;&lt;br /&gt;#&amp;nbsp; Regular expressions&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; These items are set at configure time.&amp;nbsp; If they&#39;re set to &quot;yes&quot;,&lt;br /&gt;#&amp;nbsp; then setting them to &quot;no&quot; turns off regular expression support.&lt;br /&gt;#&lt;br /&gt;#&amp;nbsp; If they&#39;re set to &quot;no&quot; at configure time, then setting them to &quot;yes&quot;&lt;br /&gt;#&amp;nbsp; WILL NOT WORK.&amp;nbsp; It will give you an error.&lt;br /&gt;#&lt;br /&gt;regular_expressions&amp;nbsp;&amp;nbsp;&amp;nbsp; = yes&lt;br /&gt;extended_expressions&amp;nbsp;&amp;nbsp;&amp;nbsp; = yes&lt;br /&gt;&lt;br /&gt;#</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/7306103566389519805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/server-config-yum-y-update-reboot-yum-y.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7306103566389519805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7306103566389519805'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/server-config-yum-y-update-reboot-yum-y.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-6569287299048027494</id><published>2012-07-20T07:26:00.002-07:00</published><updated>2012-07-25T23:47:49.661-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="freeswitch config"/><title type='text'></title><content type='html'>&lt;br /&gt;&lt;h1 style=&quot;background-color: #efefef; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, sans-serif; font-size: 22px; line-height: 22px; margin: 0px 0px 15px; padding: 14px; text-align: left;&quot;&gt;How to configure FreeSWITCH with iCall&lt;/h1&gt;&lt;div id=&quot;subpage_column1_padding&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px; padding-left: 20px; text-align: left;&quot;&gt;&lt;div class=&quot;HasTitle&quot; style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;This quick tutorial will talk you through installing FreeSWITCH, setting up iCall as a gateway, and configuring outbound and inbound services. For the purposes of this walk through, we&#39;ll assume that you&#39;re using a Linux-based system. For Windows, FreeBSD, or OSX - all instructions other than the basic installation process are identical.&lt;/div&gt;&lt;hr style=&quot;background-color: #cccccc; border: 0px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;color: #444444; font-size: 18px; margin: 0px; padding: 0px 0px 5px;&quot;&gt;Getting FreeSWITCH&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;To download and install FreeSWITCH, perform the following. Note that the uncompressed directory name will change depending on the build version.&lt;/div&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;# wget http://latest.freeswitch.org/freeswitch-1.0.5-latest.tar.gz # tar zxvf freeswitch-1.0.5-latest.tar.gz # cd freeswitch-1.0.5-XXXX # ./configure # make # make install &lt;/div&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;FreeSWITCH should now be installed in&amp;nbsp;&lt;i&gt;/usr/local/freeswitch&lt;/i&gt;.&lt;/div&gt;&lt;hr style=&quot;background-color: #cccccc; border: 0px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;color: #444444; font-size: 18px; margin: 0px; padding: 0px 0px 5px;&quot;&gt;Making some basic changes&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;By default, FreeSWITCH puts its &quot;external&quot; SIP profile on port 5080. While technically it will work fine, it&#39;s a bit confusing. At iCall, we default to 5060 but can handle any SIP port you&#39;d like to use. Let&#39;s change some of the defaults to use port 5060 for the external profile. Open up&lt;i&gt;/usr/local/freeswitch/conf/vars.xml&lt;/i&gt;. Change the following lines:&lt;/div&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;&amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_sip_port=5060&quot;/&amp;gt; &amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_tls_port=5061&quot;/&amp;gt; ... &amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_sip_port=5080&quot;/&amp;gt; &amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_tls_port=5081&quot;/&amp;gt; &lt;/div&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;To the following:&lt;/div&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;&amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_sip_port=5080&quot;/&amp;gt; &amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;internal_tls_port=5081&quot;/&amp;gt; ... &amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_sip_port=5060&quot;/&amp;gt; &amp;lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_tls_port=5061&quot;/&amp;gt; &lt;/div&gt;&lt;hr style=&quot;background-color: #cccccc; border: 0px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;color: #444444; font-size: 18px; margin: 0px; padding: 0px 0px 5px;&quot;&gt;Adding the iCall gateways&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;Now that we have the system installed, we need to setup the iCall gateways. To do this, create a file in&lt;i&gt;/usr/local/freeswitch/conf/sip_profiles/external/&lt;/i&gt;&amp;nbsp;called&amp;nbsp;&lt;i&gt;icall.xml&lt;/i&gt;. Put the following in the file:&lt;/div&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; font-size: 11px; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt; &amp;lt;include&amp;gt;   &amp;lt;gateway name=&quot;icall&quot;&amp;gt;     &amp;lt;!-- Replace these value with your iCall Carrier Services username and password. --&amp;gt;     &amp;lt;!-- Even if you use an IP-based sub-account, FreeSWITCH needs these values --&amp;gt;     &amp;lt;param name=&quot;username&quot; value=&quot;cust_USERNAME&quot; /&amp;gt;     &amp;lt;param name=&quot;password&quot; value=&quot;PASSWORD&quot; /&amp;gt;     &amp;lt;param name=&quot;from-user&quot; value=&quot;cust_USERNAME&quot; /&amp;gt;     &amp;lt;param name=&quot;proxy&quot; value=&quot;sbc01-car.dal.us.icall.net&quot; /&amp;gt;     &amp;lt;param name=&quot;realm&quot; value=&quot;sbc01-car.dal.us.icall.net&quot; /&amp;gt;     &amp;lt;!-- Set to &quot;false&quot; for IP-based accounts, or &quot;true&quot; for registration based --&amp;gt;     &amp;lt;param name=&quot;register&quot; value=&quot;false&quot; /&amp;gt;   &amp;lt;/gateway&amp;gt;   &amp;lt;gateway name=&quot;icall_international&quot;&amp;gt;     &amp;lt;!-- Replace these value with your iCall Carrier Services username and password. --&amp;gt;     &amp;lt;!-- Even if you use an IP-based sub-account, FreeSWITCH needs these values --&amp;gt;     &amp;lt;param name=&quot;username&quot; value=&quot;cust_USERNAME&quot; /&amp;gt;     &amp;lt;param name=&quot;password&quot; value=&quot;PASSWORD&quot; /&amp;gt;     &amp;lt;param name=&quot;from-user&quot; value=&quot;cust_USERNAME&quot; /&amp;gt;     &amp;lt;param name=&quot;proxy&quot; value=&quot;gw01-car.dal.us.icall.net&quot; /&amp;gt;     &amp;lt;param name=&quot;realm&quot; value=&quot;gw01-car.dal.us.icall.net&quot; /&amp;gt;     &amp;lt;!-- Set to &quot;false&quot; for IP-based accounts, or &quot;true&quot; for registration based --&amp;gt;     &amp;lt;param name=&quot;register&quot; value=&quot;false&quot; /&amp;gt;   &amp;lt;/gateway&amp;gt; &amp;lt;/include&amp;gt; &lt;/div&gt;&lt;hr style=&quot;background-color: #cccccc; border: 0px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;color: #444444; font-size: 18px; margin: 0px; padding: 0px 0px 5px;&quot;&gt;Setting up an inbound number&lt;/h2&gt;There are a number of ways to configure inbound DIDs, but the easiest is to put the number handling in&amp;nbsp;&lt;i&gt;icall.xml&lt;/i&gt;&amp;nbsp;in the&lt;i&gt;/usr/local/freeswitch/conf/public/&lt;/i&gt;&amp;nbsp;directory. Once you create this file, FreeSWITCH will automatically include it in the global configuration. Below is a sample of handling an inbound call to 2125551212 and echoing back all audio.&amp;nbsp;&lt;b&gt;Note: Since we&#39;re using the &quot;public&quot; context, anyone call call these numbers - not just iCall or your other SIP provider.&lt;/b&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;&amp;lt;include&amp;gt;   &amp;lt;extension name=&quot;icall_inbound&quot;&amp;gt;     &amp;lt;condition field=&quot;destination_number&quot; expression=&quot;^2125551212$&quot;&amp;gt;       &amp;lt;action application=&quot;answer&quot;/&amp;gt;       &amp;lt;action application=&quot;echo&quot; /&amp;gt;     &amp;lt;/condition&amp;gt;   &amp;lt;/extension&amp;gt; &amp;lt;/include&amp;gt; &lt;/div&gt;&lt;hr style=&quot;background-color: #cccccc; border: 0px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;color: #444444; font-size: 18px; margin: 0px; padding: 0px 0px 5px;&quot;&gt;Outbound dialing&lt;/h2&gt;The outbound dialplan syntax is identical to the inbound. One important thing is to make sure that you put your outbound dialing in a context that only your registered phones, customer, or other SIP devices have access to. Setting a &quot;user_context&quot; variable on each directory user will limit them to the specified context. For this example, we will assume that you&#39;ve set the context on those users to &quot;outbound&quot;. Place the following in&lt;i&gt;/usr/local/freeswitch/conf/dialplan/outbound.xml&lt;/i&gt;.&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;&amp;lt;include&amp;gt;   &amp;lt;context name=&quot;outbound&quot;&amp;gt;     &amp;lt;extension name=&quot;outbound_international&quot;&amp;gt;       &amp;lt;condition field=&quot;destination_number&quot; expression=&quot;^011?(\d+)$&quot;&amp;gt;         &amp;lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/icall_international/011$1&quot;/&amp;gt;       &amp;lt;/condition&amp;gt;     &amp;lt;/extension&amp;gt;     &amp;lt;extension name=&quot;outbound_domestic&quot;&amp;gt;       &amp;lt;condition field=&quot;destination_number&quot; expression=&quot;^1?(\d{10})$&quot;&amp;gt;         &amp;lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/icall/1$1&quot;/&amp;gt;       &amp;lt;/condition&amp;gt;     &amp;lt;/extension&amp;gt;   &amp;lt;/context&amp;gt; &amp;lt;/include&amp;gt; &lt;/div&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;The dialplan above tells FreeSWITCH to bridge any calls starting with &quot;011&quot; to iCall&#39;s international call gateway. Any calls that are 10-digit numbers, with or without a beginning &quot;1&quot;, will be sent to the domestic gateway. Note that there are some 10-digit international destinations, so it&#39;s up to you to filter those out separately as needed.&lt;/div&gt;&lt;hr style=&quot;background-color: #cccccc; border: 0px; height: 1px;&quot; /&gt;&lt;h2 style=&quot;color: #444444; font-size: 18px; margin: 0px; padding: 0px 0px 5px;&quot;&gt;Running FreeSWITCH&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;To run FreeSWITCH, simply type:&lt;/div&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;# /usr/local/freeswitch/bin/freeswitch&lt;/div&gt;&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;To exit, simply type &quot;...&quot;. To run FreeSWITCH in the background then connect to the console, run:&lt;/div&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); font-family: &#39;Courier New&#39;, Courier; margin-bottom: 15px; margin-left: 10px; padding: 10px; text-align: justify; white-space: pre;&quot;&gt;# /usr/local/freeswitch/bin/freeswitch # /usr/local/freeswitch/bin/fs_cli&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/6569287299048027494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/how-to-configure-freeswitch-with-icall_20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6569287299048027494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6569287299048027494'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/how-to-configure-freeswitch-with-icall_20.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-5054242866522844154</id><published>2012-07-19T09:05:00.001-07:00</published><updated>2012-07-19T09:05:01.386-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;If you are using the DEB version of webmin, first download the file from the&amp;nbsp;&lt;a href=&quot;http://www.webmin.com/download.html&quot; style=&quot;background: inherit; color: #4f82cb; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;downloads page&lt;/a&gt;&amp;nbsp;, or run the command :&lt;code style=&quot;background-color: #fafafa; border: 1px solid rgb(242, 242, 242); display: block; font-family: &#39;Lucida Console&#39;, &#39;courier new&#39;, monospace; font-size: 1em; line-height: 1.5em; margin: 5px 0px; overflow: auto; padding: 10px;&quot;&gt;wget http://prdownloads.sourceforge.net/webadmin/webmin_1.590_all.deb&lt;/code&gt;then run the command :&lt;code style=&quot;background-color: #fafafa; border: 1px solid rgb(242, 242, 242); display: block; font-family: &#39;Lucida Console&#39;, &#39;courier new&#39;, monospace; font-size: 1em; line-height: 1.5em; margin: 5px 0px; overflow: auto; padding: 10px;&quot;&gt;dpkg --install webmin_1.590_all.deb&lt;/code&gt;The install will be done automatically to&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;/usr/share/webmin&lt;/tt&gt;, the administration username set to&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;root&lt;/tt&gt;&amp;nbsp;and the password to your current root password. You should now be able to login to Webmin at the URL&lt;a href=&quot;http://localhost:10000/&quot; style=&quot;background: inherit; color: #4f82cb; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://localhost:10000/&lt;/a&gt;. Or if accessing it remotely, replace&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;localhost&lt;/tt&gt;&amp;nbsp;with your system&#39;s IP address.&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;If Debian complains about missing dependencies, you can install them with the command :&lt;code style=&quot;background-color: #fafafa; border: 1px solid rgb(242, 242, 242); display: block; font-family: &#39;Lucida Console&#39;, &#39;courier new&#39;, monospace; font-size: 1em; line-height: 1.5em; margin: 5px 0px; overflow: auto; padding: 10px;&quot;&gt;apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python&lt;/code&gt;If you are installing on Ubuntu and the&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;apt-get&lt;/tt&gt;&amp;nbsp;command reports that some of the packages cannot be found, edit&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;/etc/apt/sources.list&lt;/tt&gt;&amp;nbsp;and make sure the lines ending with&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;universe&lt;/tt&gt;&amp;nbsp;are not commented out.&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;Some Debian-based distributions (Ubuntu in particular) don&#39;t allow logins by the&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;root&lt;/tt&gt;&amp;nbsp;user by default. However, the user created at system installation time can use&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;sudo&lt;/tt&gt;&amp;nbsp;to switch to root. Webmin will allow any user who has this&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;sudo&lt;/tt&gt;&amp;nbsp;capability to login with full root privileges.&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;If you want to connect from a remote server and your system has a firewall installed, see&amp;nbsp;&lt;a href=&quot;http://www.webmin.com/firewall.html&quot; style=&quot;background: inherit; color: #4f82cb; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;this page for instructions on how to open up port 10000&lt;/a&gt;.&lt;/div&gt;&lt;h1 style=&quot;background-image: url(http://www.webmin.com/images/square-green.png); background-position: 3px 50%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-bottom-width: 1px; color: #88ac0b; font-family: Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px; margin: 10px 0px 0px; padding: 5px 0px 5px 25px; text-align: left;&quot;&gt;Using the Webmin APT repository&lt;/h1&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;If you like to install and update Webmin via APT, edit the&amp;nbsp;&lt;tt style=&quot;margin: 0px; padding: 0px;&quot;&gt;/etc/apt/sources.list&lt;/tt&gt;&amp;nbsp;file on your system and add the lines :&lt;code style=&quot;background-color: #fafafa; border: 1px solid rgb(242, 242, 242); display: block; font-family: &#39;Lucida Console&#39;, &#39;courier new&#39;, monospace; font-size: 1em; line-height: 1.5em; margin: 5px 0px; overflow: auto; padding: 10px;&quot;&gt;deb http://download.webmin.com/download/repository sarge contrib&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib&lt;/code&gt;You should also fetch and install my GPG key with which the repository is signed, with the commands :&lt;code style=&quot;background-color: #fafafa; border: 1px solid rgb(242, 242, 242); display: block; font-family: &#39;Lucida Console&#39;, &#39;courier new&#39;, monospace; font-size: 1em; line-height: 1.5em; margin: 5px 0px; overflow: auto; padding: 10px;&quot;&gt;cd /root&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;wget http://www.webmin.com/jcameron-key.asc&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;apt-key add jcameron-key.asc&lt;/code&gt;You will now be able to install with the commands :&lt;code style=&quot;background-color: #fafafa; border: 1px solid rgb(242, 242, 242); display: block; font-family: &#39;Lucida Console&#39;, &#39;courier new&#39;, monospace; font-size: 1em; line-height: 1.5em; margin: 5px 0px; overflow: auto; padding: 10px;&quot;&gt;apt-get update&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;apt-get install webmin&lt;/code&gt;All dependencies should be resolved automatically.&lt;/div&gt;&lt;h1 style=&quot;background-image: url(http://www.webmin.com/images/square-green.png); background-position: 3px 50%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-bottom-width: 1px; color: #88ac0b; font-family: Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px; margin: 10px 0px 0px; padding: 5px 0px 5px 25px; text-align: left;&quot;&gt;Supported Debian-based Distributions&lt;/h1&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;Webmin has been tested on all regular Debian releases, Ubuntu Linux, and derivatives like Xandros and APLINUX.&lt;/div&gt;&lt;h1 style=&quot;background-image: url(http://www.webmin.com/images/square-green.png); background-position: 3px 50%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-bottom-width: 1px; color: #88ac0b; font-family: Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 14px; margin: 10px 0px 0px; padding: 5px 0px 5px 25px; text-align: left;&quot;&gt;Source Packages&lt;/h1&gt;&lt;div style=&quot;background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 16px; padding: 10px; text-align: left;&quot;&gt;The files needed to build the Debian package are&amp;nbsp;&lt;a href=&quot;http://download.webmin.com/download/deb/webmin_1.590.dsc&quot; style=&quot;background: inherit; color: #4f82cb; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;deb/webmin_1.590.dsc&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://download.webmin.com/download/deb/webmin_1.590.diff&quot; style=&quot;background: inherit; color: #4f82cb; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;deb/webmin_1.590.diff&lt;/a&gt;, and&lt;a href=&quot;http://www.webmin.com/download/webmin-1.590.tar.gz&quot; style=&quot;background: inherit; color: #4f82cb; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;webmin-1.590.tar.gz&lt;/a&gt;&amp;nbsp;.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/5054242866522844154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/if-you-are-using-deb-version-of-webmin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/5054242866522844154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/5054242866522844154'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/if-you-are-using-deb-version-of-webmin.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8880921263421959693</id><published>2012-07-19T04:31:00.000-07:00</published><updated>2012-07-19T04:31:02.344-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;h2 class=&quot;date-header&quot; style=&quot;background-attachment: scroll; background-image: none; background-position: 0% 0%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(49, 83, 18); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: solid; border-top-width: 0px; bottom: auto; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; font-weight: normal; margin: 0px -15px 1px; min-height: 0px; padding: 0px; position: static; right: 15px; text-shadow: rgb(0, 0, 0) 0px 0px -1px;&quot;&gt;&lt;span style=&quot;border-left-color: rgb(49, 83, 18); border-left-style: solid; border-left-width: 0px; border-right-color: rgb(49, 83, 18); border-right-style: solid; border-right-width: 0px; display: block; padding: 0.5em 15px;&quot;&gt;&lt;a href=&quot;http://bukpe.blogspot.com/2009/08/daloradius-ubuntu.html&quot; style=&quot;background-color: lime; color: #94f937; font-size: 22px; text-decoration: none;&quot;&gt;DaloRADIUS installed on Ubuntu.&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;date-posts&quot; style=&quot;border-top-color: rgb(49, 83, 18); border-top-style: solid; border-top-width: 1px; clear: both; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px -15px; padding: 8px 15px 0px;&quot;&gt;&lt;div class=&quot;post-outer&quot; style=&quot;border-top-style: none; margin: 0px -15px; padding: 0px 15px 10px;&quot;&gt;&lt;div class=&quot;post hentry&quot; itemscope=&quot;itemscope&quot; itemtype=&quot;http://schema.org/BlogPosting&quot; style=&quot;min-height: 0px; position: relative;&quot;&gt;&lt;div class=&quot;post-header&quot; style=&quot;line-height: 1.6; margin: 0px 0px 1em;&quot;&gt;&lt;div class=&quot;post-header-line-1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1527748468883260258&quot; itemprop=&quot;articleBody&quot; style=&quot;line-height: 1.4; position: relative; width: 536px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;Fronting the white conch.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;According http://putudude.blogspot.com/2009/05/freeradius-on-ubuntu-904.html, http://daloradius.wiki.sourceforge.net/space/showimage/daloRADIUS+Users+Manual.pdf on trial. Ubuntu 9.04.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;span style=&quot;color: #ff6666;&quot;&gt;Recommended DaloRADIUS.&lt;/span&gt;&lt;br /&gt;DaloRADIUS advanced RADIUS web plateform is intended to manage hotspots and the use of the ISP general management.&amp;nbsp;user, graphical reporting, accounting for the (accounting) and billing engine to GoogleMaps for a management position.&lt;br /&gt;DaloRADIUS.&amp;nbsp;Eii user writes with the PHP language and JavaScript, and use of database systems like MySQL, PostgreSQL, Sqlite, MsSQL and other&lt;br /&gt;safeguard FreeeRadius to develop a muted database server acts as a backend for other features, it can import. implement ACLs, GoogleMaps to locate.&amp;nbsp;hotspots / access point and other features.&lt;br /&gt;DaloRADIUS a Web Application to manage radius server based on principle and to manage radius server which has only a FreeRadius and Database structure of FreeRadius.&amp;nbsp;&lt;span style=&quot;color: #ff6600;&quot;&gt;the upgrade.&lt;/span&gt;&amp;nbsp;upgrade daloRADIUS associated with the update.&amp;nbsp;daloradius.conf.php it with newer options with a writable directory with all of the old daloradius.&amp;nbsp;php / html / javascript code to the latest available daloradius package file to import the database scheme file update / insert new record into the databse.&amp;nbsp;for details on upgrading the more I see the manual of daloRADIUS.&lt;br /&gt;&lt;span style=&quot;color: #ff6600;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: #ff6666;&quot;&gt;The process of installation.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;A. If it is not installed, install apache with the command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;&lt;em&gt;Apt-get Install apache2.&lt;/em&gt;&lt;/span&gt;2nd. are installed on php.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;Apt-get Install PHP5 PHP5-GD-Common PHP-DB PHP Pear-libapache2-mod-PHP5.&lt;/span&gt;&lt;/em&gt;3rd. to install MySQL as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;Apt-get Install PHP5-MySQL MySQL-Server.&lt;/span&gt;&lt;/em&gt;fourth. If it is not installed, install FreeRadius command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;Apt-get Install Freeradius Freeradius-MySQL.&lt;/span&gt;&lt;/em&gt;fifth. download from daloRADIUS.&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/daloradius&quot; style=&quot;color: #a62563; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Http://sourceforge.net/projects/daloradius.&lt;/a&gt;&amp;nbsp;follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;wget http://sourceforge.net/projects/daloradius/files/daloradius/daloradius-0.9-8.tar.gz.&lt;/span&gt;&lt;/em&gt;6. the file command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;tar-zxvf Daloradius-0.9-8.tar.gz.&lt;/span&gt;&lt;/em&gt;7th. to the directory of the web daloradius to the location of the command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;CP Daloiradius-xy-Z / / var / www-R.&lt;/span&gt;&lt;/em&gt;eight. set the permission.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;chown www-data: www-data / var / www / Daloradius-XX-Z-R.&lt;/span&gt;&lt;/em&gt;the ninth. the chmod as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;the six hundred and forty fourth chmod / var / www / Daloradius-xy-Z / Library / Daloradius.conf.php.&lt;/span&gt;&lt;/em&gt;ten. to create a database called the radius.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.itwizard.info/technology/linux/ubuntu/daloRADIUS/p1.png&quot; style=&quot;color: #a62563; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.itwizard.info/technology/linux/ubuntu/daloRADIUS/p1.png&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid transparent; box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 0px; height: 207px; padding: 8px; position: relative; width: 527px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;11. The quit command to exit the base.&amp;nbsp;MySQL.&lt;br /&gt;12. the table to the database name.&amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;RADIUS.&lt;/span&gt;&amp;nbsp;by using a script provided with the following command daloradius cups.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;mysql-u root-p radius &amp;lt;/ var/www/daloradius-0.9-8/contrib/db/fr2-mysql-daloradius-and-freeradius.sql.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;The word.&amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;RADIUS.&lt;/span&gt;&amp;nbsp;for Mau&#39;s name database.&amp;nbsp;And when prompted for a password, enter the root password for the database name radius will not have to create the database.&amp;nbsp;Use this command to run the script file as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;mysql-u root-p radius &amp;lt;/ var/www/daloradius-0.9-8/contrib/db/mysql-daloradius.sql.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;If it is an upgrade, see the guide as a reference to it.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;13. Open the configuration file.&amp;nbsp;/ Var / www / daloradius-xy-z / library / daloradius.conf.php.แg prepaid fixed fee as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;CONFIG_DB_ENGINE = mysql.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;CONFIG_DB_HOST = 127.0.0.1.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;CONFIG_DB_USER = root.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;CONFIG_DB_PASS = CONFIG_DB_NAME = radius.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;14th. To configure freeradius.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;1.14 file.&amp;nbsp;/ Etc / freeradius / sql.conf.&amp;nbsp;To run the database with the radius of the root user password, which is defined as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;server = &quot;localhost&quot;.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;login = &quot;root&quot;.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;password = &quot;xxxxxx&quot;.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;radius_db = &quot;radius&quot;.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;14.2 The Client will provide the password to use FreeRadius file / etc / freeradius / clients.conf by the client 127.0.0.1 (or client localhost) is the secret = radiussecretclient.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;localhost {.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;secret = radiussecret.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;{.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;Allow the machine to another client, such as Title FreeRadius client with the IP address is 172.24.51.16 configured it as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;client 172.24.51.16 {.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;secret = radiussecret.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;shortname = chilli.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;}.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;3.14 file.&amp;nbsp;/ Etc / freeradius / sql.conf readclients = yes to set the radius client to read the values ​​from the database.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;14.4 Edit the file / etc / freeradius / site-enabled / default as follows.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;The.&amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;&lt;em&gt;Accounting.&amp;nbsp;{......}.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;make a mark&amp;nbsp;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;in front of the # sql out&lt;/span&gt;&lt;/em&gt;&amp;nbsp;to retrieve the data from the database to verify the username, password and do the accounting.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;A.&amp;nbsp;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;Session.&amp;nbsp;{......}.&lt;/span&gt;&lt;/em&gt;&amp;nbsp;make a mark&amp;nbsp;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;in front of the # sql out&lt;/span&gt;&lt;/em&gt;&amp;nbsp;to retrieve the data from the database to verify the username, password in the session.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;The.&amp;nbsp;&lt;em&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;Authorize.&amp;nbsp;{......}.&lt;/span&gt;&lt;/em&gt;&amp;nbsp;to remove mark&amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;# in front of the files.&lt;/span&gt;&amp;nbsp;and remove.&amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;#.&lt;/span&gt;&amp;nbsp;out of it.&amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;SQL.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;Command to restart FreeRadius 5.14.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;/ Etc / init.d / freeradius restart.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;15th. To restart apache with the command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;&lt;em&gt;/ Etc/init.d/apache2 restart.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;16. The Directory and the touch.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;mkdir / var / log / freeradius / radacct /.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;touch / var / log / freeradius / radacct / sql-relay.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;17. Open the Browser.&amp;nbsp;&lt;a href=&quot;http://www.blogger.com/ip_address/daloradius-x.y-z&quot; style=&quot;color: #a62563; text-decoration: none;&quot;&gt;Http://ip_address/daloradius-xy-z.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;user = administrator.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;&lt;span style=&quot;background-color: lime; color: #cc66cc;&quot;&gt;password = radius.&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;18. On the Login window is as follows.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;br /&gt;&lt;a href=&quot;http://www.itwizard.info/technology/linux/ubuntu/daloRADIUS/p2.png&quot; style=&quot;color: #a62563; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.itwizard.info/technology/linux/ubuntu/daloRADIUS/p2.png&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid transparent; box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 0px; height: 562px; padding: 8px; position: relative; width: 800px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;/div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;The user can manage this.&amp;nbsp;Examining the FreeRadius with the following command radtest radtest username password 127.0.0.1 0 mysecret If set up correctly and enter the result that they are correct.&amp;nbsp;Access-Accept Fig.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.itwizard.info/technology/linux/ubuntu/daloRADIUS/p3.png&quot; style=&quot;background-color: lime; color: #2563a6;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.itwizard.info/technology/linux/ubuntu/daloRADIUS/p3.png&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid transparent; box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 0px; height: 140px; padding: 8px; position: relative; width: 640px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-footer&quot; style=&quot;line-height: 1.6; margin: 1.5em 0px 0px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8880921263421959693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/daloradius-installed-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8880921263421959693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8880921263421959693'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/daloradius-installed-on-ubuntu.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-7040029926249334842</id><published>2012-07-16T05:32:00.001-07:00</published><updated>2012-07-16T05:32:05.352-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;LINUX REQUIREMENTS AND A2BILLING&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;a2billing 1.4 includes the following third party software:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• phpagi 2.14 Copyright 2003, 2004, 2005 Matthew Asham and David Eder&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• smarty &amp;nbsp;2.6.22 Copyright 2001­2005 New Digital Group, Inc&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• jgraph 1.27 Copyright 2001, 2002, 2003, 2004 Johan Persson Aditus Consulting&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• adodb 4.991 Copyright (c) 2000, 2001, 2002, 2003, 2004 John Lim&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• html2pdf Copyright (C) 2004­2005 Renato Coelho&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• famfamfam.com Icons from Mark James&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;• phpconfig (C) 2003 Dave Packham and Rob Birkinshaw&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;NOT GETTING LOST, WHAT IS THE INSTALLATION&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;ABOUT?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;In a nutshell installing a2billing requires nine steps:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;1.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;2.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;3.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;4.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;5.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;6.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;7.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;8.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;9.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Download and unpack source code&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Setup the database&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Edit a2billing.conf file. Setting up the database parameters&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Fix permissions and folders&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Installing the web based graphical user interfaces (Customer and Admin)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Place the AGI files&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Prepare your dialplan&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Add your cronjobs&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Configure your callback daemon (only for callback)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;To help you to understand what we are doing consider that:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;1. The mother of all components of a2billing is an AGI file (a2billing.php) that is&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;called from asterisk dialplan. (See Step: 6, 7)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;2. The overall goal of the installation is to make sure that the AGI file that is placed&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;in the asterisk agi­bin folder and invoked from the dialplan can (1) access a mysql&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;database and (2) connect to Asterisk manager to place and receive call related&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;commands and information. (See Step: 2, 3, 4)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;3. A2billing is managed via three different user interfaces (admin, agent and customer)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;that needs to run via the apache2 web browser with the right owner and permissions&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(See Step: 5)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;4. There are other components as cronjobs, callback daemon, etc that are needed for&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;advance added value services (See Step: 8, 9)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;HOW ALL FITS TOGETHER?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;A2billing is a complex software but the main idea can be summarized as follows:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;When a call comes into Asterisk, it falls into a context (a part of the dialplan) that will&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;execute a2billing.php &amp;nbsp;PHP file in one of its operational modes. The PHP file is the AGI&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(Asterisk Gateway Interface) software that is responsible of retrieving information of the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;call from the AMI (Asterisk Manager Interface) and interact with the Mysql database. All&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;actions related to the call (routing, playing a IVR, etc) are executed talking to Asterisk via&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;the AMI.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;a2billing.php (the AGI code in the dialplan) uses a PHP class known as phpagi to talk&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;with the AMI and adodb to connect with the mysql database. &amp;nbsp;To separate functionality&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;from presentation a2billing 1.4 is using smarty.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Pre­required Packages&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;A2billing requires the packages of a LAMP (PHP5) installation.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;To install the necessary packages, run the following commands:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#apt­get install libapache2­mod­php5 php5 php5­common&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#apt­get install php5­cli php5­mysql mysql­server apache2 php5­gd&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#apt­get install openssh­server&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Version 1.4 requires &amp;nbsp;Mcrypt for PHP5&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#apt­get install php5­mcrypt&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Asterisk is of course also needed.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#apt­get install asterisk&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;PART 2. &amp;nbsp;&lt;u&gt;&lt;b&gt;INSTALLATION OF A2BILLING&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;In a nutshell installing a2billing requires seven steps:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;1. Download and unpack source code&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;2. Setup the database&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;3. Edit a2billing.conf file. Setting up the database parameters&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;4. Fix permissions and folders&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;5. Place the AGI files&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;6. Installing the web based graphical user interfaces (Customer, Agent and Admin)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;7. Prepare your dialplan&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;8. Add your cronjobs&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;9. Configure your callback daemon (only for callback)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 1. &lt;b&gt;&lt;u&gt;&amp;nbsp;GET A2BILLING SOURCE CODE&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Download the source code (wget) and unpack it (tar).2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#cd /usr/local/src/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#wget http://www.asterisk2billing.org/downloads/A2Billing_1.4.0.tar.gz&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#tar zxvf A2Billing_1.3.4.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;We will now create a symbolic link to the new directory&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#ln ­s /usr/local/src/a2billing_1.4.0 /usr/local/src/a2billing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Make sure you have all the code under /usr/local/src/a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 2. &amp;nbsp;PREPARE THE DATABASE&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;We will now create a MySQL database (mya2billing) for the billing software. The file&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;a2billing­MYSQL­createdb­user.sql &amp;nbsp;includes a script that creates the database with the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;correct access control users and permissions.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#cd /usr/local/src/a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#mysql ­u root ­p &amp;lt; DataBase/mysql/Mysql­5.x/a2billing­MYSQL­createdb­&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;user.sql&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;After creating the database structure, we will create a set of tables and insert some initial&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;basic data &amp;nbsp;that A2Billing needs to work.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#mysql ­u root ­p mya2billing &amp;lt; DataBase/mysql/Mysql­5.x/a2billing­&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;schema­MYSQL.5.X­v1.4.0.sql&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Checkpoint 1: Check that the database (my2billing) and that (89 ?) tables have been&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;created.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#mysql ­u root ­p mya2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; mysql&amp;gt;show tables&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;mysql&amp;gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;2 If you are a developer consider using the SVN version&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;svn co ­­username guest ­­password guest http://svn.a2billing.net/svn/asterisk2billing/trunk&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 3. &amp;nbsp;&lt;b&gt;&lt;u&gt;EDIT A2BILLING CONFIGURATION FILE&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;We need to edit the A2Billing configuration file (a2billing.conf file). The file contains all&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;the configuration information for the Asterisk2Billing to connect to the database. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;First, we need to copy the default configuration file from the source code (/usr/local/src)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;to Asterisk (/etc). Notice that in previous versions the a2billing.conf was under&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;/etc/asterisk&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#cp /usr/local/src/a2billing/a2billing.conf /etc/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Open the file with your favorite text editor (vi is used in this example). If you are new to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Linux, we recommend you to use the text editor Gedit3.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#vi /etc/asterisk/a2billing.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;The only parameters that you need to change here is the database connection information,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;an example follows:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;[database]&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;hostname = localhost&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;port = 3306&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;user = a2billinguser&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;password = a2billing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;dbname = mya2billing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;;dbtype = postgres&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;dbtype = mysql&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;3 Gedit is a graphical text editor and can not be run from a console. In that case, we recommend vi.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 4. &amp;nbsp;&lt;b&gt;&lt;u&gt;FIX PERMISSIONS, FILES AND FOLDERS&lt;/u&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;In this step, we will tweak the file permissions of Asterisk to fit the A2Billing software. We&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;will also create a number of additional files and folders that A2Billing needs, which does&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;not come with the default installation.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;1. &amp;nbsp;SIP and IAX&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;First we will set a few file permissions (chmod, chown) and create (touch) the SIP and&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;IAX configuration files for Asterisk.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;chmod 777 /etc/asterisk&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;touch /etc/asterisk/additional_a2billing_iax.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;touch /etc/asterisk/additional_a2billing_sip.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;echo \#include additional_a2billing_sip.conf &amp;gt;&amp;gt; /etc/asterisk/sip.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;echo \#include additional_a2billing_iax.conf &amp;gt;&amp;gt; /etc/asterisk/iax.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;chown ­Rf www­data /etc/asterisk/additional_a2billing_iax.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;chown ­Rf www­data /etc/asterisk/additional_a2billing_sip.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;2. &amp;nbsp;Sound files&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;We need to copy (cp) a few files from A2Billing package to Asterisk sounds folder. Use the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;installation script as follows:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/local/src/a2billing/addons/install_a2b_sounds_deb.sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chown ­R asterisk:asterisk /usr/share/asterisk/sounds/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;3. &amp;nbsp;Configure Asterisk Manager&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Configure the Asterisk Manager by editing the manager.conf file.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#vi /etc/asterisk/manager.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;[general]&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;enabled = yes&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;port = 5038&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;bindaddr = 0.0.0.0&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;[myasterisk]&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;secret=mycode&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;read=system,call,log,verbose,command,agent,user&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;write=system,call,log,verbose,command,agent,user&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 5. &amp;nbsp;INSTALL THE AGI COMPONENTS&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Place the entire content of the directory AGI into your agi­bin directory.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;mkdir /usr/share/asterisk/agi­bin&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;cd /usr/local/src/a2billing/AGI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;cp a2billing.php /usr/share/asterisk/agi­bin/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;cp ­Rf lib /usr/share/asterisk/agi­bin/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Make sure the script is executable&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;chmod +x /usr/share/asterisk/agi­bin/a2billing.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 6. &amp;nbsp;INSTALL WEB­BASED GRAPHICAL INTERFACES&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;In this step, we will install the three graphical interfaces of A2Billing, the Administration&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(admin), Agent (agent) and the Customer interface (customer).&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Place the directories admin, customer, agent and common into your webserver document&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;root.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir /var/www/a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cp ­rf /usr/local/src/a2billing/admin /var/www/a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cp ­rf /usr/local/src/a2billing/agent /var/www/a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cp ­rf /usr/local/src/a2billing/customer /var/www/a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cp ­rf /usr/local/src/a2billing/common /var/www/a2billing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;chmod 755 /var/www/a2billing/admin/templates_c&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;chmod 755 /var/www/a2billing/customer/templates_c&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;chmod 755 /var/www/a2billing/agent/templates_c&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chown ­Rf www­data:www­data /var/www/a2billing/admin/templates_c&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chown ­Rf www­data:www­data /var/www/a2billing/customer/templates_c&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chown ­Rf www­data:www­data /var/www/a2billing/agent/templates_c&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Restart your webserver (Apache).&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Checkpoint 2: Direct a browser to the administrative web interface (http://&amp;lt;ip­&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;addr&amp;gt;/a2billing/admin) and login (check for all default passwords at the end of this&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;document).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 7. &amp;nbsp;CREATE DIALPLAN&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;The extensions.conf is the Asterisk dialplan. Calls that interact with the billing software&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;need to be handled inside of one or many a2billing related contexts.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;The calls that reach the context are processed using the a2billing.php AGI script. The&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;a2billing.php script can be invoked in many different modes (standard, did, voucher,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;callback, etc). In the example, we create two different contexts, the first context [a2billing]&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;handles all the calls from our VoIP clients. When a call arrives, any extension number _X.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(2 digits or more) reaches the script a2billing.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;The second context [did], will be used to route incoming calls back to the users. Calls to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;the clients (DID) are handled inside of the [did] context. The script a2billing.php in did&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;mode is responsible of routing the call back to one of our users.4&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Edit extension.conf &amp;nbsp;(/etc/asterisk) and add the following two extensions.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;[a2billing]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;; CallingCard application&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exten =&amp;gt; _X.,1,Answer&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exten =&amp;gt; _X.,2,Wait,2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exten =&amp;gt; _X.,3,DeadAGI,a2billing.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exten =&amp;gt; _X.,4,Wait,2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exten =&amp;gt; _X.,5,Hangup&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;[did]&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;; CallingCard application&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exten =&amp;gt; _X.,1,DeadAGI(a2billing.php|1|did)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;4 DeadAGI is a variant of AGI that you use when the channel is hung up.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 8. &amp;nbsp;CONFIGURE RECURRING SERVICES&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Recurring services are handled via the /etc/crontab&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;You can add the following cron jobs to your /etc/crontab or create a file with the jobs in&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;/var/spool/cron/a2billing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# update the currency table&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 6 * * * php /usr/local/src/a2billing/Cronjobs/currencies_update_yahoo.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# manage the monthly services subscription&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 6 1 * * php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;/usr/local/src/a2billing/Cronjobs/a2billing_subscription_fee.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# To check account of each Users and send an email if the balance is&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;less than the user have choice.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_notify_account.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# To check all the accounts and send an notification email if the&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;balance is less than the first argument.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 */6 * * php /usr/local/src/a2billing/Cronjobs/a2billing_check_account.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# this script will browse all the DID that are reserve and check if the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;customer need to pay for it&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# bill them or warn them per email to know if they want to pay in&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;order to keep their DIDs&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 2 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_bill_diduse.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# This script will take care of the recurring service.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 12 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_process.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# To generate invoices and for each user.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 6 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_invoice_cront.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# to proceed the autodialer&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;*/5 * * * * php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;/usr/local/src/a2billing/Cronjobs/a2billing_batch_autodialer.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;# manage alarms&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_alarm.php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;STEP 9. &lt;u&gt;&lt;b&gt;&amp;nbsp;CALL BACK DAEMON (ONLY FOR CALL BACKS)&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;The call back daemon is responsible of reading from the database the pool of calls stored&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;for call back and trigger those calls periodically. The daemon is written in Python. Install&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;the python­setuptools and use easy_install to install the callback_daemon&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;apt­get install python­setuptools python­mysqldb python­psycopg2&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;python­sqlalchemy&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cd /usr/local/src/a2billing/CallBack&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;easy_install callback­daemon­py/dist/callback_daemon­1.0.prod_r1527­&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;py2.5.egg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Install the init.d startup script&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; cd /usr/local/src/a2billing/CallBack/callback­daemon­py/callback_daemon/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; cp a2b­callback­daemon.debian &amp;nbsp;/etc/init.d/a2b­callback­daemon&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; chmod +x /etc/init.d/a2b­callback­daemon&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Make sure the daemon starts&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;update­rc.d a2b­callback­daemon defaults 40 60&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;If you need to remove the daemon in the future run&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;update­rc.d ­f a2b­callback­daemon remove&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;PART 3. &amp;nbsp;DEFAULT PASSWORDS AND URL&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Type Username Password&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Admin UI root changepassword&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Manager myasterisk mycode&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;MySQL database &amp;nbsp;a2billinguser a2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Database &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;mya2billing&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;Note! The first character in all usernames and passwords is a small letter (not capital).&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/7040029926249334842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/linux-requirements-and-a2billing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7040029926249334842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/7040029926249334842'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/linux-requirements-and-a2billing.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8549076333750195793</id><published>2012-07-16T05:10:00.002-07:00</published><updated>2012-07-16T05:10:25.800-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;div style=&quot;background-color: #f9f9f9; color: #666666; font-family: &#39;Lucida Sans Unicode&#39;, &#39;Lucida Grande&#39;, &#39;Droid Sans&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 20px; padding: 0px; vertical-align: baseline; word-spacing: 1px;&quot;&gt;&lt;strong&gt;Download and install FreeSWITCH and vBilling&lt;/strong&gt;&lt;br /&gt;Note: Currently, this installer is only supports CentOS &amp;gt; 6 and Debian based distros.&lt;em&gt;&lt;/em&gt;&lt;/div&gt;&lt;div class=&quot;toggle_frame&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.0976563) 0px 1px 3px; background-color: #f9f9f9; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 255, 255)), to(rgb(246, 246, 246))); border: 1px solid rgb(255, 255, 255); box-shadow: rgba(0, 0, 0, 0.0976563) 0px 1px 3px; color: #666666; font-family: &#39;Lucida Sans Unicode&#39;, &#39;Lucida Grande&#39;, &#39;Droid Sans&#39;, sans-serif; font-size: 12px; line-height: 20px; margin: 15px 2px; padding: 15px 20px 0px; vertical-align: baseline; word-spacing: 1px;&quot;&gt;&lt;h6 class=&quot;toggle red_sprite active&quot; style=&quot;background-image: url(http://vbilling.org/wp-content/themes/infocus/images/shortcodes/sprites/custom_sprite_770000.png); background-position: -101px -514px; background-repeat: no-repeat no-repeat; color: #888888; font-family: Tahoma, Geneva, Arial, sans-serif; font-size: 12px; font-weight: normal; letter-spacing: 1.6px; line-height: 30px; margin: 0px 0px 15px; padding: 0px 0px 0px 30px; position: relative; text-transform: uppercase; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;http://vbilling.org/get-started/#&quot; style=&quot;color: #888888; display: block; font-family: colaboratelight; font-size: 15px; letter-spacing: 0.4px; opacity: 1; outline: none 0px; text-decoration: none; text-transform: none;&quot;&gt;&lt;cufon alt=&quot;Download &quot; class=&quot;cufon cufon-canvas&quot; style=&quot;display: inline-block !important; font-size: 1px !important; height: 15px; line-height: 1px !important; position: relative !important; vertical-align: middle !important; width: 67px;&quot;&gt;&lt;canvas height=&quot;16&quot; style=&quot;height: 16px; left: 0px; position: relative !important; top: -1px; width: 78px;&quot; width=&quot;78&quot;&gt;&lt;/canvas&gt;&lt;cufontext style=&quot;display: inline-block !important; height: 0px !important; overflow: hidden !important; text-indent: -10000in !important; width: 0px !important;&quot;&gt;&lt;/cufontext&gt;&lt;/cufon&gt;&lt;cufon alt=&quot;and &quot; class=&quot;cufon cufon-canvas&quot; style=&quot;display: inline-block !important; font-size: 1px !important; height: 15px; line-height: 1px !important; position: relative !important; vertical-align: middle !important; width: 28px;&quot;&gt;&lt;canvas height=&quot;16&quot; style=&quot;height: 16px; left: 0px; position: relative !important; top: -1px; width: 39px;&quot; width=&quot;39&quot;&gt;&lt;/canvas&gt;&lt;cufontext style=&quot;display: inline-block !important; height: 0px !important; overflow: hidden !important; text-indent: -10000in !important; width: 0px !important;&quot;&gt;&lt;/cufontext&gt;&lt;/cufon&gt;&lt;cufon alt=&quot;Install&quot; class=&quot;cufon cufon-canvas&quot; style=&quot;display: inline-block !important; font-size: 1px !important; height: 15px; line-height: 1px !important; position: relative !important; vertical-align: middle !important; width: 36px;&quot;&gt;&lt;canvas height=&quot;16&quot; style=&quot;height: 16px; left: 0px; position: relative !important; top: -1px; width: 48px;&quot; width=&quot;48&quot;&gt;&lt;/canvas&gt;&lt;cufontext style=&quot;display: inline-block !important; height: 0px !important; overflow: hidden !important; text-indent: -10000in !important; width: 0px !important;&quot;&gt;&lt;/cufontext&gt;&lt;/cufon&gt;&lt;/a&gt;&lt;/h6&gt;&lt;div class=&quot;toggle_content&quot; style=&quot;border: 0px; clear: both; margin: 0px 0px 20px 30px; overflow: hidden; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;block&quot; style=&quot;margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;code style=&quot;font-family: &#39;Courier New&#39;, Consolas, Courier, monospace; font-size: 11px; margin-bottom: 20px; overflow: auto; white-space: pre;&quot;&gt;# wget --no-check-certificate http://goo.gl/ap7KV -O install.sh&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;code style=&quot;font-family: &#39;Courier New&#39;, Consolas, Courier, monospace; font-size: 11px; margin-bottom: 20px; overflow: auto; white-space: pre;&quot;&gt;# chmod +x install.sh&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;code style=&quot;font-family: &#39;Courier New&#39;, Consolas, Courier, monospace; font-size: 11px; margin-bottom: 20px; overflow: auto; white-space: pre;&quot;&gt;# ./install.sh&lt;/code&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #f9f9f9; color: #666666; font-family: &#39;Lucida Sans Unicode&#39;, &#39;Lucida Grande&#39;, &#39;Droid Sans&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 20px; padding: 0px; vertical-align: baseline; word-spacing: 1px;&quot;&gt;&lt;strong&gt;Please note that we prefer vBilling and all of it’s components to be installed on a fresh OS.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #f9f9f9; color: #666666; font-family: &#39;Lucida Sans Unicode&#39;, &#39;Lucida Grande&#39;, &#39;Droid Sans&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 20px; padding: 0px; vertical-align: baseline; word-spacing: 1px;&quot;&gt;You may follow the prompts from the install script and it will install and configure vBilling management interface along with all other necessary components for you.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8549076333750195793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/download-and-install-freeswitch-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8549076333750195793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8549076333750195793'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/download-and-install-freeswitch-and.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-6346462333075503074</id><published>2012-07-16T04:47:00.003-07:00</published><updated>2012-07-30T23:34:43.870-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;div class=&quot;line&quot; id=&quot;LC1&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;1. Setup EPEL Yum Repositories with newer packages and install Git:&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC2&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC4&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;2. Install YUM packages&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC5&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yum install git&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC7&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;3. Install Freeswitch : &lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC8&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC9&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Install Freeswitch pre-requisite packages using YUM&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC10&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC11&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yum clean all&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC12&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC13&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yum install autoconf automake  expat-devel gnutls-devel libtiff-devel libX11-devel unixODBC-devel python-devel zlib-devel libzrtpcpp-devel alsa-lib-devel libogg-devel libvorbis-devel perl perl-libs gdbm-devel libdb-devel uuid-devel @development-tools gdbm-devel db4-devel libjpeg libjpeg-devel libtermcap libtermcap-devel ncurses ncurses-devel ntp screen sendmail sendmail-cf gcc-c++&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC14&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: inherit;&quot;&gt;#Install Freeswitch&lt;br /&gt;cd /usr/src/&lt;br /&gt;wget https://raw.github.com/Star2Billing/newfies-dialer/master/install/install-freeswitch.sh -O install-freeswitch.sh&lt;br /&gt;bash install-freeswitch.sh&lt;br /&gt;/etc/init.d/freeswitch start&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC15&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Download latest freeswitch version &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC16&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd /usr/local/src       &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC17&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;git clone git://git.freeswitch.org/freeswitch.git&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC18&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd freeswitch&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC19&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;./bootstrap.sh&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC20&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC21&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Edit modules.conf&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC22&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Enable mod_xml_curl, mod_xml_cdr, mod_perl (If you want to use calling card features)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC23&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC24&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Compile the Source&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC25&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;./configure&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC26&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;make&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC27&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC28&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Install Freeswitch with sound files&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC29&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;make all install cd-sounds-install cd-moh-install&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC31&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Create symbolic links for Freeswitch executables&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC32&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/freeswitch&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC33&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/fs_cli&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC35&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* Configure Freeswitch Startup Script&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC36&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cp &amp;lt;ASTPP SOURCE DIR&amp;gt;/freeswitch/init/freeswitch.init to /etc/init.d/freeswitch&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC38&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;chmod 755 /etc/init.d/freeswitch&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC39&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;chkconfig --add freeswitch&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC40&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;chkconfig --level 345 freeswitch on&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC41&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC42&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;4. ASTPP Install :&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC44&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1. Download ASTPP &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC45&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cd /usr/src/&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC46&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;git clone https://github.com/ASTPP/ASTPP.git&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC47&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC48&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2. * Install ASTPP pre-requisite packages using YUM&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC50&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;yum install bzip2 cpio curl curl-devel fileutils gettext-devel libtool make nmap openssl openssl-devel libxml2 libxml2-devel php php-devel php-common php-cli php-gd php-pear php-mysql php-pdo php-pecl-json mysql mysql-server mysql-devel&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC51&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC52&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3. Goto ASTPP Folder &amp;amp; Run Make Command&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC53&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;1. cd ASTPP&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC54&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;2. make (Here you will get the instructions)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC55&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : To install ASTPP with Freeswitch below command needs to be run. (Steps will be improved later)&lt;/div&gt;&lt;strong style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;yum install perl-CPAN&lt;/strong&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC57&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Please use &#39;make install_perl&#39; to install perl packages (It will prompt you many times. So, please be here with installation process)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC58&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Please use &#39;make install_freeswitch_conf&#39; if you are using Freeswitch&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC59&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Please use &#39;make install_asterisk_conf&#39; if you are using Asterisk (Not Stable)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC60&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Please use &#39;make install_astpp&#39; to install web interface &amp;amp; configuration file.         &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC62&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4. Start Services&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC63&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1. Apache (/etc/init.d/httpd start)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC64&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2. Mysql (/etc/init.d/mysqld start)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC65&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3. Freeswitch (/etc/init.d/freeswitch start)      &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC66&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC67&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5. Setup MySQL For ASTPP&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC68&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;* Set Root Password &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC69&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;mysqladmin -u root password &#39;&amp;lt;SET YOUR PASSWORD&amp;gt;&#39;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC71&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;* Create astpp, fs(Freeswitch Database) and fscdr(Freeswitch CDR DB) databases&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC73&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;* Create new mysql for above databases&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC74&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;GRANT ALL PRIVILEGES ON astpp.* TO astppuser@localhost IDENTIFIED BY &#39;&amp;lt;SET YOUR PASSWORD&amp;gt;&#39;;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC75&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;GRANT ALL PRIVILEGES ON fs.* TO astppuser@localhost IDENTIFIED BY &#39;&amp;lt;SET YOUR PASSWORD&amp;gt;&#39;;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC76&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;GRANT ALL PRIVILEGES ON fscdr.* TO astppuser@localhost IDENTIFIED BY &#39;&amp;lt;SET YOUR PASSWORD&amp;gt;&#39;;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC77&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;flush privileges;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC79&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : If already have Freeswitch &amp;amp; Freeswitch CDR database installated with any other application and you want to use that databases then no need to install that databases from ASTPP. Just install ASTPP database and then configure your freeswitch cdr &amp;amp; freeswitch databases from System -&amp;gt; Configuration page later on once GUI starts working ;)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC81&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7. Install ASTPP Database&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC82&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cd &amp;lt;ASTPP SOURCE DIR&amp;gt;/sql&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC83&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;./install.sh &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC84&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Enter appropriate values in prompt&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC86&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8. Setup database credential in /var/lib/astpp/astpp-config.conf    &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC87&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : Default we are running astpp on 8081 port.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC88&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC89&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;You are done with GUI installation. Enjoy :)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC90&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC91&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Visit the astpp admin page in your web browser. It can be found here: http://server_ip:8081/ Please change the ip address depending upon your box. &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC92&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The default password is &quot; Passw0rd! &quot;. you do not need to enter username.    &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC93&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Note : In case of any issue please refer apache error log.    &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC94&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC95&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7. ASTPP Freeswitch Configuration    &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC96&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC97&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cd &amp;lt;ASTPP SOURCE DIR&amp;gt;/freeswitch/conf&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC99&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cp autoload_configs/xml_curl.conf.xml /usr/local/freeswitch/conf/autoload_configs/&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC100&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : Edit xml_curl.conf.xml file and change localhost to your ip or domain name.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC102&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cp autoload_configs/xml_cdr.conf.xml /usr/local/freeswitch/conf/autoload_configs/&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC103&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : Edit xml_cdr.conf.xml file and change localhost to your ip or domain name.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC105&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cp autoload_configs/cdr_csv.conf.xml /usr/local/freeswitch/conf/autoload_configs/  &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC107&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cp dialplan/default/astpp_callingcards.xml /usr/local/freeswitch/conf/dialplan/default/&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC108&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : Edit astpp_callingcards.xml file to change acccess number for calling card.  &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC110&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Enable mod_xml_curl, mod_xml_cdr, mod_cdr_csv, mod_perl in /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml file. &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC112&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Once above setting are done, restart freeswitch and check if above modules are loaded or not. If not then please load it manually.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC114&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8. Setup Cron &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC115&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC116&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Add these lines to cron:&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC118&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Hourly &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC119&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update calling cards and expire them and mark them as being empty.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC120&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@hourly /usr/local/astpp/astpp-update-balance.pl&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC122&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Daily&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC123&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Check which dids have been assigned but have not been billed yet.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC124&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update account balance if any chage is any periodic charge applied &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC125&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@daily /usr/local/astpp/astpp-update-balance.pl sweep=0&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC127&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Weekly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC128&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update account balance if any chage is any periodic charge applied &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC129&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 * * 0 /usr/local/astpp/astpp-update-balance.pl sweep=1&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC131&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Monthly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC132&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Process for DID Montly billing&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC133&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update account balance if any chage is any periodic charge applied &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC134&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 1 * * /usr/local/astpp/astpp-update-balance.pl sweep=2   &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC136&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ quarterly   &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC137&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update account balance if any chage is any periodic charge applied &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC138&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 1 1,4,7,10 * /usr/local/astpp/astpp-update-balance.pl sweep=3&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC140&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ semi-quarterly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC141&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update account balance if any chage is any periodic charge applied &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC142&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 * 1,7 * /usr/local/astpp/astpp-update-balance.pl sweep=4&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC144&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ annually&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC145&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update account balance if any chage is any periodic charge applied &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC146&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 * 1 * /usr/local/astpp/astpp-update-balance.pl sweep=5&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC148&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Daily&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC149&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Generate Invoice Daily &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC150&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@daily /usr/local/astpp/astpp-generate-invoices.pl sweep=0&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC152&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Weekly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC153&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Generate Invoice Weekly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC154&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 * * 0 /usr/local/astpp/astpp-generate-invoices.pl sweep=1&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC156&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Monthly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC157&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Generate Invoice Monthly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC158&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 1 * * /usr/local/astpp/astpp-generate-invoices.pl sweep=2&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC160&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ quarterly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC161&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Generate Invoice quarterly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC162&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 1 1,4,7,10 * /usr/local/astpp/astpp-generate-invoices.pl sweep=3&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC164&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ semi-quarterly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC165&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Generate Invoice semi-quarterly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC166&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 * 1,7 * /usr/local/astpp/astpp-generate-invoices.pl sweep=4&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC168&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ annually&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC169&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Generate Invoice annually&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC170&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;0 0 * 1 * /usr/local/astpp/astpp-generate-invoices.pl sweep=5&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC172&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Hourly&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC173&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update currency rate&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC174&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@hourly /usr/local/astpp/astpp-currency-update.pl&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC176&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Daily&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC177&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Low balance notification&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC178&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@daily /usr/local/astpp/astpp-low-balance.pl minbalance=5&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC180&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Daily&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC181&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Update calling card charges &amp;amp; status&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC182&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@daily /usr/local/astpp/astpp-callingcards-daily.pl&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC184&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# Run @ Daily&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC185&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;# (Optional) To do bulk rating of calls&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC186&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;@daily /usr/local/astpp/astpp-rate-engine.pl runtype=sweep&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC188&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Manually install the script to rotate the cdrs. &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC189&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;cp &amp;lt;ASTPP SOURCE DIR&amp;gt;/freeswitch/contrib/wasim/cdrload.pl /usr/local/astpp &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC190&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Then add the following line to crontab,&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC191&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;* * * * * /usr/local/astpp/cdrload.pl&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC194&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;=========== Additional Configuration ============&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC195&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Opensips configuration :&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC196&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;We have addup opensip version 1.7.1&#39;s opensips.cfg file.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC198&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;1. Modify subscriber table of opensips&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC199&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ALTER TABLE `subscriber` ADD `accountcode` VARCHAR( 20 ) NOT NULL&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC201&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;2. Enable opensips support in ASTPP&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC202&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1. Goto System -&amp;gt; Configuration&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC203&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2. Chagne opensips variable to 1 (1 to enable opensips support and 0 to disable. Default 0)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC204&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3. Configure opensips database and domain variables from same page (Variables : opensips_dbname, opensips_dbuser, opensips_dbhost, opensips_dbpass, opensips_domain)&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC205&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Note : If you are running opensips on seperate server then please make sure ASTPP server should have grant to access opensips database.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC207&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;3. Copy opensip.cfg file to appropriate opensips folder.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC208&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cp &amp;lt;ASTPP SOURCE DIR&amp;gt;/opensips/opensips.cfg /usr/local/etc/opensips/opensips.cfg&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC209&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;===================================================&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC212&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;ASTPP Support :&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC213&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Please email us at info@astpp.org for support.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC215&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;ASTPP Forums : &lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC216&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;http://astpp.org/index.php/forum/index&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;line&quot; id=&quot;LC218&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Refer astpp.org for more information. &lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/6346462333075503074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/installation-guide-astpp-open-source.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6346462333075503074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/6346462333075503074'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/installation-guide-astpp-open-source.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>3</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8767723037373455744</id><published>2012-07-16T03:26:00.002-07:00</published><updated>2012-07-16T03:26:29.123-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;h1 class=&quot;entry-title&quot; style=&quot;border: 0px; clear: both; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 21px; line-height: 1.3em; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Asterisk Realtime setup for A2billing 1.9.4 !&lt;/h1&gt;&lt;br /&gt;&lt;div class=&quot;entry-content&quot; style=&quot;border: 0px; clear: both; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin: 0px; padding: 12px 0px 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;It is useful to use Asterisk Realtime with A2billing. &amp;nbsp;It does not require Asterisk to reload each time when you add/remove/change a customer. &amp;nbsp;Also it allows you to share the A2billing database between multiple servers if you needed to do that. &amp;nbsp;There are some performance advantages as well. &amp;nbsp;If you need to create many customers it just makes more sense to use a database instead of putting them all in a flat text file.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;*Assume you have already installed asterisk+a2billing&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;First add the following&amp;nbsp;in /etc/asterisk/extconfig.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;iaxusers =&amp;gt; mysql,general,cc_iax_buddies&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;iaxpeers =&amp;gt; mysql,general,cc_iax_buddies&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;sipusers =&amp;gt; mysql,general,cc_sip_buddies&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;sippeers =&amp;gt; mysql,general,cc_sip_buddies&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;extensions =&amp;gt; mysql,general,cc_sip_buddiesThen add the following&amp;nbsp;in /etc/asterisk/res_config_mysql.conf&lt;br /&gt;[general]&lt;br /&gt;dbhost = 127.0.0.1&lt;br /&gt;dbname = mya2billing&lt;br /&gt;dbuser = a2billinguser&lt;br /&gt;dbpass = password (your defined password for a2billing database)dbport = 3306&lt;br /&gt;;dbsock = /var/lib/mysql/mysql.sock&lt;br /&gt;Now restart asterisk&amp;nbsp;:&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#CLI core reload&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To&amp;nbsp;test it if&amp;nbsp;working or not:&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;From Asterisk CLI&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;core show config mappings&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Should show below lines:&lt;/strong&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Config Engine: mysql&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;===&amp;gt; extensions (db=general, table=cc_sip_buddies)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;===&amp;gt; iaxpeers (db=general, table=cc_iax_buddies)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;===&amp;gt; iaxusers (db=general, table=cc_iax_buddies)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;===&amp;gt; sippeers (db=general, table=cc_sip_buddies)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;===&amp;gt; sipusers (db=general, table=cc_sip_buddies)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In the A2Billing GUI go into System settings&amp;gt;Global and search for “realtime”. &amp;nbsp;Change that setting to “yes”.&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8767723037373455744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/asterisk-realtime-setup-for-a2billing-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8767723037373455744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8767723037373455744'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/asterisk-realtime-setup-for-a2billing-1.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-1520376212433853657</id><published>2012-07-16T03:07:00.000-07:00</published><updated>2012-07-16T03:07:07.702-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;h1 class=&quot;entry-title&quot; style=&quot;border: 0px; clear: both; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 21px; line-height: 1.3em; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;A2billing 1.9.4 Installation on Centos 6 !&lt;/h1&gt;&lt;div class=&quot;entry-meta&quot; style=&quot;border: 0px; color: #888888; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;meta-prep meta-prep-author&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Posted on&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;http://blogs.siprotel.com/wpress/?p=15&quot; rel=&quot;bookmark&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #888888; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;6:48 am&quot;&gt;&lt;span class=&quot;entry-date&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;July 10, 2012&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;span class=&quot;meta-sep&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;by&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;author vcard&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;http://blogs.siprotel.com/wpress/?author=1&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #888888; margin: 0px; padding: 0px; vertical-align: baseline;&quot; title=&quot;View all posts by moderator&quot;&gt;moderator&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;entry-content&quot; style=&quot;border: 0px; clear: both; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin: 0px; padding: 12px 0px 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Installation was tested using below given&amp;nbsp;applications :&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;CentOS Linux v6&lt;br /&gt;Asterisk v1.8&lt;br /&gt;A2Billing v1.9.4&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;First&amp;nbsp;update your system&amp;nbsp;:&lt;br /&gt;#yum update&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Install additional required packages:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#yum -y install php-mcrypt perl-DBD-Pg&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Change php folder permission:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chown -R asterisk:asterisk /var/lib/php/session&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add php timezone:&lt;br /&gt;#nano +639 /etc/php.iniUncomment&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;date.timezone =&lt;/em&gt;&lt;br /&gt;Use your area time zone from here:&amp;nbsp;&lt;a href=&quot;http://www.php.net/manual/en/timezones.php&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;your timezone from this link&lt;/a&gt;&lt;br /&gt;&amp;nbsp;Restart&amp;nbsp;&lt;a href=&quot;http://www.apache.org/&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;apache&lt;/a&gt;&amp;nbsp;for the changes to take effect&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#service httpd restart&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Get a2billing source&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;cd /usr/src&lt;br /&gt;wget&amp;nbsp;–no-check-certificate&amp;nbsp;&lt;a href=&quot;https://github.com/Star2Billing/a2billing/tarball/v1-current&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #743399; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;https://github.com/Star2Billing/a2billing/tarball/v1-current&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Un-zip a2billing source:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#tar zxvf Star2Billing-a2billing-v1-current-*.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Rename the directory:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#mv Star2Billing-a2billing-* &amp;nbsp;a2billing&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Prepare MySQL database for a2billing:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;cd /usr/src/a2billing&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;(a2billing is our renamed directory)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;If you did not create a mysql root password during the asterisk install you should create&amp;nbsp;it now.&lt;br /&gt;mysqladmin -u root password ‘myrootpass’&amp;nbsp; (or any password)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Use&amp;nbsp;this password for below&amp;nbsp;commands :&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#mysql -u root -p &amp;lt; DataBase/mysql-5.x/a2billing-createdb-user.sql&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Which will create:&lt;br /&gt;Database name:&amp;nbsp;mya2billing&lt;br /&gt;Database user: a2billinguser&lt;br /&gt;Database user password: mya2bpass (or any)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Now run script to create tables and insert some basic configuration data&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-family: &#39;courier new&#39;, courier, monospace; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#cd /usr/src/a2billing/DataBase/mysql-5.x&lt;br /&gt;./install-db.sh&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Answer questions as follows:&lt;br /&gt;Enter Database Name: mya2billing&lt;br /&gt;Enter Hostname: localhost&lt;br /&gt;Enter UserName: root&lt;br /&gt;Enter Password: ‘myrootpass’&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Now check that the database and 97+ tables have been created:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#mysql -u root -p mya2billing&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;show tables;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+—————————+&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;| Tables_in_mya2billing &amp;nbsp; &amp;nbsp; |&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+—————————+&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;| cc_agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;| cc_agent_commission &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;| cc_version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;| cc_voucher &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+—————————+&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;97 rows in set (0.00 sec)&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;exit&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;cp /usr/src/a2billing/a2billing.conf /etc/&lt;br /&gt;nano /etc/a2billing.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Make sure the following parameters are set as shown.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[database]&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;hostname = localhost&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;port = 3306&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;user = a2billinguser&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;password = mya2bpass&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dbname = mya2billing&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dbtype = mysql&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create files and set permissions&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Only required if not using Asterisk Realtime.&amp;nbsp;&amp;nbsp;#chmod 777 /etc/asterisk&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#touch /etc/asterisk/additional_a2billing_iax.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#touch /etc/asterisk/additional_a2billing_sip.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#echo \#include additional_a2billing_sip.conf &amp;gt;&amp;gt; /etc/asterisk/sip_custom.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#echo \#include additional_a2billing_iax.conf &amp;gt;&amp;gt; /etc/asterisk/iax_custom.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chown -Rf asterisk:asterisk /etc/asterisk/additional_a2billing_iax.conf&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chown -Rf asterisk:asterisk /etc/asterisk/additional_a2billing_sip.conf&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Run sound installation script :&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#cd /usr/src/a2billing/addons/sounds&lt;br /&gt;./install_a2b_sounds.sh&lt;br /&gt;#chown -R asterisk:asterisk /var/lib/asterisk/sounds/&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;Add following settings to&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/asterisk/manager.conf&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;[myasterisk]&lt;br /&gt;secret=mycode&lt;br /&gt;deny=0.0.0.0/0.0.0.0&lt;br /&gt;permit=127.0.0.1/255.255.255.0&lt;br /&gt;read=system,call,log,verbose,command,agent,user&lt;br /&gt;write=system,call,log,verbose,command,agent,user&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Set up a2billing web folder:&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;#mkdir /var/www/html/a2billing&lt;br /&gt;#cp -Rf /usr/src/a2billing/admin /var/www/html/a2billing/admin&lt;br /&gt;#cp -Rf /usr/src/a2billing/agent /var/www/html/a2billing/agent&lt;br /&gt;#cp -Rf /usr/src/a2billing/customer /var/www/html/a2billing/customer&lt;br /&gt;#cp -Rf /usr/src/a2billing/common /var/www/html/a2billing/common&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chown -R asterisk:asterisk /var/www/html/a2billing&lt;br /&gt;#chmod 755 /var/www/html/a2billing/admin/templates_c&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chmod 755 /var/www/html/a2billing/customer/templates_c&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chmod 755 /var/www/html/a2billing/agent/templates_c&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Set up AGI:&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#mkdir /var/lib/asterisk/agi-bin&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#cd /usr/src/a2billing/AGI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#cp a2billing.php /var/lib/asterisk/agi-bin/&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chown -R asterisk:asterisk /var/lib/asterisk/agi-bin&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chmod 755 /var/lib/asterisk/agi-bin/a2billing.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#ln -s /var/www/html/a2billing/common/lib /var/lib/asterisk/agi-bin/lib&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add the following extensions to&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/asterisk/extensions.conf. :&lt;/em&gt;&amp;nbsp;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;*********************************************************************&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[a2billing]&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,1,Answer&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,n,Wait(1)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,n,deadAGI(a2billing.php,1)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,n,Hangup&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[a2billing-callback]&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,1,deadAGI(a2billing.php,1,callback)&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,n,Hangup&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[a2billing-all-callback]&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,1,deadAGI(a2billing.php,1,all-callback,34) ;last parameter is the callback area code&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exten =&amp;gt; _X.,n,Hangup&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;***********************************************************************&lt;br /&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Copy cron files to some permanent location such as /usr/local :&lt;/strong&gt;&lt;br /&gt;#mkdir -p /usr/local/a2billing&lt;br /&gt;#cp -R /usr/src/a2billing/Cronjobs /usr/local/a2billing/&lt;br /&gt;#ln -sf /var/www/html/a2billing/common/lib /usr/local/a2billing/Cronjobs/lib&lt;br /&gt;#chown -R asterisk:asterisk /usr/local/a2billing&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add the cron jobs to /var/spool/cron/asterisk :&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# update the currency table&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 6 * * * php /usr/local/a2billing/Cronjobs/currencies_update_yahoo.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# manage the monthly services subscription&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 6 1 * * php /usr/local/a2billing/Cronjobs/a2billing_subscription_fee.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# To check account of each Users and send an email if the balance is less than the user have choice.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 * * * * php /usr/local/a2billing/Cronjobs/a2billing_notify_account.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# this script will browse all the DID that are reserve and check if the customer need to pay for it.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# bill them or warn them per email to know if they want to pay in order to keep their DIDs.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 2 * * * php /usr/local/a2billing/Cronjobs/a2billing_bill_diduse.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# This script will take care of the recurring service.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 12 * * * php /usr/local/a2billing/Cronjobs/a2billing_batch_process.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# To generate invoices and for each user.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 6 * * * php /usr/local/a2billing/Cronjobs/a2billing_batch_billing.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# to proceed the autodialer&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;*/5 * * * * php /usr/local/a2billing/Cronjobs/a2billing_batch_autodialer.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# manage alarms&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 * * * * php /usr/local/a2billing/Cronjobs/a2billing_alarm.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# manage archive&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0 12 * * * php /usr/local/a2billing/Cronjobs/a2billing_archive_data_cront.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#autorefill&lt;br /&gt;0 10 21 * * php /usr/local/a2billing/Cronjobs/a2billing_autorefill.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;15 * * * * php /usr/local/a2billing/Cronjobs/a2billing_batch_cache.php&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add log files:&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-family: &#39;courier new&#39;, courier, monospace; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#mkdir -p /var/log/a2billing&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_alarm.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_autorefill.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_batch_process.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_archive_data.log &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_bill_diduse.log &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_subscription_fee.log &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_currency_update.log &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_invoice.log &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/cront_a2b_check_account.log &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/a2billing_paypal.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/a2billing_epayment.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/a2billing_api_ecommerce_request.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/a2billing_api_callback_request.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/a2billing_api_card.log&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;touch /var/log/a2billing/a2billing_agi.log&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#chown -R asterisk:asterisk /var/log/a2billing&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Log into the webpage&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;http://&amp;lt;ip-addr&amp;gt;/a2billing/admin&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;user: root&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;pass: changepassword&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Change password&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;After installation required some necessary setting :&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Go into System settings&amp;gt;Global list.&amp;nbsp;Change&amp;nbsp;a2billing ver&amp;nbsp; “1_6″&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Go into System settings&amp;gt;Global search for “realtime”. &amp;nbsp;Change that setting to “no”.&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Now restart asterisk:&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#asterisk -r&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#&amp;nbsp;CLI&amp;gt;core reload&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;####################################################################&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; ################################################################&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ##########################################################&lt;/div&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *****************************************&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/1520376212433853657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/a2billing-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/1520376212433853657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/1520376212433853657'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/a2billing-1.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-8268427370053897203</id><published>2012-07-14T08:10:00.001-07:00</published><updated>2012-07-14T08:10:37.611-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-6dEG0ZoPFB4/TfsT8dnvfbI/AAAAAAAAAEc/mWUXvL_cpeU/s1600/Huawei+EC150.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; color: #3366cc; float: left; margin-bottom: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;http://3.bp.blogspot.com/-6dEG0ZoPFB4/TfsT8dnvfbI/AAAAAAAAAEc/mWUXvL_cpeU/s400/Huawei+EC150.jpg&quot; style=&quot;border: 4px solid rgb(238, 238, 238);&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: #3d454c; clear: both; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br style=&quot;background-color: #3d454c; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;br style=&quot;background-color: #3d454c; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/EC150/dashboard/Mobile_Partner_11.302.09.01.539_Voice_USSD.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC150 Dashboard&amp;nbsp;&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/Varies/driver/Huawei_Driver.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC150 Driver&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/EC150/dashboard_update/Dashboard_WIN_UTPS11.030.01.04.03.B409.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC150 Dashboard Update&amp;nbsp;&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/EC150/firmware_update/EC150Update_11.104.04.00.114.B416.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC150 Firmware Update&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/8268427370053897203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/download-huawei-ec150-dashboard.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8268427370053897203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/8268427370053897203'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/download-huawei-ec150-dashboard.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-6dEG0ZoPFB4/TfsT8dnvfbI/AAAAAAAAAEc/mWUXvL_cpeU/s72-c/Huawei+EC150.jpg" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-3569373793256845761</id><published>2012-07-14T08:03:00.002-07:00</published><updated>2012-07-14T08:03:44.274-07:00</updated><title type='text'></title><content type='html'>&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;span style=&quot;color: purple; font-family: Arial, serif; font-size: large; line-height: 22px; text-align: left;&quot;&gt;&lt;u&gt;Unlock Huawei EC152&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://76.my/Malaysia/21mbps-huawei-umg1831-hspa-fastest-speed-usb-modem-stick-14-4mbps-7-2-1104-06-junelaw@2.jpg&quot; style=&quot;clear: left; color: #3366cc; float: left; font-family: Arial, serif; font-size: 14px; line-height: 22px; margin-bottom: 1em; margin-right: 1em; text-align: left; text-decoration: none;&quot;&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-Uu0kaPkaP9U/TfsUKyEWFwI/AAAAAAAAAEg/9fUkU0aMV_k/s1600/Huawei+EC152.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; color: #3366cc; float: left; margin-bottom: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-Uu0kaPkaP9U/TfsUKyEWFwI/AAAAAAAAAEg/9fUkU0aMV_k/s1600/Huawei+EC152.jpg&quot; style=&quot;border: 4px solid rgb(238, 238, 238);&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: center;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/EC152/dashboard/Mobile_Partner_11.302.09.01.539_Voice_USSD.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC152 Dashboard&amp;nbsp;&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/Varies/driver/Huawei_Driver.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC152 Driver&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/EC152/dashboard_update/Dashboard_WIN_UTPS11.030.01.04.03.B409.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC152 Dashboard Update&amp;nbsp;&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/EC152/firmware_update/EC152Update_11.104.04.01.113.B416.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei EC152 Firmware Update&amp;nbsp;&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/3569373793256845761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/unlock-huawei-ec152-download-huawei.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/3569373793256845761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/3569373793256845761'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/unlock-huawei-ec152-download-huawei.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-Uu0kaPkaP9U/TfsUKyEWFwI/AAAAAAAAAEg/9fUkU0aMV_k/s72-c/Huawei+EC152.jpg" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-1865520628229094701</id><published>2012-07-14T08:01:00.004-07:00</published><updated>2012-07-14T08:01:31.437-07:00</updated><title type='text'></title><content type='html'>&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: center;&quot;&gt;&lt;a href=&quot;http://datacardunlock.com/&quot; style=&quot;background-color: orange; color: #3366cc; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;167&quot; src=&quot;http://3.bp.blogspot.com/-Of0S8BpL9oU/TnmZeNZeB8I/AAAAAAAAAIE/oqkjp2pJQFo/s400/e1732+idea.jpg&quot; style=&quot;border: 4px solid rgb(238, 238, 238);&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1732/dashboard/Mobile_Partner_16.001.06.01.500.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1732 Dashboard (Windows)&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1732/dashboard/MAC15.001.06.00.03.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1732 Dashboard (Mac)&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1732/dashboard_update/UTPS16.001.05.00.45_MAC15.001.08.01.45_LNX15.001.08.01.45.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1732 Dashboard Update&amp;nbsp;&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1732/firmware_update/E1732Update_11.126.16.00.00.B416.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1732 Firmware Update&lt;/a&gt;&lt;br style=&quot;color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left;&quot; /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/Varies/driver/Huawei_Driver.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1732 Driver&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/1865520628229094701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/download-huawei-e1732-dashboard-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/1865520628229094701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/1865520628229094701'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/download-huawei-e1732-dashboard-windows.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-Of0S8BpL9oU/TnmZeNZeB8I/AAAAAAAAAIE/oqkjp2pJQFo/s72-c/e1732+idea.jpg" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1433207994035541360.post-4841026746522698201</id><published>2012-07-14T07:58:00.000-07:00</published><updated>2012-07-14T07:59:33.473-07:00</updated><title type='text'></title><content type='html'>&lt;span style=&quot;color: #333333; font-family: Arial, serif; font-size: medium; line-height: 22px; text-align: left;&quot;&gt;&lt;u style=&quot;background-color: orange;&quot;&gt;Unlock Huawei E1731&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: #333333; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-usmiFpkqIlc/TnroGXeyuRI/AAAAAAAAAIM/fPliCjRqUXY/s1600/airtel_1731.jpg&quot; imageanchor=&quot;1&quot; style=&quot;background-color: orange; color: #049bf2; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;http://4.bp.blogspot.com/-usmiFpkqIlc/TnroGXeyuRI/AAAAAAAAAIM/fPliCjRqUXY/s320/airtel_1731.jpg&quot; style=&quot;border: 4px solid rgb(238, 238, 238);&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1731/dashboard/Mobile_Partner_16.001.06.01.500.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1731 Dashboard (Windows)&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1731/dashboard/MAC15.001.06.00.03.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1732 Dashboard (Mac)&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1731/dashboard_update/UTPS16.001.05.00.45_MAC15.001.08.01.45_LNX15.001.08.01.45.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1731 Dashboard Update&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/E1731/firmware_update/E1731Update_11.126.15.00.00.B416.zip&quot; style=&quot;color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1731 Firmware Update&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://www.dc-files.com/files/huawei/modems/Varies/driver/Huawei_Driver.zip&quot; style=&quot;background-color: orange; color: #3366cc; font-family: Arial, serif; font-size: 14px; line-height: 22px; text-align: left; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Download Huawei E1731 Driver&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://homeschoolcare.blogspot.com/feeds/4841026746522698201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/unlock-huawei-e1731-download-huawei.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/4841026746522698201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1433207994035541360/posts/default/4841026746522698201'/><link rel='alternate' type='text/html' href='http://homeschoolcare.blogspot.com/2012/07/unlock-huawei-e1731-download-huawei.html' title=''/><author><name>Jeff Kingsley</name><uri>https://plus.google.com/104727171533259628954</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-vGHmI03CTd0/AAAAAAAAAAI/AAAAAAAAALg/bqKI0kGv1E0/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-usmiFpkqIlc/TnroGXeyuRI/AAAAAAAAAIM/fPliCjRqUXY/s72-c/airtel_1731.jpg" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry></feed>