Add password protection to the FreePBX splash page /var/www/html
Submitted by admin on Tue, 06/10/2008 - 14:25
Unfortunately this sort of defeats the purpose of using the
'Admin' module in FreePBX as it adds an additional log in step
beforehand. If you use the same username/password you don't need to log
into the admin section again. This is probably the best solution until
the FreePBX team adds this security to their Admin module. htpasswd /usr/local/apache/passwd/wwwpasswd NewUserName Apache will prompt you for a new password for the user name you've just indicated New password: Apache will prompt you to retype your new password Re-type new password: Apache will then confirm the new user Adding password for user NewUserName Now you have to add the user name you've just created to the "httpd.conf" file. To edit that file in "nano" type: nano /etc/httpd/conf/httpd.conf Now
do a CTRL-W to search for "AuthUser" and you'll find the area where all
the users are listed (for example: "maint", your AMP user). If you
don't find any try around line 587 right after the cgi-bin
"<Directory....." entry.
Now add the following lines: #Password protect the FreePBX Splash Page /var/www/html <Directory /var/www/html> AuthType Basic AuthName "Restricted Area" AuthUserFile /usr/local/apache/passwd/wwwpasswd Require user NewUserName1 NewUserName2 NewUserName3 yaddayaddayadda </Directory> To delete an Apache user, type in the following and then remove the user from the "httpd.conf" file. htpasswd -D /usr/local/apache/passwd/wwwpasswd NewUserName Then restart apache. /etc/init.d/httpd restart
Optional installation of Octasic Softecho
Submitted by admin on Tue, 06/10/2008 - 14:27
cd /usr/src wget ftp://ftp.octware.net/pub/octvqe8/32-bits/latest/octvqe8-01.0x.00-pr-<arch>.tgz wget ftp://ftp.octware.net/pub/octvqe8/32-bits/latest/octvqe8-01.0x.00-pr-base.tgz tar zxvf octvqe8-01.0x.00-pr-<arch>.tgz tar zxvf octvqe8-01.0x.00-pr-base.tgz cd octvqe8-01.0x.00-pr cp -rf octvqe /usr/src/zaptel/kernel cd /usr/src/zaptel/kernel/octvqe amportal stop make; make install killall octvqed wanrouter stop rmmod zttranscode rmmod zaptel rmmod octvqe depmod modprobe octvqe cd /usr/src/octvqe8-01.0x.00-pr cp octwareec.h /usr/src/zaptel/kernel cd /usr/src/zaptel/kernel nano zconfig.h Look for the line that starts with "#define ECHO_CAN" and edit it to read #define ECHO_CAN_OCTWARE (Cntl-x, y, ENTER) nano zaptel-base.c search for the section that starts with "/* Echo cancellation */" There will be several similar lines defining the various echo cancellors. Add these lines. #elif defined(ECHO_CAN_OCTWARE) #include "octwareec.h" (Cntl-x, y, ENTER) cd /usr/src/zaptel make clean; make; make install modprobe zaptel cd /usr/src/octvqe8-01.0x.00-pr wget ftp://ftp.octware.net/pub/register/32-bits/latest/register32 chmod 500 register32 chown root.root register32 If using a sangoma A200 with included softecho licenses run "wanrouter start" ./register32 Follow activation instructions cd /usr/src/zaptel/kernel/octvqe cp octvqed /usr/sbin/ cp octvqed.init /etc/rc.d/init.d/octvqed chown root.root /etc/rc.d/init.d/octvqed chmod 755 /etc/rc.d/init.d/octvqed chkconfig --add octvqed chkconfig octvqed on cp octvqed.conf /etc Edit octvqed.conf to configure the echo canceller. reboot and verify the echo canceller is working cat /proc/octvqe
Install 3DM2 software for 3WARE SATA RAID card
Submitted by admin on Tue, 06/10/2008 - 14:28
Download and untar the 3DM2 software. cd /usr/src/ tar zxvf 3DM2-Linux-9.3.0.7.tgz Install 3DM 2: ./install.3dm install Select Option 0 for web GUI All defaults except do NOT limit connections to localhost 127.0.0.1 cd /tmp/3ware Copy file 3dm2.redhat to /etc/rc.d/init.d/3dm2 cp 3dm2.redhat /etc/rc.d/init.d/3dm2 Type: chkconfig --add 3dm2 Type: chkconfig --add --level 345 3dm2 Change the operating mode by typing: chmod +x /etc/rc.d/init.d/3dm2 Change the permissions on the 3dm2 configuration file: chmod 600 /etc/3dm2/3dm2.conf Start the 3DM 2 daemon by typing: /etc/rc.d/init.d/3dm2 start Open the web browser and go to https://localhost:888 Default user and administrator password is: 3ware Disable
write cache on the controller once all the software is installed. This
improves reliability in the event there is a power interruption while
data is being written to the hard drive.
|