fbpx

[Solved] Temporary failure in name resolution

DNS errors such as temporary failure in name resolution can easily cripple your server. You will not be able to install any yum packages, you will even not be able to ping google.com, because as you can see this is a name resolution error, which means your server can not resolve domain names to their respective IP Addresses (if you know about DNS, you will know that this is something the whole internet relies on).

 

In this article we will see how to resolve temporary failure in name resolution error, we will discuss various reasons and their respective solutions.


Missing DNS Server IPs

 

Every server needs IP of DNS servers to which they can send their DNS queries. So if IPs of DNS servers are not configured then your server doesn’t know how to resolve domain names to IP Address thus you will end up getting temporary failure in name resolution.

 

In UNIX based system (Linux servers). DNS servers are usually configured in a file called /etc/resolv.conf. So if you don’t have this file or it is empty then you can not resolve domain names, make sure to create one and put the following contents in it:

 

nameserver 1.1.1.1
nameserver 8.8.8.8

 

Network Manager

 

Recently most of the Linux based servers are shipped with NetworkManager. NetworkManager help your connect your server automatically to the internet, for this task network manager auto-generates some configuration files. NetworkManager reads your interface file (eth0 or ifcfg) and then auto-generates /etc/resolv.conf file.

 

Now if you have not defined DNS servers in your /etc/sysconfig/network-scripts file, then /etc/resolv.conf will remain empty, thus you end up getting temporary failure in name resolution error. You can also fix this issue by just populating /etc/resolv.conf file as described above.

 

Also, make sure that in your /etc/sysconfig/network-scripts file set NM_CONTROLLED=no. So that NetworkManager will not update your /etc/resolv.conf file again.

Having issues installing packages on Ubuntu

 

You might see something like

 

Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving ‘security.ubuntu.com’
Err:2 http://dl.google.com/linux/mod-pagespeed/deb stable InRelease
Temporary failure resolving ‘dl.google.com’
Err:3 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:4 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:5 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:6 https://repos.sonar.digitalocean.com/apt main InRelease
Could not resolve host: repos.sonar.digitalocean.com

 

This is an example of temporary failure in name resolution error, as apt can not resolve these mentioned domains to their IP Address. Make sure to allow these ports in UFW using the command below :

 

sudo ufw allow out 53,113,123/udp


Restrictions in your Firewall

 

There might also be a firewall restriction preventing your DNS queries. That is why we always recommend installing CyberPanel for free, CyberPanel will open all default ports for you, it will also help you run a super-fast website. Install CyberPanel for free using the install guide. You can also learn how CyberPanel will help you run the super fast website by reading our OpenLiteSpeed vs NGINX article.

 

Let see if this is actually a firewall error by stopping the firewall.

 

Firewalld

 

systemctl stop firewalld

 

Or CSF

 

csf -f

 

Now test and see if your issue is resolved if so, it means that your firewall is preventing your DNS queries.

 

Fix for Firewalld

 

You can add port 53 (UDP) and 43 (whois) to your firewalld. Following commands can be used

 

firewall-cmd — permanent — add-port=56/udp

firewall-cmd — permanent — add-port=43/tcp

 

This will open DNS related ports in FirewallD. If you are using CyberPanel you can easily go to CyberPanel firewalld interface and add these ports without going to CLI.

 

Go to -> https://<IP Address>:8090/firewall/

 

There you can easily open these two ports.

 

Fix for CSF

 

Open file /etc/CSF/csf.conf, then find the line containing TCP_IN and TCP_OUT then add your desired ports. Once your desired ports are added simply restart CSF so that your changes can take effect

 

csf -r

 

To remove any ports, you can just remove those ports from same lines and restart CSF.

 

Again if you are using CyberPanel and you have installed CSF (this will disable Firewalld interface). You can easily go to -> https://<IP Address>:8090/firewall/csf

 

From there you can add your ports and CyberPanel will take care of everything.


Wrong permissions on /etc/resolv.conf file

 

In some rare cases it is possible that your resolver file have wrong owner or permissions, execute following commands to implement correct permissions

 

chown root:root /etc/resolv.conf

chmod 644 /etc/resolv.conf

 

This should fix any permissions related issues with the resolver file.


Conclusions

 

I hope by now you have a general idea of what actually is a  temporary failure in name resolution error, because to fix any error we first need to know what actually it is. Then we’ve also discussed various ways to fix this error in different situations.

 

If you are a system administrator, then the first rule to solving any problem is stay calm and debug the problem. However, if you don’t have much time and looking for experts to manage your server, you are in the right place, you can hire our managed vps service. We offer 3 days free trial (no credit card required).

[Solved] Disk Quota Exceeded

Disk Quota Exceeded is very scary and common linux error in web hosting servers. When this happen you as a website owner may fail to restart mysql database, fail to upload file or even failed to restart your web server if it is down.

 

Generally it looks like you exceeded your alloted disk limit or your overall disk space is full as the error message is very obvious (Disk Quota Exceeded) meaning you reached the limit of your disk quota assigned to you.. Due to which various services like MySQL database and web server can’t start as they need to create files for their proper functioning. We at CyberHosting use CyberPanel control panel, if you are using CyberPanel you can easily see disk space usage on your dashboard after your login.

 

