Categories

Articles

  CORS header ‘Access-Control-Allow-Origin’ missing

If you are a developer and need CORS enabled to run your app you can enable it adding the...

  Canonical redirect of www to non www for the same domain

Two ways to get the result you want: 1) In .htaccess file: Options +FollowSymlinks...

  Run OPTIMIZE TABLE to defragment tables for better performance

For this suggestion:Run OPTIMIZE TABLE to defragment tables for better performanceRun this...

 #1045 Cannot log in to the MySQL server iin phpmyadmin

While acessing phpmyadmin through cpanel it was asking for username and password, however...

 /scripts/cpbackup isn't working

Try rm -rf /home/cpbackuptmp/cpbackup/daily rm -rf /home/cpbackuptmp/cpbackup/weekly  ...

 502 bad gateway nginx Plesk

Log into Plesk. Go to Plesk > Tools & Settings > IP Addresses and press...

 Add New Bank Transfer Gateway on WHMCS

To add new Bank Transfer create new php file:banktransfer2.php Under whmcs/modules/gateways/Copy...

 Almalinux firewalld port adding

sudo firewall-cmd --permanent --add-port=80/tcp success sudo firewall-cmd --reload success

 Apache: Fatal Error Unable to create lock file: Bad file descriptor

500 internal server errors on PHP websites.   If you have CageFS enabled and the issue might...

 AryanIct.com standard Domain Name Server Resolvers

If you get an error about not being able to resolve the host, you need to edit your...

 Block xmlrpc.php on entire server

<FilesMatch "^(xmlrpc\.php)"> Order Deny,Allow Deny from all </FilesMatch> Or...

 Bulk cPanel DNS Zone Update

1. Back up ALL DNS Zonefiles. cp -a /var/named /var/named-backup 2. Update the Nameserver's...

 CSF Blocking Gmail SMTP email sending

Problem:Your VPS server or scripts are configured to send email using GMail's SMTP but emails are...

 CSF error : No response from subprocess

While checking CSF firewall from WHM >>ConfigServer Security & Firewall No response...

 Canonical redirect to main domain from other domain

It is a simple matter of matching %{HTTP_HOST} not equal to www.domain.com and redirecting that...

 Check /usr/tmp permissions

Run following commend to solve the issue:   chmod 1777 /usr/tmp

 Check The Number Of MySQL Open Database Connections on Linux Or Unix-like Server

MySQL show status command to see open database connections example First, connect to the your...

 Clean /tmp on Centos/cPanel server

Open SSH to your server, if SSH will not connect due to disk space full in tmp, reboot your...

 ConfigServer Security & Firewall allow port to specific ip

Login to WHM and navigate to the "ConfigServer Security & Firewall" page. On this page,...

 Configure cPanel Webmail In Gmail?

Facing problem in using webmail? Don’t worry you can use the Gmail interface to send and...

 Cpanel / SuPHP – chmod All Files 644, All folders 755

