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.

 

Plesk Alternative: CyberPanel! Hosting Control Panel for LiteSpeed

We’ve recently discussed CyberPanel as viable cPanel alternative. Plesk is another popular control panel used by many out there. But if you are here, it means you are already looking for its alternative. There can be various factors/reasons for you looking for Plesk alternative.  Such as:

 

  1. Pricing: Plesk has mid-range pricing. But still some people out there can’t seem to afford, and then they start to look for an alternative.
  2. Complexity: Plesk is a complex control panel, for first-time users it can be confusing due to lots of options provided.

 

There can be many other factors as to why you look for a Plesk alternative. As we’ve talked in our cPanel alternative article, we are again going to talk about why would you choose CyberPanel over Plesk. We are not going to talk about the faults in Plesk here, as any software has pros and cons. But since you are here looking for Plesk alternative, we will see why you can use CyberPanel and still get same features plus slightly better performance due to native support for OpenLiteSpeed and LiteSpeed Enterprise (comes with CyberPanel Enterprise).

 

CyberPanel is free

 

Yes, you heard is right, even though there is a pricing page on CyberPanel. Many people think that CyberPanel only has paid options. However that is not true, CyberPanel has a free version that comes with OpenLiteSpeed web server. Now your mind will start asking questions what is the difference between the free and paid version of CyberPanel.

 

Difference is server that comes pre-installed. When you install free version of CyberPanel you get OpenLiteSpeed, and when you install CyberPanel Enterprise, you get LiteSpeed Enterprise Web server included already in the cost.

 

But then you need to understand the difference between OpenLiteSpeed vs LiteSpeed Enterprise. Now that you have got a better idea of the difference between these servers, you will have a clear picture of what version of CyberPanel you want to choose.

 

Now that is the only difference between free and paid CyberPanel, apart from that 100% is same. You get the same working and features in both free and paid versions. Now if you want to set up CyberPanel and get started with it, you can read our cPanel alternative article as it explains how you can easily get started with CyberPanel. We will take a little different approach in this article and leave out the technical details for cPanel alternative article, you can go down there and learn the technical points. However, in this article we will see that how for different kind of sites CyberPanel fits perfect compared to Plesk and weather you will be needing paid or free version of CyberPanel.


CyberPanel as Plesk Alternative for WordPress

 

If you go down at W3Techs to see WordPress usage statistics. You can see WordPress usage as a content management system, right now at the time of this writing WordPress is used by 60.8% of all the websites whose content management is known to W3Techs. Now 60.8% is a big number. Which means that out of 100 people using CyberPanel there is a higher chance that they will be running WordPress sites.

 

Plesk have a WordPress toolkit to help you with WordPress related tasks. But if you see on CyberPanel side you get free of cost WordPress one-click installer, that not only installs WordPress but also installs LSCache plugin for you, which means your site is ready to be super fast as the default web server is OpenLiteSpeed (when you use the free version of CyberPanel).

 

For Bloggers

 

If you have blogging sites, then the free version of CyberPanel will be good for you. Because blogging does not require ESI caching which is only available with LiteSpeed Enterprise. So this is the best case where you can use CyberPanel for free.

 

For WooCommerce Shops

 

Shopping sites usually require ESI hole punching with their caching, so here you would need CyberPanel Enterprise (thus getting LiteSpeed Enterprise with ESI hole punching).

 

If you are not convinced, you can go here and see the performance of openlitespeed vs nginx. You can clearly see that OpenLiteSpeeds easily outperforms NGINX in most cases especially with WordPress. On top of that LiteSpeed Enterprise is even faster then OpenLiteSpeed.


CyberPanel as Plesk Alternative for Developers

 

Developers can also use CyberPanel in their development lifecycle. If you are a developer and use GIT version control in your development environment, then CyberPanel got you covered. You can attach your GIT repositories to CyberPanel website and set up webhooks so that CyberPanel can update your code with each push. Following providers are supported:

 

  1. Github
  2. Gitlab

 

To get started you first need to create website in CyberPanel. Once a site is created you can go and manage this site -> Websites -> List Websites -> Manage. You will land on a website launcher, there you can click Git on bottom of the page.

 

 

First, you need to deploy your key to Github.

 

 

You need to add this key to your account level.

 

Github

 

To attach the key on Github visit -> https://github.com/settings/keys

 

Click New SSH Key and then add the key that you found from the box above.

 

Gitlab

 

To attach the key on Gitlab account visit -> https://gitlab.com/profile/keys

 

Once keys are added come back to CyberPanel and attach your repo.

 

Attaching Repo

 

 

  1. In box 1, you need to enter the username of your Github/Gitlab account.
  2. In box 2, enter your repository name.

 