We recommend CyberPanel for self-managed VPS as well, because it helps you to manage most of the things within few minutes, otherwise you could be spending lots of time doing the same thing. You can start using CyberPanel for free with just one install command, for more details visit the installation page.


Why you see Disk Quota Exceeded error?

 

If you are a website owner, and running a managed or self-managed VPS. There are 99% chances that you must have configured some sorts of backups and logging as well (logs generated by different application, to debug any issue in case something funny happens later). So there are some example of files that could be using extensive disk space and you don’t know about them:

 

  • Large old backup files residing on the server that you have not deleted.
  • Large log files from web server or any other applications that you have not deleted after they are rotated by the application.
  • Some un-used applications or staging setups that you did during developent.
  • Spam or deleted mail folders still containing large amount of emails that you don’t know off.

 

All these files could occpuy large amount of space ending up causing disk quota exceeded error.


Lets first find out large directories and files

 

We will first try to find out large files and directies in your server, you can then decide if those files  are safe to be deleted, ending up giving you more space.

 

cd /home

du -hs * | sort -rh | head -20

 

These command will print out large files and directories under /home directory of your server. You can then figure out what directories can possibly contain files that are not needed. Similary you can run this command under various directories such as /var/log

 

Make sure you don’t something which is important, and if you don’t know what you are doing, then it is better you let our experts do the work by hiring our managed vps or monthly support package we offer 3 days free trial (no credit card required).

 

If using CyberPanel

 

As mentioned above we recommend CyberPanel for managing your day to day server tasks, so if you have already  decided to use CyberPanel. Look for following directories as they must be containg large backup files that you won’t need.

 

/home/domain.com/backup

/home/backup

/usr/local/lsws/logs


Exceeded number of inodes (file entries) supported by your choosen file system

 

There is a possibility that you still have enough disk space left, but you reached inodes limit end up giving disk quota exceeded. First make sure you that you have enough space left.

 

Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 6.9G 19G 28% /

 

You can see that disk space is only 28% used. Now check if you reached inodes limit.

 

df -i

Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vzfs 2000000 2000000 0 100% /

Now this means you have reached 100% of your inode usage. It is time that you delete smaller files that are no use to your applications. For example find large number of small files under /var

 

find /var -type d -size +256k

 

Similaly you can find small files under /home as well, and delete files to resolve disk quota exceeded error. Some type of files that you can easily delete are:

 

  1. Cache files generated by servers (LiteSpeed Server use disk for cache). Incase of LiteSpeed cache folder is created under home of each user.
  2. Sessions files generated under /tmp and not being deleted.
  3. Catch all email inbox may have 1000s of emails you don’t need to keep, so they can be easily discarded.

 


Easy way to clear some space if you are using CyberPanel

 

As adviced by us, if you are now using CyberPanel, there are some easy way to free up disk space safely.

 

Remove OpenLiteSpeed Cache folder

 

rm -rf /usr/local/lsws/cachedata

 

Remove Cache folders when using LiteSpeed Enterprise

 

rm -rf /home/domain.com/lscache

 

You can do this for every domain. (By replacing domain.com with your domain)

 

Delete Backups

 

