Add SPF records to all domain on Plesk server
Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by detecting email spoofing, a common vulnerability, by verifying sender IP addresses. SPF allows administrators to specify which hosts are allowed to send mail from a given domain by creating a specific SPF record (or TXT record) in the Domain Name […]
Plesk Awstats/Webstats showing HTTP 404 Error
Today one domain in plesk was showing 404 error when awstat webstat was accessed. On searching I found that it was due to that Perl support not enabled for the domain domain. And to enable Perl support on a domain Login to Plesk >> Domains >> domain.com >> Web Hosting settings >> tick “Perl” and […]
apt-get and dpkg commands on Debian and Ubuntu
The RPM commands doesn’t work on Ubuntu or Debian. For these operating systems there is apt-get and dpkg commands. Here are some of the examples to list and get package information on debian and ubuntu servers. List all packages installed server root@sts:~# dpkg –get-selections acl install adduser install apache2 install apache2-mpm-prefork install apache2-utils install apache2.2-bin […]
How to flush BIND cache
BIND or named is the most widely used DNS software on the Internet. On Unix-like operating systems it is the de facto standard. Originally written by four graduate students at the Computer Systems Research Group at the University of California, Berkeley (UCB), the name originates as an acronym from Berkeley Internet Name Domain, reflecting the […]
Change Joomla Administrator folder name
This hack works without modifying any joomla code. First of all create a folder name of your choice for e.g myhiddenadmin in the Joomla root directory and create a index.php file in it with below code <?php $joomla_admin_cookie_code=”658971532527″; // some random numbers setcookie(“JoomlaAdministratorSession”,$joomla_admin_cookie_code,0,”/”); header(“Location: /administrator/index.php”); ?> Now go to Joomla administrator directory and add the […]
Adding SSH Keys for password less login
Password less SSH login can be very useful when setting up automated backup via SSH or similar tasks. First of all generate the RSA ssh key on the server using below commands. Leave the passphrase empty. It will generate the SSH public key in file /root/.ssh/id_rsa.pub root@admin [~]# ssh-keygen -t rsa Generating public/private rsa key […]
451-The server has reached its limit for processing requests from your host.
Today one of our client complained about receiving below error when he was sending emails from his server1 to server2. SMTP error from remote mail server after initial connection: host domain.com [xx.xx.xx.xx]: 451-The server has reached its limit for processing requests from your host. 451 Please try again later.: retry timeout exceeded It’s due […]
Mitigate Slowloris attack
Slowloris is a piece of software written by Robert “RSnake” Hansen which allows a single machine to take down another machine’s web server with minimal bandwidth and side effects on unrelated services and ports. Slowloris tries to keep many connections to the target web server open and hold them open as long as possible. It […]
How to fix the missing Databases in cPanel
Sometimes you may find that the databases are missing in cPanel. But when you check it via shell, you will see that the database are present and it’s working perfectly. It’s just missing is cPanel interface. To fix it, you should run the below two commands /scripts/update_db_cache /usr/local/cpanel/bin/setupdbmap
Install Nginx PHP-FPM on CentOS
NGINX (pronounced engine-x) is an open source web server that excels at large scale web integration, application security, web acceleration, content and application delivery and PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful especially for heavy traffic sites. Below are the steps to install Nginx + PHP-FPM on […]