This also works with prviate repositories, just make sure to add key properly. You can also select the branch to be attached.

 

Setup Webhooks

 

If you want to auto-update code on CyberPanel after every code push to your repo, you need to set up Webhook, so that your code is properly synced between CyberPanel and your repository.

 

Github

 

To setup webhook on Github visit https://github.com/username/reponame/settings/hooks

 

Replace username and repo name accordingly. Click Add New Hook.

 

  1. Payload URL -> https:/<Server IP>:8090/websites/cyberhosting.org/gitNotify (Replace server IP with actual server IP or hostname).
  2. Content-Type -> Application/JSON
  3. SSL verification -> Disable SSL verification if you not issued hostname SSL and used hostname instead of IP in webhook URL.

  4. Which events would you like to trigger this webhook? -> You can select anything, normally just select the push event.

 

And finally, click Add webhook. Now whenever you push code changes to your repository, it will be auto-synced to CyberPanel website that you have attached your repo too.

 

Gitlab

 

To setup webhook on Github visit https://gitlab.com/username/reponame/-/settings/integrations

 

Replace username and repo name accordingly.

 

  1. URL -> https:/<Server IP>:8090/websites/cyberhosting.org/gitNotify (Replace server IP with actual server IP or hostname).
  2. SSL verification -> Disable SSL verification if you not issued hostname SSL and used hostname instead of IP in webhook URL.

  3. Trigger for push events only.

 

And finally, click Add webhook. Now whenever you push code changes to your repository, it will be auto-synced to CyberPanel website that you have attached your repo too.


CyberPanel as Plesk Alternative for DNS only Servers

 