rm -rf /home/domain.com/backup/*.tar.gz

 

You can do this for every domain. (By replacing domain.com with your domain)

 

You can also do

 

rm -rf /home/backup/*

 

Remove old CyberPanel versions

 

rm -rf /usr/local/*.tar.gz


Conclusion

 

We’ve discussed many reasons and their fixes related to disk quota exceeded error.  If you are still stuck at some point and don’t have much time or expertise to fix this issue, you can contact us to get help.

 

Sometimes it may just be a limitation imposed by any control panel you are using, and you could be losing important business emails due to this. So while you are fixing and debugging the cause, it is better to increase disk limit size for your accounts or mailboxes, so that you won’t lose important stuff.

 

How to resolve “localhost connection refused”?

When on windows you usually use putty to connect to remote SSH servers or terminal when on Linux. While connecting sometimes you can get error such as localhost connection refused on putty or your Linux terminal. Now, this can be very annoying as you can’t get to SSH of your remote server and perform your tasks.

 

This problem can be from the server or client-side. In this tutorial, we will see probable causes of this error and how to fix them. If you are using our managed vps, then you just have to contact us via ticket or live chat and we should fix this for you.

 

Let’s continue and see reasons for this error and how to resolve localhost connection refused.


Possible error messages on Putty or Linux Terminal

 

We will first see possible error messages that you will see.

 

In putty

 

Putty Fatal Error
Network Error: Connection Refused

On Linux Terminal

 

ssh: connect to host 51.xx.xx.xx port 22: Connection timed out

 

Now the connection to the server is properly routed, but the server is not accepting your connection for many reasons that we will discuss below.


Reasons and Fixes for localhost connection refused

 

We will now discuss reasons and fixes for this error one by one.

 

1. SSHD Daemon not running

 

It is possible that SSHD daemon on your remote server is not running. For SSH to work there is a daemon that works behind the scene and it is called SSHD. If this daemon is not running your server will not be able to accept SSH incoming connections. Check if this service is running or not:

systemctl status sshd

If it is not running you can turn it on:

systemctl start sshd

 

SSHD does not start?

Now for some reasons if your SSHD daemon still won’t start make sure you have enough disk space using:

 

df -h

 

If you have enough space you can see if your server is receiving heavy traffic or if the server is under heavy load. You can hire our managed vps service as well we offer 3 days free trial (no credit card required)

 

2. Firewall blocking SSH Port

 

Most of the time there is some firewall blocking the SSH port. First, see if you can telnet to SSH port 22

 

telnet 192.xx.xx.xx 22

 

Then check if you or user IP is blocked on IP Tables firewall

 

iptables -nL

 

If IP is listed, you need to unblock this IP to restore connectivity to SSH port 22. There is also a possibility that firewall has dropped or reject rule for SSH port 22, you need to remove that rule and add run following command:

 

iptables -A input -p tcp –dport 22 -j ACCEPT

 

If using CyberPanel

 

If you are using CyberPanel it comes with Firewalld by default unless you have installed CSF. You can go to :8090/firewall/ by default port 22 is opened, if not you can add port 22 there.

 

If you have installed CSF with CyberPanel, you can use csf.allow file to allow this IP. The file is located at

 

nano /etc/csf/csf.allow

 

Then turn off and turn on CSF again from CyberPanel interface.

 

3. Custom SSH Port

 

If you have defined a custom port for SSH (for security reasons, because standard SSH ports are prone to brute force attacks). Then you need to open that port on the firewall as well. Because firewall doesn’t know you choose a custom port for SSH.

 

First, confirm if you are using custom port using

 

cat /etc/sshd_sshd_config | grep Port

 

If you see something other then port 22, you need to fix it.

 

iptables -A input -p tcp –dport custom_port_here -j ACCEPT

 

Replace with custom port here.

 

If using CyberPanel

 

Go here :8090/firewall/secureSSH and see if you have set custom ssh port. Normally if you set custom SSH port, CyberPanel will open this port for you on the firewall. But if it still does not work, you can open this port manually by going to :8090/firewall/ or here :8090/firewall/csf if you are using CSF.

 

4. Incorrect IP, SSH Port or Key File

 

It is also possible that you did a human error and used incorrect IP or wrong SSH port. Make sure you are using right IP on putty or Linux terminal along with correct SSH port.

 

Sometimes people also use key-based authentication, and they get issues while connecting to SSH if the wrong private key is used or there are wrong permissions on your SSH private key. On your local server make sure that your private key has the permission of 600.


Why use CyberPanel?

 

We’ve discussed many reasons and fixes for localhost connection refused error. But we recommend that you install CyberPanel on your VPS, it will help you solve many issues and if you are hosting sites then you will get super speed as well because CyberPanel is based on OpenLiteSpeed and LiteSpeed Enterprise.

 

You will get easy access to Firewalld (installed by default) where you can easily open/close any ports at your wish. Or you can also install CSF too.

 

If you are very novice user you can also hire our managed vps service, we are super affordable and provide top-notch support to all our customers. You can start with 3 days trial (no credit card required at all).

FTP 550 No such file or directory

FTP (File Transfer Protocol) is a standard network protocol used to transfer files between clients and servers. It is the fastest way to upload your file on the server. If you are using CyberPanel, you can also use File manager, but it is always recommended to use FTP to transfer large files to your server. However, as with any other software people face an issue with FTP as well. In this tutorial will discuss one FTP error called ‘FTP 550 No such file or directory’. This means file or folder does not exist.  Today will see what are the main reasons behind this error and how to fix them.

 

However, if you are our customer and use our managed vps service, feel free to contact us via helpdesk to get this issue resolved.

 

What is FTP 550 No Such File or directory

 

We will first see what actually is FTP 550 No Such File or directory error.

 

5xx errors with FTP means complete rejection from the server. Which means that your FTP client such as Filezilla sent an FTP command which remote server fails to accept and returns with 5xx families of error.

 

It is also related to File system issues, for example, the FTP users do not have access to the folder you are trying to access or upload content too.

 

What is the main cause of this error

 

1. Wrong Permissions 

 

If your folder or files have wrong permissions this will also cause ‘FTP 550 No such file or directory’. This happens when the user does not have enough privileges to edit or open file they are trying to access. So if you are using CyberPanel avoid uploading files via root SFTP account, because those files will then be owned by root account and you can then can’t access those files via FTP.

 

If you have already done so, make sure to click Fix Permissions from the file manager. Or you can log in to ssh via root, then first find out the user of your website by running:

 

ls -la /home

 

This command will tell you the owner of the directory who owns your document root, you can then run following commands to change owners of your document root

 

chown -R user:user /home/domain.com

 

Also, this status code occurs when you try to GET a file that does not exist.

2. Incorrect Path 

 

FTP 550 No such file or directory can also occur if you are trying to upload file to an incorrect path.  Such as if the file is present in the document root of your site at /home/domain.com/public_html and you are trying to upload from /home.

 

The easiest way to get around the incorrect path is to logout from FTP, and log in again. You will then land in the default FTP folder and from there you can easily navigate to the folder you want to upload file to.

 

3. Wrong Mount Point 

 

Sometimes users mounts filesystem at a certain mount point but they don’t configure it to retain after reboot. So after server reboot that mount point does not exist anymore. In such case when they login to that FTP account they usually see 500: No such file or directory, because that mount point does not exist anymore.

 

Make sure to remount the file system and make it persists during the reboots.

 


How to Create FTP Account In Cloud Platform

 

 

Once the website is created, click on your service ID. You will be brought back to the page where you can manage your sites created in the CyberPanel.

 

 

Click the launch icon.

 

 

From the left sidebar, click Create FTP Account under FTP. Fill in all the details and click Create FTP button. You can leave the path empty and default path will be used which is usually document root of the website (i.e. /home/domain.com). But if you set some path such as helloworld the final path will be relative to document root such as /home/domain.com/public_html/helloworld.

 

FTP Account is necessary to upload your website/application files. But if you are going to use our Auto Installer creating FTP account is not really necessary.

 

You can also use default File Manager of CyberPanel to manage files of your website, but for large uploads, FTP is recommended.

cPanel Alternative: CyberPanel! Hosting Control Panel for LiteSpeed

cPanel has been around for ages, there are many people using cPanel but due to its cost, they are always looking for cPanel alternative. There are hundreds of cPanel alternatives out there but today we will talk about CyberPanel. CyberPanel not only is a great cpanel alternative, but it is super fast as well. Sites running on CyberPanel are fast, as CyberPanel use OpenLiteSpeed as a server in the free version and LiteSpeed Enterprise Web Server in the paid version.

 

CyberPanel is super easy to use due to its user-friendly GUI (Graphical User Interface). According to current users, the learning curve is not very hard when they shift to CyberPanel. CyberPanel have 2 variants, one is free and other is paid. We will first learn the difference below.

 

CyberPanel for free

 

The free variant of CyberPanel comes with OpenLiteSpeed. Apart from that, it is 100% the same as the paid version of CyberPanel except for the containerization feature. However, if you are using CyberPanel for personal use, containerization feature does not make sense to you.

 

CyberPanel paid or CyberPanel Enterprise

 

The paid version of CyberPanel comes with LiteSpeed Enterprise Web Server. At the time of this writing, there are only a few differences between OpenLiteSpeed and LiteSpeed Enterprise. Let’s discuss them below:

 

  1. LiteSpeed Enterprise have ESI (hole punching)
  2. QUIC (QUIC is planned to be included in OpenLiteSpeed as well)
  3. Full .htaccess support, whereas OpenLiteSpeed also have support for .htaccess but it is limited to certain features.

 

If you want to learn other differences in details you can visit here.


What should I choose, CyberPanel or CyberPanel Enterprise?

 

Now there comes a great question. How can I determine as to what server I need?

 

You are good with OpenLiteSpeed, if:

 

  1. You just have a normal WordPress blog.
  2. WordPress blog with WooCommerce but you don’t use ESI.
  3. Forum scripts like Vanilla or other forums scripts that do not rely heavily on the .htaccess file.
  4. Drupal-based sites.
  5. Joomla Based sites.

 

Or any other sites that don’t heavily rely on .htaccess files and don’t require ESI feature.

 

You will definitely need LiteSpeed Enterprise, if:

 

  1. If you are using ESI hole punching on WordPress, mostly needed with WooCommerce stores and shopping sites.
  2. Magento and Prestashop stores as their cache plugins require ESI.
  3. And apart from that, almost everything is compatible with LiteSpeed Enterprise.

Features that come with CyberPanel

 

Let’s list out some major features that come with CyberPanel.

 

  1. OpenLiteSpeed or LiteSpeed Enterprise Web server (Apache can be used as backend through our platform)
  2. Mail Server (Postfix/Dovecot/Rainloop)
  3. Email Marketing Tool Kit.
  4. Security via FirewallD and SSH Hardeing options.
  5. FTP Server
  6. DNS Server
  7. Docker Manager
  8. Containrization. (Also available via our platform)
  9. Email Limits

 

All these features are available via just one install command, we will see how we can install and use CyberPanel as a cpanel alternative in this tutorial.


Step 1: Get your self a VPS

 

The first step is to get yourself unmanaged or managed vps with CyberPanel. Our platform is specifically designed to interact with CyberPanel. So CyberPanel is automatically installed and is ready to use for you.

 

 

Once your VPS is ready login to your platform account.

 

  1. From left sidebar click Services.
  2. Then click Manage on your recently ordered service.

 

 

Now click Manage CyberPanel and it will take you to the page, where you can remotely manage CyberPanel through our platform giving you many extra features. We are further going to discuss additional points in our next steps.


Step 2: Update DNS for your domain

 

Before moving on to creating your website, we will first make sure that DNS records are properly set. Since our domain is registered at NameCheap we will demonstrate through it. However for other domain registrars it is pretty much similar. Login to your NameCheap account. In your NameCheap dashboard you will see list of your registered domains such as:

 

 

Click Manage for the domain you are going to use, in this example we are using cyberhosting.org.

 

 

After clicking Manage, click Advanced DNS, and create your first nameserver.

 

Here 192.168.100.1 will be IP of your server make sure to replace it with the IP of your server and finally click done. This will create the following nameserver

 

ns1.yourdomain.com -> 192.168.100.1

 

Similarly, create a second nameserver such as ns2.yourdomain.com

 

 

  1. Click Domain from the top menu again, it will take you to the main dashboard for the domain.
  2. From drop down select Custom DNS and enter nameservers you just created above.
  3. Finally, click the Tick Mark.

 

Once all of these steps are done, you are ready to create your first website through our platform. However, if you don’t want to go into the hassle of registering private nameserver you can skip everything above and set up your dns on CloudFlare using this guide. With CloudFlare all you have to do is set their provided nameservers and then add A records in their dashboard, you can also turn on CloudFlare proxy for speed improvements, but it is the topic of another day.


Step 3: Create Website in CyberPanel

 

After clicking Manage CyberPanel from the last step you will land on a page that will look like:

 

 

Click Create Website, so that it can take you to create a website page.

 

 

Fill the Create Website form and click Create Website. Please note that you can also check SSL and Apache as Back End option. Learn more about Apache as Back End option for SSL option to work make sure your DNS records for the domain is already updated as discussed in the step above. Once the website is created, we can move on to further important settings like creating an FTP account or database for your application.


Step 4: Creating an FTP Account

 

 

Once the website is created, click on your service ID. You will be brought back to the page where you can manage your sites created in the CyberPanel.

 

 

Click the launch icon.

 

 

From the left sidebar, click Create FTP Account under FTP. Fill in all the details and click Create FTP button. You can leave the path empty and default path will be used which is usually document root of the website (i.e. /home/domain.com). But if you set some path such as helloworld the final path will be relative to document root such as /home/domain.com/public_html/helloworld.

 

FTP Account is necessary to upload your website/application files. But if you are going to use our Auto Installer creating FTP account is not really necessary.


Step 5: Creating a Database Account

 

 

If you followed our previous step you are already on the page from where you can click Create Database from the left sidebar, if not, you can click Server ID from top, launch the website and then you will land on the page where you are able to create a database for websites.

 

Fill in all the details and click Create Database. However as discussed in the last step, if you have used our Auto Installer, it will also take care of database creation, so you need not create a database as well.


Step 6: Backup Strategy

 

Until now you can guess how easy it is to use CyberPanel which makes it a great cPanel alternative. However, without a proper backup strategy, you can’t have a good night sleep. Our platform provides you various automatic ways to configure daily/weekly backups. You can configure daily/weekly backups to following storage services:

 

  1. AWS S3 (You can sign with AWS to get 5GB space for free)
  2. DigitalOcean Spaces
  3. Or self hosted S3 Compatible MINIO Storage.

 

 

Configure Backups to AWS S3

 

 

Login to our dashboard and go to services and select the service on which you want to configure backups. And click Manage CyberPanel.

 

On this page scroll down and click S3 Backups. Which will land you on this page:

 

 

First, you need to connect your AWS account. You can create a separate user through Amazon IAM Console. More detailed instructions are available here. Make sure you give that user programmatic access and access to S3 related operations in your account. Finally, click Connect Account.

 

From the left sidebar, click Create Backup Plan. So that you can finally send backups to AWS S3. Before creating a plan make sure you have created a new bucket in AWS S3 as you need to select a bucket to send backups to. On the create plan page you will be asked for:

 

  1. Plan Name – Plan names are used to identify backup plans when they are sent to AWS S3 Buckets
  2. AWS S3 Bucket: AWS S3 Bucket that will be used to store backups
  3. Frequency: How often the backup will be generated and sent (Daily/Weekly)
  4. Finally select domains that you want to include in the backup plan.

 

Once all of these are configured, just click Create Plan. You can also force run a backup at any point or view backups log right through our platform.

 

Configure backups to DigitalOcean Spaces

 

 

Login to our dashboard and go to services and select the service on which you want to configure backups. And click Manage CyberPanel.

 

On this page scroll down and click DO Backups. Which will land you on this page:

 

 

First, you need to connect your DigitalOcean account. Credentials can be configured in your DigitalOcean Apps & API section. Finally, click Connect Account. Once connected, the page will refresh and gives you confirmation that your account is successfully connected.

 

From the left sidebar, click Create Backup Plan. So that you can finally send backups to DigitalOcean Spaces. Before creating a plan make sure you have created a new Space as you need to select space to send backups to. On the create plan page you will be asked for:

 

  1. Plan Name – Plan names are used to identify backup plans when they are sent to DigitalOcean spaces
  2. Region: Select the region where you have created a space to store backups
  3. DO Bucket: DO Bucket/Space that will be used to store backups
  4. Frequency: How often the backup will be generated and sent (Daily/Weekly)
  5. Finally, select domains that you want to include in the backup plan.

 

Once all of these are configured, just click Create Plan. You can also force run a backup at any point or view backups log right through our platform.


Conclusion

 

We’ve discussed almost every angle that is needed to run a basic or advanced site. From creating a website to creating a database and finally choosing the backup strategy we did it all. As you can see it is super easy and convenient which make CyberPanel a great cPanel alternative. Depending upon your needs you can either choose a free or paid version as well.

InnoDB: Cannot allocate memory for the buffer pool [Solved]

Recently we received a ticket where the client pointed out that his MySQL server was not starting. Upon investigation, we found out that the client used our MySQL Optimization tool to optimize and enhance MySQL performance. Our MySQL optimization tool set value of innodb-buffer-pool-size size depending upon the available ram on the server. The current formula set its value to 35% of the server ram. Which is fine for most cases, but in this case it was not good, because there were some other processes in the client server taking more ram, so there was not enough ram available to allocate for innodb-buffer-pool-size thus MySQL reports  InnoDB: Cannot allocate memory for the buffer pool as error in MySQL log file.

 

Depending upon the MySQL version you might also receive innodb fatal error cannot allocate memory for the buffer pool as an error, which is the same error with a different description.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with MySQL optimizations.


What is InnoDB Buffer Pool (innodb_buffer_pool_size) and why it is important?

 

InnoDB Buffer is the space in memory used by MySQL to hold many of its InnoDB data structures. Such as caches, buffers, indexes, and even row data. And then innodb_buffer_pool_size is the MySQL directive that controls its value. This is one of the most significant directive in MySQL perspective and should be set with care if you want to improve your MySQL performance.

 

In this tutorial we will see how we can calculate and set optimal value for innodb_buffer_pool_size depending on the available memory on your system and then we will discuss on how to solve InnoDB: Cannot allocate memory for the buffer pool error in case you run into it at a later point in time.


70% – 80% of the Available Ram

 

Normally if your server is only dedicated for MySQL it is recommended to set innodb_buffer_pool_size value to 70-80% of the available ram. So for example, if your server has 8GB of ram, you can calculate the value of innodb_buffer_pool_size using this formula

 

8 * 0.80 = 6.4GB

 

But in case if your server has a very large amount of ram such as 256GB, then you can further enhance it to 90% as well. Because if your server is only being used for MySQL, the rest of the ram will go in waste, so you can increase or decrease this value depending upon the available ram or your needs.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with MySQL optimizations.


Optimal value with CyberPanel

 

When you are using CyberPanel then 70-80% ram cannot be allocated for innodb_buffer_pool_size size, because there are many other things running and there must be some room for them to breath. Otherwise, if you set a large value for innodb_buffer_pool_size you will start receiving InnoDB: Cannot allocate memory for the buffer pool or innodb fatal error cannot allocate memory for the buffer pool as an error. Which means there is not enough ram available and MySQL cannot start now. Which is why our optimization tool set it to 35% of the available ram.

 

But sometimes 35% is not good as well. For example, you have lots of websites and they are continuously forking PHP processes and you are also using FTP and DNS server. Then you either need to further go down with the value of innodb_buffer_pool_size.


Fixing the InnoDB: Cannot allocate memory for the buffer pool error

 

Now let see how we can fix this error, let say you have used or MySQL Optimization tool, and now MySQL is not starting. First, make sure that this is the reason your MySQL is not starting. You can open the MySQL log file located at /var/lib/mysql/mysqld.log. This location is set by our optimization tool, if you are not using our tool, you can find MySQL log file depending upon your configuration, and you must see the following lines somewhere in the log file

 

2019-06-11 10:52:09 140525444196608 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: The InnoDB memory heap is disabled
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: Compressed tables use zlib 1.2.7
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: Using Linux native AIO
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: Using SSE crc32 instructions
2019-06-11 10:52:09 140525444196608 [Note] InnoDB: Initializing buffer pool, size = 358.0M
InnoDB: mmap(393183232 bytes) failed; errno 12
2019-06-11 10:52:09 140525444196608 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2019-06-11 10:52:09 140525444196608 [ERROR] Plugin ‘InnoDB’ init function returned error.
2019-06-11 10:52:09 140525444196608 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

 

Pay close attention to the bold lines, we are now sure that MySQL failed at InnoDB: Initializing buffer pool. Now open /etc/my.cnf and find innodb-buffer-pool-size = xxxM. Now set the value of this directive to something lower such as 50MB just for test and restart MySQL using systemctl restart mysql. However, you can play with various values and make sure you get the optimal value for your configuration.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with MySQL optimizations.

 

How to: Email Blacklist Removal

If you regularly send transactional/marketing emails you may have ran into a problem of emails not getting being delivered, out of many reasons one reason is that your IP might have been blacklisted on a spam monitor. These companies maintain a list of IPs who send out email spam, and email servers use services of these spam monitors to check if the sender IP address is listed on the spam monitor.

 

If it is listed on one of the many spam monitors (such as BARRACUDA) it is highly likely that most popular email companies will not accept your email as they consider you a spammer sending spam emails.  Today this tutorial is about Email Blacklist Removal, which is a process of getting your IP removed from those spam monitors.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with email problems.


Check if IP Is Backlisted

First thing you need to check is that are you even listed on a blacklist or not because if your emails are not getting delivered there can be many other reasons. So make sure that you are listed on a black list, otherwise, you need to follow a different path to fix email deliverability.

 

Go to https://mxtoolbox.com/blacklists.aspx

 

 

  1. Enter the IP address that you want to check against blacklist monitors and click Blacklist Check.
  2. You can see that the searched IP is listed on BARRACUDA spam monitor, and probably mail from this IP won’t be reaching to the inbox of most popular email service providers (Google, Outlook, etc) or maybe they completely reject your email.

 

At this point, you are sure that you are listed on a blacklist and you need to do something about it. We will start discussing how to get delisted from few spam monitors.


Resolve the problem first

 

Before applying to get removed from any spam monitor, make sure that your server is not doing something fishy, so that you won’t get banned or even your removal appeal being completely rejected. You can check various server logs and try to identify what is happening on your server. Some useful commands are:

cat /var/log/maillog

journalctl -f | grep postfix

 

Try to inspect the log files and fix the issue before applying for removal. However if you just got a new server, and you found out that your IP is blacklisted, it is highly likely that old tenant of this IP did some email spamming, in this case ,you can just go ahead and submit removal request, you can explain in the removal request that you just got the fresh virtual machine/ dedicated server and someone previously did something due to which your IP is black listed.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with email problems.

 


Get your IP removed from Barracuda Spam Monitor

To get your IP removed from Barracude visit the removal request page.

 

 

  1. Enter server IP Address you want to get removed from the spam monitor.
  2. Email address where you will be contacted.
  3. Your modile phone number.
  4. Provide the reason, I just entered an example reason. Make sure you provide a valid reason for removal.
  5. And finally, submit your request.

 

It usually takes then 12 hours to process your request, if you provided a valid reason then just sit back and relax.


Get your IP removed from Spamhaus Spam Monitor

 

To get your IP removed from Barracude visit the removal request page.

 

 

Enter your server IP Address in the box, it will first do a lookup and then give you options to remove if it is listed in the monitor. If your IP is on the list you will see something like:

 

 

In this case, IP was not directly listed on SPAMHAUS it was on ABUSEAT CBL blocklist, Click on CBL Lookup to get further details of this issue.

 

 

Here you can do the lookup again, come at the bottom of this page and click Remove to perform self-removal. Please note that even after removal, you might still not be able to send emails as your earlier abuse status might be cached on email servers, it will auto-heal in ca ouple of hours.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with email problems.


Get your IP removed from SORBS Spam Monitor

 

Updated on: June 27th, 2019

 

Recently we got a client whose IP was listed on SORBS monitor. It was very tricky to do an IP lookup on their site (we mentioned link for removal from their site below). So to lookup and get your IP delisted on SORBS, you need to be registered on their site. You can go here -> http://www.sorbs.net/cgi-bin/support

 

First register and do and IP lookup after you login, they will provide you an option to do lookup. It will then present you with information weather you are listed on the monitor or not. Now if you are owner of the IP space you can click Get Delisted. If you are not the owner of IP, you can’t get delisted automatically.

 

Just email [email protected], with reason explaining why you want this IP to be removed from their monitor. They are pretty fast in replying and if you have provided a valid reason your IP will be removed within few minutes.

 


Links to other Spam Monitor Removal Lists

 

We discussed the process of removal for two Spam monitors, process for other Spam Monitors are pretty much the same. I’ve listed the links to the removal page of other Spam Monitors below:

 

LashBack UBLhttp://blacklist.lashback.com/
Backscatter Blacklisthttp://www.backscatterer.org/?target=test
Barracuda Blacklisthttp://www.barracudacentral.org/rbl/removal-request
Invaluement Blacklisthttp://dnsbl.invaluement.com/lookup/
APNewshttp://www.apews.org/?page=index
SpamCop Blacklistwww.spamcop.net/bl.shtml
UCE Protect Blacklisthttp://www.uceprotect.net/en/index.php?m=7&s=6
Sorbs Blacklisthttp://www.sorbs.net/cgi-bin/support
Truncate BlacklistAutomatic Only

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now. We also help our customers with email problems.

.htaccess 301 redirect

What is .htaccess?

 

.htaccess is a configuration file used by Apache Web Server Software. Through .htaccess file, you can change the configuration of Apache Web Server to enable or disable rewrite rules and some functionality the Apache Web Server has to offer. Note .htaccess files must be uploaded in ASCII mode (binary mode is not supported). Some basic functionality that can be controlled via Apache .htaccess is:

 

  1. Setting 404 file not found file when this error occurs.
  2. Password protection
  3. Image hotlink prevention.
  4. Most import is url rewriting (which is the main discussions of todays article)

 

Todays tutorial is mainly about .htaccess 301 redirect, which is just another example of using rewriting capabilities of Apache Web Server through .htaccess file. Also note that with our managed vps service, you can use super fast OpenLiteSpeed Server along with Apache on back end, thus you will get speed of OpenLiteSpeed and all the goodies of Apache Web Server such as .htaccess compabitibility. This set up also works with LSCache WordPress plugin which means you can also get full benefits of OpenLiteSpeed full page caching.


.htaccess redirect 301

 

The .htaccess file allows the user to move from one document on the website to another through rewrite directives. 301 redirect allows webmasters to permanently move users to new URL while replacing the old URL and tell the Search Engines that the page has moved to another new URL so the new page is properly indexed in google.

 

If you have root access to your VPS you can also set rewrite rules in your main apache configuration file, which will increase your website speed (make sure to set  AllowOverride None, which tells apache not to look for .htaccess files in every directory it servers content from, thus improving overall speed). However if you don’t have root access (in case of shared hosting) you will have to use a rewrite file (.htaccess) at directory level.

 

Common uses of a 301 redirect:

 

  1. After moving your site to a new domain, you can use 301 redirect on the old domain to send visitors to the new site.
  2. After moving old site pages to a new site structure, use 301 redirects to send users to the new pages.
  3. After combining two sites, use 301 redirects to ensure visitors go to the new pages or the right pages.

 

Single URL redirect:

Allow the user to redirect permanently from old_page.html to new_page.html. For the redirection, you have to add the following code in your .htaccess file:

Redirect 301 /old_page.html http://www.yourdomain.com/new_page.html

 

Entire domain redirect:

.htaccess 301 redirect also allows the user to permanent redirect from all domain pages to your new domain. For the redirection, you have to add the following code in your .htaccess file:

Redirect 301 / http://www.newdomain.com/

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now.

 

HTTP to HTTPS redirect:

Redirect 301 allows the user to redirect the website from HTTP to HTTPS secure mode. For the redirection, you have to add the following code in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

HTTP TO HTTPS redirect in CyberPanel

CyberPanel gives you one-click solution for HTTP -> HTTPS redirection.

 

Wesbites -> List Wesbites -> Manage

 

 

 

  1. Once on the Manage page of the website click Rewrite Rules.
  2. From drop down select Forcee HTTP -> HTTPS (Rewrite rules will be populated automatically).
  3. Click Save Rewrite Rules.

 

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now.


How to 301 Redirect WordPress Content Using .htaccess in CyberPanel

 

A 301 redirect is a permanent redirect and it tells search engines, including Google to remove the original URL from their index and replace it with the one you’re redirecting to. So let’s put that code from above into your .htaccess file and redirect some pages.

 

First log into CyberPanel dashboard. Navigate to Websites -> List Websites then try to find Manage button or just click on the link /home/example.cyberhosting.org/public_html this will file manager and navigate you to the document root of the website.

 

You can also log into your website root using FTP account if you are more comfortable with that.

 

 

In the Document Root of WordPress, find the .htaccess file and edit it. Copy Paste the redirect 301 code in a .htaccess file and click on save changes.

Code:

Redirect 301 /old_page/ http://domain.com/new_page/

 

 

You can test the website URL redirection immediately after saving the changes in the .htaccess file. If you are not redirected then something went wrong. That is how you redirect a page or redirect URL using .htaccess.


What is Error Document in .htaccess

 

Apart from using .htaccess file for rewriting you can also set up custom error pages in case of 404 or other errors. Making Custom error page in your website is very helpful, it allows a user to see the custom user-friendly error message in case your application ran into some problem or user tried to access the page which does not exists (404 error). Let’s suppose you create the custom error page for your website and now you want to activate in the .htaccess file. Move to your root directly of your web site and find the .htaccess file. If you find the file you need to edit it, if there is no such file you can create your own .htaccess file.

Add the following lines in your .htaccess file:

ErrorDocument 404 /error404.html

After ErrorDocument specifies the error code, followed by a space, and then the path and filename of the .html customized error file you would like to be displayed when the specified error is generated.

If doing this is too much for you, you can sign up with us and let our experts do this for you. We offer 3 days free trial no credit card required start free with our managed vps now.


CyberPanel and .htaccess

 

Since we provide our managed services on CyberPanel, you need to be extra careful if you are only using CyberPanel with OpenLiteSpeed, because OpenLiteSpeed does not support all the directives of Apache Web Server, unless you are using our managed vps service where you can use Apache behind OpenLiteSpeed which means you get all the features of Apache Web Server and speed of OpenLiteSpeed.

 

Automatic Support System

How To Create a Support Ticket

 

To create a support ticket client must log in to CyberHosting  Cloud Platform. In CyberHosting Cloud Platform go to support section ‘Create Ticket‘ is to be clicked. Then you see ticket support form, where you need to click on ‘Department‘ and In the menu the best issue which describes the technical issue is to be selected. Next is very import ‘Subject‘ here you have to enter the subject of issue you having. and in the last box you have to describe the issue you are facing.

 

Support Ticket Form 

 

 

By clicking on ‘Create Ticket‘ you will successfully submit the ticket.

 

List of Tickets 

 

You can see the submitted ticket by going to ‘List of Tickets‘ under support section in your CyberHosting Cloud Platform. Every ticket has its own unique ticket id and client will be notified if Support Staff reply your ticket, you will get notified on your email address.

 

CyberHosting Cloud Platform support stuff active 24/7 you contact them any time.

 

Support tickets are extremely helpful in the circuit of Web Host Managers and is used by many big business houses nowadays.

 

Billing System

Billing System in Our Platform 

 

CyberHosting Cloud Platform equipped with a powerful and flexible billing system. You just need to go to billing section of client area and add your funds for hosting services. There are two ways to add funds in CyberHosting Hosting Cloud Platform:

 

1. Add Funds via Credit Card

 

 

2. Add funds via PayPal

 

 

You have to Add funds after 3 days of free trail period!

 

After Adding funds you can see the amount is successfully added to your account, on the same page you can see your transaction history at the bottom.