Skip to main content

Posts

Showing posts from April, 2023

phpsysinfo installation Centos 7

  ! # /bin/sh # ################################################ # Server Configuration for Centos 7 # # ################################################ # # updating packages yum update -y # # installing dependencies yum install unzip -y yum install nano -y yum install sed -y yum install screen -y # # installing HTTP Server (Powered By Apache) yum install httpd mod_ssl -y # # starting HTTP Services  systemctl start httpd

Code codeigniter Only variables should be passed by reference

  A PHP Error was encountered Severity: Notice Message: Only variables should be passed by reference Filename: codeigniter/Common.php Line Number: 148 open :- /system/codeigniter/Common.php comment line number 148 and add "$objects[$class] = new $name();" //$objects[$class] =& instantiate_class(new $name()); $objects[$class] = new $name(); return $objects[$class]; Save file and refresh.

HOW TO: Install the Free G729 Codec for Asterisk (ViciDial and GoAutodial)

 Installing the Free G729 Codec for Asterisk This tutorial will let you install the G729 Codec on an Asterisk installation in under 5 minutes. 1. Login to your SSH and go Navigate to the codecs directory: cd /usr/lib/asterisk/modules 2. Download the codec A. Codecs are provided as binary .so files, you can find the archive at http://asterisk.hosting.lv/#bin B. Take care of the following when picking up one of the files, they depend on your hardware/software: Processor Architecture: Check the kernel type installed on your system (using “uname -a” ) Asterisk Version: As you can see there is codecs for Asterisk 1.2, 1.4 and also 1.6 The most used ones are the following: http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium.so http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-x86_64-core2.so C. Download Command: [root@Machine modules]# wget http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium.so NOTE: Notice that we are in the modules directory 3. Rename

How To Install Fail2Ban on CentOS 7 / Debian 11

 What is Fail2Ban? Fail2Ban is a log-parsing application that  protects Linux virtual server host against many security threats, such as dictionary, DoS, DDoS, and brute-force attacks . It works by monitoring system logs for any malicious activity and scanning files for any entries matching identified patterns. How To Install Fail2Ban on CentOS 7 / Debian 11 ####For CentOS 7  yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install fail2ban ##### ##For Debian 11 apt-get update apt-get -y install fail2ban cp /etc/fail2ban/jail.local /etc/fail2ban/jail.local_bkp nano /etc/fail2ban/jail.local ##Copy paste## ####Copy from here##### [DEFAULT] # Ban hosts for one hour: bantime = -1 ignoreip = 192.168.1.201 127.0.0.0/8 # Override /etc/fail2ban/jail.d/00-firewalld.conf: #banaction = iptables-multiport [sshd] enabled  = true action   = iptables-allports[name=sshd, protocol=all] sendmail-whois[name=Fail2ban-SSH-192.168.1.201,sender=192.168.1.201 ,dest=&qu

How To Install Monit on CentOS 7 / Debian 11

What is Monit? Monit is a free, open-source process supervision tool for Unix and Linux. With Monit, system status can be viewed directly from the command line, or via the native HTTP web server. Monit is able to do automatic maintenance, repair, and run meaningful causal actions in error situations. How To Install Monit on CentOS 7 / Debian 11 ##For CentOS 7  yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install monit ## ##For Debian 11 apt-get update apt-get -y install monit cp /etc/monit/monitrc /etc/monit/monitrc_bkp nano /etc/monit/monitrc ##Copy paste## ####Copy from here##### ############################################################################### ## Monit control file ############################################################################### ## ## Comments begin with a '#' and extend through the end of the line. Keywords ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.

How to Scratch install instructions for Vicidial on OpenSuSE Leap 15.3 with Asterisk 16.17.0

Scratch install instructions for Vicidial on OpenSuSE Leap 15.3 with Asterisk 16.17-0 instead of Asterisk 13 and wanted to share the instructions step by step.    zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:Factory/openSUSE_Leap_15.3/devel:languages:python:Factory.repo zypper ar http://download.opensuse.org/distribution/leap/15.3/repo/oss/ openSUSE-Leap-15.3-Oss zypper ar http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Leap_15.3/ openSUSE-Leap-15.3-PERL zypper ar http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Leap_15.3/ openSUSE-Leap-15.3-PHP-Applications zypper ar http://download.opensuse.org/update/leap/15.2/oss/ openSUSE-Leap-15.3-Update zypper ref zypper up reboot  (After reboot if u get error then zypper ref first)   zypper in dahdi* zypper in libpri* zypper in libedit* zypper in net-snmp* zypper in libjansson4* zypper install sqlite3-devel mariadb-server mariadb make patch gcc gcc-c++