You can install CyberPanel as DNS or even Mail Only. To install as DNS only run this command

 

  1. sh <(curl https://cyberpanel.net/install.sh || wget -O – https://cyberpanel.net/install.sh)

 

 

  1. First, it will ask if weather to install CyberPanel or Addons. You can enter 1 to install CyberPanel.
  2. It will then ask Install CyberPanel with OpenLiteSpeed or LiteSpeed Enterprise, now that is totally up to you.
  3. Next, it will ask to Install minimal service for CyberPanel? You need to answer no here, because it will then skip installation of Email, DNS and FTP server. But we want to install DNS server, so you have to choose yes here.
  4. It will then continue to ask whether you want to install Postfix, DNS and FTP servers select no for all except for DNS server.

 

Once the installation is completed, you can then use CyberPanel as DNS only. Similar you can also use for Mail only, if you choose not to install some components, these components will not show up in the CyberPanel interface.

[Solved] HTTP Error 503. The service is unavailable

HTTP Error 503. The service is unavailable

Web servers such as LiteSpeed and Apache use various codes to tell browsers about responses. For example, if the web server replies back with HTTP code 200, it means that everything is fine and the response generation was successful. There are many other response codes, but today we will discuss HTTP Error 503, and when this usually happens you get following error on your browser: HTTP Error 503. The service is unavailable.

 

If you are not the administrator of the site, there is nothing much you can do as mostly this error indicates that there is something wrong on the server side. You can either refresh the page, visit later or better notify an administrator of the site. However, if you are the administrator of the site, you can do much to figure out what is wrong and there are various reasons and ways to fix this error. There are multiple web servers, each may give you a slightly different error message, such as:

 

  1. 503 Error
  2. Http/1.1 Service Unavailable
  3. 503 Service Temporarily Available
  4. 503 Service Unavailable
  5. HTTP Error 503
  6. Service Unavailable – DNS Failure
  7. Error 503 Service Unavailable

 

Usually, the main thing to look for is error code which is HTTP error code 503. Today we will see how we can discuss various reasons and respective ways to fix the issue.

 

Server Side Issue

 

Before deep diving into various reasons as to why this could happen, I would again like to mention that this is a server side issue. All errors in the 5xx range are considered errors on the server side including 503 Service Unavailable Error. However do keep in mind that 503 error means the server was able to process your web request and it was functioning properly but it chooses to return 503 error code because due to some problem/issue server is not able to process this request the way it should have.

 


Refresh the page

 

Some times you will get the following error

 

503 Service Unavailable – The server is temporarily busy, try again later!

 

 

 

It may really be a temporary error as the error message says, so wait some time and refresh the page. This can happen to high traffic sites, where enough resources are not available to handle the request. On the user end, be careful if you are seeing this error on the payment related pages, and make sure you won’t get charged twice.


Using our Apache as Backend Feature

 

If you are our customer and using our Apache as Backend feature, there is a chance that Apache is down. In this case frontend server which is OpenLiteSpeed, will give you 503 error, as it is failed to connect to Apache. See if Apache is running

 

systemctl status httpd

 

If Apache service is not running, you can start with

 

systemctl start httpd

 

And see if your issue is resolved.

 

PHP FPM is down

 

If you get something like (Assuming you are using our Apache as backend feature or your stack includes PHP-FPM)

 

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

 

This means your PHP-FPM service is down. You can start php-fpm using

 

systemctl start php-fpm

 

In case you are our customer, there are multiple PHP-FPMs are available for different PHP versions and their respective commands are:

 

systemctl start php54-php-fpm

systemctl start php55-php-fpm

systemctl start php56-php-fpm

systemctl start php70-php-fpm

systemctl start php71-php-fpm

systemctl start php72-php-fpm

systemctl start php73-php-fpm

 


Check various log files

 

If your issues are still not resolved, you can start to check various log files. In the case of CyberPanel and LiteSpeed (OpenLiteSpeed), log files to check are:

 

/usr/local/lsws/logs/error.log

/usr/local/lsws/logs/stderr.log

 

In the case of Apache

 

/etc/httpd/logs/error_log

 

You can do an efficient search of log files using the grep command such as:

 

cat log_file_path | grep error

cat log_file_path | grep notice

 

This command will make sure that you only get the most relevant information, otherwise, you may also get info level messages in your log files and they are not relevant in this case.


503 Errors due to PHP Malfunction

 

Most of the times 503 errors can come due to a problem in your PHP code, or either PHP-FPM/LSPHP are not able to produce response thus server started giving you 503 error. It is always recommended to first create a phpinfo page and see if your PHP side is working fine. If you can see the phpinfo page, you can move forward to further debug the cause, otherwise, make sure LSPHP is working fine and external application is created properly or PHP-FPM is up and running.

 

Disable PHP OPCode Caching (xCache, ACP or eAccelerator)

 

On a default install of CyberPanel (OpenLiteSpeed or LiteSpeed Enterprise), OPCode caching is enabled. Sometimes different sorts of opcode caching can have compatibility issues with LSPHP (PHP). So if you are getting HTTP Error 503 Error better try to disable opcode caching. On CyberPanel you first need to find out which PHP version is used by your site. To find out your PHP version on CyberPanel run the following command

 

cat /usr/local/lsws/conf/vhosts/yourdomain.com/vhost.conf | grep php

 

For example, the PHP version of your site is 7.2. Go to the configurations directory of PHP 7.2 and disable opcode caching.

 

cd /usr/local/lsws/lsphp72/etc/php.d

mv 10-opcache.ini 10-opcache.ini.bak

systemctl restart lsws

or

/usr/local/lsws/bin/lswsctrl restart

 

This will disable OPCode caching. If you are not on CyberPanel, you need to find the php.ini file for your PHP and disable OPCode caching. Usually, php.ini location is disclosed in phpinfo page. If your issue is still not resolved, you can move on to the next step.

No space left on /tmp

 

Some web application use /tmp directory to store temporary files (session data etc). If /tmp is full you can get HTTP Error 503 Error. Use the following commands to inspect /tmp directory space

 

df -h

df -i

 

 

PHP memory_limit reached

 

memory_limit is a php directive that specifies how much memory a PHP script is allowed to allocate. Sometimes your application might be exceeding this limit, thus failed to produce response for the web server resulting in HTTP Error 503 Error. As explained above, first find out the PHP version used by your site. Then you can directly increase memory_limit from CyberPanel interface.

 

Login to your CyberPanel Dashboard then from left sidebar PHP -> Edit PHP Configs

 

 

  1. Select PHP version to change the value of memory_limit directive.
  2. Set the new value of the directive.

 

Finally, scroll down and click Save Changes.

 

max_execution_time reached

 

max_execution_time is similar to memory_limit. So if your PHP script exits early without producing response again you will get the same error. You can follow the same procedure as described above to fix max_execution_time as well. Make sure to set it to a high enough value so that your script is properly executed.


Conclusion

 

We’ve pretty much discussed all the possible causes of “HTTP Error 503. The service is unavailable”. However we recommend moving your sites to CyberPanel, because CyberPanel use LiteSpeed servers. Which means in low cost VPS you can host more sites, and using LSCache WordPress plugin you can avoid many such errors including HTTP Error 503. Because if your pages are cached, PHP engine is not used, thus giving other applications more resources to run. So in a low cost server you can run multiple sites at super fast speed and avoid such errors. You can learn in our OpenLiteSpeed vs NGINX comparision post as to why you would use CyberPanel and OpenLiteSpeed.

 

You can also get our managed vps and let us do this for you. We offer 3 days trial (no credit card required, plus free migration and fully managed support)

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.