When switching from DSO to SUPHP in cpanel (a must for anyone who takes security seriously on a...

 Create OpenVPN User Account

Initially, the Access Server virtual appliance uses PAM (Pluggable Authentication Modules) to...

 Detect Outbound Server Attack

It’s not a secret and if you yourself are a linux systems administrator or a website developer or...

 Disk usage problem: WHM is showing incorrect disk usage and cpanel also

The problem happens when the disk quota file get corrupted on server. You can run the following...

 Display Bank Account Details on PDF invoice WHMCS

Add the below file to : /hub/templates/theme-name/invoicepdf.tpl # Offline payment methodsif...

 E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease' is not signed.

The apt packaging system has a set of trusted keys that determine whether a package can be...

 Error 419: Page Expired Laravel Post Request

Add the below code on index.php: <?php ob_start();

 Error: Unable to find a match: screen

Run:dnf install epel-release dnf install screen

 FIX Gmail TLS Negotiation failed, certificate invalid: SSL [Leaf certificate is self-signed

While sending an email from Gmail to your server you receive:The response was: TLS Negotiation...

 Find spam script location with Exim

Sometimes you can have a "tell a friend" feature on your website, or other type of email...

 Find the site is hosted at that IP address

curl -v -H "Host: domain.com" 192.168.1.1      <- Here enter the server IP

 Fix cPanel pcfg_openfile: unable to check htaccess file, ensure it is readable and that

1st check the permissions and ownership values on the "/home/$username" and...

 Fixed:”Function set_magic_quotes_runtime() is deprecated in PHP 5.3.0”

Problem with set_magic_quotes on Application with Code Igniter. The problem is “Function...

 Git failure error while updating cPanel or yum update?

Error details ---> Package kernel.x86_64 0:2.6.32-642.el6 will be erased --> Finished...

 Got a packet bigger than 'max_allowed_packet' bytes"

If you are getting this error via root SSH access, please use the following command to...

 HELO/EHLO with proper DNS Windows Server

I believe the main settings you're trying to set would need to be done through the MailEnable...

 HOSTNAME resets after reboot Centos 7

On CentOS7, changes to your hostname with the hostname command won't persist upon reboot....

 Hostname resets after reboot CENTOS 7.8

On CentOS7, changes to your hostname with the hostname command won't persist upon reboot....

 How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 6

About LAMP LAMP stack is a group of open source software used to get web servers up and running....

 How To Install and Configure an OpenVPN Access Server on CentOS 6.5

VPN, or virtual private network, is a secure method of connecting remote internet resources...

 How to Change the RDP Port for a Windows Server

Change the RDP port by modifying the registry manually Press “Windows + R” to open Windows...

 How to Configure Let’s Encrypt SSL on Apache (Ubuntu 16.04 / 17.10)

Prerequisites You should be using a non-root user with sudo privileges as explained in Ubuntu...

 How to Fix: Webmail - squirrel, horde and roundcube doesn't work . Fails to load

The domain is missing from /etc/userdomains - ran /scripts/updateuserdomains --force to fix...

 How to Install Red5 on cPanel/WHM (CentOS) server

Installing Red5 on cPanel/WHM CentOS and RedHat Linux serversFollow the instructions and Red5...

 How to Redirect IP to a domain name

You can achieve this with a rewrite in an htaccess file in your website’s directory.You will want...

 How to Remotely Connect to the MySQL Database in cPanel?

Before using either of the following techniques, you will need to open up port 3306 in your...

 How to Stop Windows Server Auto Shutdown

If your Windows Server license has expired, or your server doesn't have one, the server may...

 How to change SSH port

You can change the ssh port by following commendnano /etc/ssh/sshd_configChange#Port 22toPort *...

 How to clear /tmp on Centos/cPanel server

First wee need to install tmpwatch. yum install tmpwatch -y once tmpwatch is installed run...

 How to clear Error Log of a cPanel Account.

User the below code to clear Error Log:Replace User with Username:Code:for i in `find...

 How to clear and find error_log cPanel Server

You can try searching for them with a command such as: Code: find /home -name 'error_log'...

 How to clear laravel.log file

Run the below code on the command:   truncate -s 0 storage/logs/laravel.log

 How to edit cpanel crontab

You have to do it from root shell via SSH using the command:crontab -eThis will throw you into an...

 How to edit my.cnf

To edit a file, first make a back-up.cp /etc/my.cnf /etc/my.cnf.oldNow open it in nano:nano...

 How to enable mod_remoteip cPanel ea-nginx

1) Install mod_remoteip.   A) Run the following command as root.   yum install...

 How to fix Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone:

1: Create .htaccess file inside your public_html folder, OR the folder in which you have...

 How to fix Fatal! Write Failure: /etc/valiases/

Fatal! Write Failure: /etc/valiases/[sub.whmmainhost.tld]. Ignore any messages of success this...

 How to fix failed to retrieve directory listing error in FileZilla FTP cPanel

You can easily fix this error by going into the site manager and adjusting your connection...

 How to fix ini_set() has been disabled for security reasons

1. Create php.ini file inside your public_html folder, OR the folder in which you have...

 How to fix: Getting an SMTP 451 error when trying to send out email

Getting an SMTP error 451 Temporary local problem - please try later error when trying to send...

 How to generate PFX from crt Linux.

You need to run: openssl pkcs12 -export -out domain.name.pfx -inkey domain-name.key -in...

 How to install KVM on CentOS 7 / RHEL 7 Server?

Kernel-based Virtual Machine (KVM) is virtualization software for CentOS or RHEL 7. KVM turn your...

 How to install PHP selector on cPanel with CloudLinux?

If your server installed cPanel with CloudLinux and you will see the below error message atcPanel...

 How to install Red5 Media Server on CentOS VPS and Dedicated Servers

1. Install Java using yum. (The -y flag provides a ‘yes’ answer to all prompts.)...

 How to install phpMyAdmin on Centos 6

Install phpMyAdmin Now, we are ready to install the phpMyAdmin package. This software is not...

 How to remove .php, .html extensions with .htaccess

 The steps to remove file extensions are: Login to your cPanel account. Go to File Manager –...

 How to restart cron daemon

You have to do it from root shell via SSH using the command:/etc/init.d/crond restart

 How to restore a Plesk Panel backup via SSH

Run below command:   # plesk bin pleskrestore --restore /root/backup_info_1712180545.xml.tar...

 How to restore larger than 2 GB Plesk backup?

- In the backup settings allow "local FTP storage space" on your system.- Create a "fake"...

 How to transfer cPanel accounts from one server to another cPanel server

The server we are transferring the accounts from : OLD SERVERThe server to are transferring...

 How to use Rescue Mode in any VPS

1. List system partitions:root@sysresccd  fdisk -l.... Device     Boot     Start         End...

 Identifying the php.ini values used

Create a new cronjob that runs every minute with a command similar to the one below: php -i |...

 Importing Databases via SSH

Using Command Line (SSH) to import your MySQL database The file must be in .sql format. It can...

 Install Nginx RTMP Ubuntu

Nginx RTMP Protocol Nginx-RTMP is an open source extension module for the Nginx web server that...

 Installing ImageMagick

This is a quick howto on installing ImageMagick on a CPanel Server using the CPanel provided...

 Installing Staytus from scratch

To begin, you'll need a server running Ubuntu 16.04. For this tutorial, we're going to assume...

 Magento install error - Exception printing is disabled

Here is a known error which can occur when installing Magento: There has been an error...

 Manage a database hosted in Plesk using SQL Server Management Studio (SSMS)

To connect to an SQL Server with a custom port, specify this port after a comma: 203.0.113.2,1433...

 Microsoft Office Direct Download Links 2021, 2019, 2016, 2013, 2010

Here you will find all official and original download links for Microsoft Office from Microsoft...

 Moving from one SolusVM to other SolusVM

To move using vzdump 1st install it run the below:yum install vzdump If your master has...

 MySQL Optimization cPanel

The best way to get optimization recommendations for your specific hardware resources and...

 MySQL backups with mysqldump

The basic method to backup databases is to use the mysqldump utility. Usage of this utility is...

 Nginx-RTMP on Ubuntu 14.04

Updating Ubuntu and Installing Nano sudo apt-get update sudo apt-get upgrade sudo...

 OVH KVM Server Setup

We need to mark out all OVH Repo before we start building KVM:   [root@asia ~]# cat...

 OpenVPN ACCESS SERVER INSTALLATION via Repository CENTOS 6 and 7, 64 BITS

CENTOS 7, 64 BITS The recommended method to install the OpenVPN Access Server is to...

 Outgoing Tracking HTTP cPanel

If you run a "ps faux" look for any processes by that name, or any suspicious PHP processes (or...

 Plesk Linux Backup Manually Restore

please make sure that if you use a FTP / SFTP-client to upload a backup-file ( i.e.:...

 Plesk Panel Websites SSH Directory

Code: /var/www/vhosts/%domains.com%/ Want to change or edit the Plesk default page? Quote:...

 Plesk SSH Terminal: connect to host 127.0.0.1 port 9999: Connection refused

Direct change of SSH service port number was not applied for Plesk SSH Terminal extension....

 Remove Default Sort in WooCommerce and ‘Showing All Results’ Notice

In an e-commerce environment using WooCommerce when there is only a few products to sell, it is...

 Remove Joomla! is Free Software Text from the Admin Area

To change or remove the "Joomla! is Free Software released under the GNU/GPL...

 Removing ACL List from WHM

If you need to remove some ACLs/lists from the dropdown that you have already created.Open a SSH...

 Reset default permissions cpanel accounts

Running these from SSH one by one should work;for CPAccess in `ls -A /var/cpanel/users`; do chown...

 Restore default and disabled features WHM

Feature lists are stored in plain text files in /var/cpanel/features 1st delete them, so you...

 SSH Warning MAC perl warning setting locale failed

Open Terminal and Run: touch ~/.bash_profile; open ~/.bash_profile     and paste the...

 SSL NGINX for SolusVM 1.x

Manual Setup In most cases you will already have a valid certificate for your master which...

 Scanning for Rootkits with chkrootkit

Up-to-date and secure installations, firewalls, limited ssh access and strong passwords are all...

 Server Load Issue ModSecurity persistent IP database size alert

ModSecurity persistent IP database (/var/cpanel/secdatadir/ip.pag) size is 26.46GB...

 Server email problem not receiving error log {perl{enforce_mail_permissions}}}}}}

/etc/exim.pl had 000 for permissions thus exim was not able to access that file. Change it to 644,

 Softaculous does not apper in cPanel

Softaculous is the great feature available in Cpanel which has replaced with Fantastico. It...

 SolusVM VPS Offline

Please reboot into openvz kernel and follow the instructions given below then create a new...

 SolusVM getting a showing Node Down after

 SolusVM getting a showing Node Down after update

Connect to the SolusVM Master/slave server over SSH. Move out you the current system PHP binary:...

 Sorry, a DNS entry already exists, please delete it first (from all servers in the dns cluster) - WHM

When trying to add a new domain in WHM, you may get an error like this. Account Creation Status:...

 Start and Enable Firewalld on CentOS 7

Enable Firewalld To enable firewalld, run the following command as root: systemctl enable...

 Stream Live HLS Video Ubuntu Nginx

The first step is to read and set up your server "Nginx-RTMP on Ubuntu 14.04".  Instead of...

 Test Internet Speed of Your VPS/Server

How to Install SpeedTest CLI Step 1 – Login to your VPS as root or any user with superuser...

 That username already exists on the system WHM

The domain being in the named.conf file will prevent a domain from being added in which case you...

 The installation process detected that the server was in runlevel 5 cPanel

The server must be in runlevel 3 before the installation can continue. This tutorial will help...

 Tomcat: Easy apache 4 How to add/enable on cPanel.

INSTALLING TOMCAT ON CPANEL SERVER PART A We can install tomcat on cPanel server...

 Transferring Wordpress site from one domain to other domain

 Uninstall Apache service

CentOS Uninstall Apache service Type the following command to remove all httpd* and...

 Update CloudLinux license key

On new server i was using CloudLinux 30 day trail key. To change CloudLinux Licence key, run...

 VM Setup

Choose fastest mirror The another option to speed up DNF is to select fastest mirror from the...

 WHM Cron Location

Location:   /var/spool/cron/USERNAME

 WHMCS mass changing SQL statement from one server to another

An SQL statement like this will change all clients from one server to another:     UPDATE...

 What does "406 Not Acceptable" mean?

Most likely, you are reading this article because you received an "Access Denied" error or a "406...

 What is php.ini ?

The php.ini file and changing PHP Settings The php.ini file is a special file for PHP and...

 What is the php.ini file? and where is it?

The php.ini  file is an important configuration file of your PHP server.Create test.php file...

 Whitelist a process on CSF

You can certainly make use of the file /etc/csf/csf.pignore which can be used to whitelist either...

 Windows Server 2022 Evaluation (Eval) to Full Version

Download Windows Server 2022 Evaluation English from...

 Windows Update Disable

Disable via registryThe Windows Registry is a great way to deactivate the update in Windows 10....

 WordPress ModSecurity Rules

These rules will block access for the offending IP address for 5 minutes upon 10 failed login...

 WordPress ModSecurity Rules

These rules will block access for the offending IP address for 5 minutes upon 10 failed login...

 WordPress Unknown Collation utf8mb4_unicode_520_ci Solution

If you're importing or migrating your WordPress database to a server that has an older version of...

 You have a local DNS server running but do not appear to have any recursion restrictions set

You have a local DNS server running but do not appear to have any recursion restrictions set....

 cPane / WHM: Security Advisor - Current kernel version does not match the kernel version for boot

Try to reinstall the latest kernal sometimes on CloudLinux initrd img is missing.yum reinstall...

 cPanel / WHM replace php.ini file of users with root

You can run below code: find .-name "boom.txt"-exec cp ~/replace.txt {} \;  

 cPanel Installation and configuration of ea-Tomcat85

Command line tip: In the examples provided below, $username represents the username associated...

 cPanel License Update

Login to root via SSH and run:/usr/local/cpanel/cpkeyclt

 cPanel Outbound Server Attack Detection

First, let’s deal with the server requirements: 1) Considering that the server is running cPanel...

 cPanel SSH Commands List

List of commands for cPanel. Note that this is for SSH.  Restart chkservd:...

 cPanel custom DNS Zone Templates directory location?

The DNS Zone templates are located in /var/cpanel/zonetemplates

 cPanel delete all mail queue

To display the number of emails in the queue we use the command exim -bpcSo to remove all...

 cPanel increase of disk space usage happening, and it is gone shortly after restarting the environment

The rise in space is coming from your MySQL temporary tablespace that is enabled. Non-compressed,...

 engintron dedicated ip redirect to default cpanel page

In custom_rules add this: if ($host ~ "uoool.layerserver.com") { set $PROXY_DOMAIN_OR_IP...

 how to disable ping on linux servers

What is a ping: Usually a ping is used to check if a machine is up and to check the network...

 how to force cpbackup /scripts/cpbackup isn't working

/scripts/cpbackup --force

 root @hostname cPanel / WHM emails are frozen

Code: 2016-08-30 02:45:48 1beNoq-0002Ca-Th <= root@myvps.myhostname.com U=root P=local...