Knowledge Base

Knowledge base of VeriTeknik

28Jan 2017

There is an easy method to find spammer php script in your home path. Directadmin logs these spammer scripts which are using phpmailer or similar things. To find this: Go to your home path cd /home Find your log files find ./ -type f -size +1k -name “php-mail.log” After this find operation, you can see […]

28Jan 2017
Physical or virtual

LINUX Version Details There is an easy way to learn GNU/Linux version in all distros. For CentOS, RedHat and other flavors you can use the code cat /etc/redhat-release Bu komut size aşağıdakine benzer bir cevap ile dönecektir: [root@veriteknik ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) Sunucunun Sanal ya da Fiziksel olduğunu nasıl anlarsınız Sunucunun […]

10Jun 2016

When i try to convert my certificates to pfx format, i encountered a problem shown below # openssl pkcs7 -print_certs -in PKCS7.p7b -out certificate.cer unable to load PKCS7 object 140083803338568:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: PKCS7 To solve this issue: 1) Copy your PKCS7.p7b file as PKCS7.crt 2) Open this file with your editor and add these […]

22May 2016

  This is a complete guide to install BackupPC on your CentOS 7 server. #Install BackupPC and prerequsities yum upgrade -y yum install epel-release yum install backuppc nfs-utils nfs-utils-lib bzip2 systemctl restart backuppc.service #Set permissions cd /usr/share/BackupPC/ chown backuppc:apache sbin/* cd /usr/share/BackupPC/sbin chmod u+s BackupPC_Admin usermod -s /bin/bash backuppc #Set firewall rule for HTTP port. […]

22May 2016

You can use IPMI tools for configuring iDrac, CIMC and similar remote management systems quickly.   –> Install IPMI Tools #  yum install OpenIPMI OpenIPMI-tools –> Start ipmi service automatically #  chkconfig ipmi on –> Print current configuration. #  ipmitool lan print 1 Set in Progress : Set Complete Auth Type Support : NONE MD2 […]

21Feb 2016

CloudLinux Resource Limit   Cloudlinux is a platform that has ability of managing resources and users in order to preserve other users resources on server.  You can simply manage your server resources by using these simple commands according to your needs.   To find user id [root@pcname~]# grep “—user—” /etc/passwd user:x:11333:503::/var/www/vhosts/ then use this […]

26Dec 2015

Before iOS revision 12.4 you were having access-lists and debug facility to get a clue about the packets passing through an interface. Now it is fairly easy to get packets and even export them as .pcap to analyse within a few easy steps. First thing to do is, create an access-list based on your requirements: […]

31Aug 2015

Most of the yum repos doesn’t include PHP5.4.X on current releases for the time being. So if you need PHP5.4.X, you need to compile and build it for your self. I decided to put all required packages to the compilation, so most probably you wouldn’t need additional packages, just a quick tip, if you need […]

12May 2015

The best thing about CentOS 7 is, it has a super easy firewall built-in. I recommend you not to disable the firewall. To check the active zones: [root@rh7 ~]# firewall-cmd –get-active-zones public interfaces: enp1s0f0 To get available service names: [root@rh7 ~]# firewall-cmd –get-services RH-Satellite-6 amanda-client bacula bacula-client dhcp dhcpv6 dhcpv6-client dns ftp high-availability http https imaps […]

08Jan 2015

Are you looking something like converting your server from virtual server to physical server? This is a complete guide to achieve this. First, we should find the storage on our hypervisor to create an actual clone of our drive and switch the power state off. In my case, i need to find the disk id […]

03Dec 2014

Most of the yum repos doesn’t include PHP5.6.X on current releases for the time being. So if you need PHP5.6.X, you need to compile and build it for your self. Advise: First of all, you should consider removing php packages from your server before compiling php, but beaware your codes will be visible till you […]

12May 2014

If you are struggling with millions of SPAM messages like me, you should rather use “find” instead of “rm” while deleting files in a folder. This method is tested to be faster than rm -rf: switch to the folder containing files, in my case: cd /var/spool/exim/ ans start deleting files by typing: find . -maxdepth […]

01May 2014

I was trying to delete a client’s all bounce emails that was caused by sending spam and rm -rf didn’t help me at this point first of all try to look at the default value of argument list for your server: type getconf ARG_MAX 2621440 And you can sipmly increase this value by typing: ulimit […]

23Apr 2014

Suddenly you realized that external SIP phones stop working without any reason, you should be avare of Cisco routers get stuck sometimes. There is a trick to solve the issue with two commands, but first of all be sure that the sip is not registered through arterisk cli: Type on your asterisk: asterisk -rvvvvv and […]

06Jan 2014

Some customers ask for a GUI on their Ubuntu Server, usually with Unity installed for a connection via TeamViewer. Although I personally don’t appreciate such methods, these usually mean that the customer has no idea on handling a Linux Server. Well it’s their problem and we should deliver their needs. After installing a fresh Ubuntu […]

11Dec 2013

Even though this seems an easy task, when you add IP’s with different gateways, you have to route the IP’s for the correct gateways. Let’s say you have two networks, This means your gateways are, and you have these IP addresses respectively :, Lets assign the 192.168.80.x IP’s to […]

25Oct 2013

Most of the yum repos doesn’t include PHP5.5.X on current releases for the time being. So if you need PHP5.5.X, you need to compile and build it for your self. Advise: First of all, you should consider removing php packages from your server before compiling php, but beaware your codes will be visible till you […]

23Aug 2013

If you need to connect to an MS Sql Server remotely from your DirectAdmin server via php, you need to rebuild PHP with necessary components. Get the latest stable release of FreeTDS and install it. cd /root wget tar -xvzf freetds-current.tgz cd freetds-dev.0.92.377 ./configure –prefix=/usr/local/freetds make make install Now we should tell Direct Admin’s […]

21Aug 2013

In our case, we were using postfix via iRedMail and every incoming mail had a delay around 7 minutes. The problem was fixed by disabling the chroot operation in the settings. Edit the file /etc/postfix/ It probably looks like this # ============================================================= # service type private unpriv chroot wakeup maxproc command # (yes) (yes) (yes) […]

21Aug 2013

This can get quite important when your mail server is blacklisted, or if you somehow want to simply change the outgoing IP address. First of all, check that you DO have another ip address on another interface at the server. Either by ifconfig or anything else. To change the outgoing IP on a postfix mail […]

03Jul 2013

If you use our LAMP installer script and want to add a new domain afterwards, we’ve created a simple script to ease up the process. This script creates a new user, adds the domain settings for Apache, adds a new MySQL Database and user, restarts necessary services. Simply get our script from here or on […]

16May 2013

If you struggled to cope with disk I/O on virtual host machines which runs on Centos or RHEL, there is a great system performance tuning tool named TUNED, comes with different profiles. for installing tuned; yum install tuned -y starting the service permanently; service tuned start chkconfig tuned on service ktune start chkconfig ktune on […]

16Mar 2013

Everything started with a few queries of thrugh open DNS servers located at our data center. Searching through the net we found that we are not the victims but a part of  uncomprimised sources of  a huge DDoS attack. A 60 byte query will turn into 50 times larger data directed to victims IP […]

22Jan 2013

Here on this article we’ll discuss some basic methods to quickly apply to the iptables service so that you can basically get things running up. First of all, there are a couple of ways to edit the iptables infrastructure. One way is to use the /sbin/iptables binary file to append each line, or you can […]