bookmark_borderAnnouncing DirectAdmin SSD powered shared and reseller hosting available!

Greetings,We’re happy to announce a performance upgrade to our DirectAdmin shared and reseller hosting available in Frankfurt, DE.

The DirectAdmin powered services in Frankfurt, Germany is now powered by SSD based storage with a much newer CPU and faster DDR4 memory as well.

SSD disks should net a 5-10x performance gain allowing your websites to load faster and serve your users quicker. The improved CPU performance as well will enable websites to load faster and run more stable as well with improved database performance as well.

To check out our DirectAdmin SSD powered plans visit our website at
DirectAdmin Shared Hosting
DirectAdmin Reseller Hosting

Stay tuned for further updates!

Follow us on CrownCloud BlogTwitter, and Facebook for updates regarding current offers and other updates.

bookmark_borderInstalling LAMP Stack on AlmaLinux 8

Hello,

In this week’s feature highlight, we look at How to Install LAMP Stack on AlmaLinux 8

A LAMP stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP.

Install Apache Web Server

First, we will start by installing the Apache web server. To complete the installation, use the following command.

yum install httpd httpd-tools

Output:

[root@server ~]# yum install httpd
AlmaLinux 8.3 - BaseOS                           14 MB/s | 2.6 MB     00:00
AlmaLinux 8.3 - AppStream                        21 MB/s | 6.5 MB     00:00
AlmaLinux 8.3 - PowerTools                      8.0 MB/s | 1.9 MB     00:00
AlmaLinux 8.3 - Extras                           12 kB/s | 1.2 kB     00:00
Dependencies resolved.
================================================================================
 Package     Arch   Version                                     Repo       Size
================================================================================
Installing:
 httpd       x86_64 2.4.37-30.module_el8.3.0+2016+8bf57d29.alma appstream 1.4 M

Once the installation is complete, enable Apache (to start automatically upon system boot), start the web server and verify the status using the commands below.

systemctl enable httpd

systemctl start httpd

systemctl status httpd

Output:

[root@server ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor prese>
   Active: active (running) since Mon 2021-02-08 15:03:51 EST; 5s ago
     Docs: man:httpd.service(8)
 Main PID: 26398 (httpd)
   Status: "Started, listening on: port 80"
    Tasks: 213 (limit: 23680)
   Memory: 29.1M
   CGroup: /system.slice/httpd.service
           ├─26398 /usr/sbin/httpd -DFOREGROUND
           ├─26399 /usr/sbin/httpd -DFOREGROUND

To make your pages available to public, you will have to edit your firewall rules to allow HTTP and HTTPS requests on your web server by using the following commands.

firewall-cmd --permanent --zone=public --add-service=http 

firewall-cmd --permanent --zone=public --add-service=https 

firewall-cmd --reload

Output:

[root@server ~]# firewall-cmd --permanent --zone=public --add-service=http
success
[root@server ~]# firewall-cmd --permanent --zone=public --add-service=https
success
[root@server ~]# firewall-cmd --reload
success

Verify that the web server is running and accessible by accessing your server’s IP address.

echo "Hello there, Apache webserver is now running" > /var/www/html/index.html

And restart tht Web Server to reflect the changes made.

systemctl restart httpd

From your browser,

http://IP_address
image

Install PHP

To install PHP on your RHEL 8 use the command below.

yum install -y php-mysqlnd php-dom php-simplexml php-xml php-xmlreader php-curl php-exif php-ftp php-gd php-iconv  php-json php-mbstring php-posix php-sockets php-tokenizer

Now restart your web server so that Apache knows that it will be serving PHP requests as well.

systemctl restart httpd 

Test your PHP, by creating a simple info.php file with a phinfo() in it. The file should be placed in the directory root for your web server, which is /var/www/html.

To create the file use:

echo "<?php phpinfo() ?>" > /var/www/html/info.php

Now again, access http://localhost/info.php or http://yourserver-ip-address/info.php. You should see a page similar to below one.

image

Install MariaDB Server

MariaDB is a popular database server. The installation is simple and requires just a few steps as shown.

yum install mariadb-server mariadb

Output:

[root@server ~]# yum install mariadb-server mariadb
Last metadata expiration check: 0:05:56 ago on Mon 08 Feb 2021 03:03:08 PM EST.
Dependencies resolved.
================================================================================
 Package                    Arch   Version                      Repo       Size
================================================================================
Installing:
 mariadb                    x86_64 3:10.3.27-3.module_el8.3.0+2028+5e3224e9
                                                                appstream 6.0 M
 mariadb-server             x86_64 3:10.3.27-3.module_el8.3.0+2028+5e3224e9
                                                                appstream  16 M
Installing dependencies:
 mariadb-common             x86_64 3:10.3.27-3.module_el8.3.0+2028+5e3224e9

Once the installation is complete, enable MariaDB (to start automatically upon system boot), start the MariaDB and verify the status using the commands below.

systemctl enable mariadb

systemctl start mariadb

systemctl status mariadb

Output:

[root@server ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.3 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor pre>
   Active: active (running) since Mon 2021-02-08 15:10:12 EST; 5s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 30138 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, s>
  Process: 30004 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mariadb.service>
  Process: 29979 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, sta>
 Main PID: 30107 (mysqld)

Finally, you will want to secure your MariaDB installation by issuing the following command.

mysql_secure_installation

Output:

[root@server ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] asdfghjkl
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!

Once secured, you can connect to MySQL and review the existing databases on your database server by using the following command.

mysql -e "SHOW DATABASES;" -p

Output:

[root@server ~]# mysql -e "SHOW DATABASES;" -p
Enter password:
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+

Done!

bookmark_borderChristmas Greetings

Hey There!

As the holiday season is upon us, we find ourselves reflecting on the past year and those who have helped to shape our business. It’s been quite a year for us all! We hope that this year has been just as memorable for you, your colleagues, and your loved ones. We would like to express our sincerest appreciation for the trust you have placed in us. We look forward to working with you in the years to come and We Hope this festive season will bring good luck and good health for you and your family.

Merry Christmas and Happy New Year!

— Team CrownCloud.

bookmark_borderChanging your VPS Hostname on CrownPanel

Hello!

In this week’s feature highlight, we look at how to change the Hostname of your VPS on CrownPanel.

Before learning How to set the Hostname in CrownPanel, let us learn what is a Hostname.

A hostname is a domain name assigned to a host computer. For example, if Computer “A” had two computers on its network named “A1” and “A2,” the domain name “A1.abc.com” is connecting to the “A1” computer.
A hostname may have appended the name of a Domain Name System (DNS) domain, separated from the host-specific label by a period (“dot”) then the hostname is said to be a fully qualified domain name (FQDN).

OpenVZ Based VPS

OpenVZ VPSes pull the hostname from the config file which is updated when setting the hostname via our panel

Login to https://crownpanel.com/ and click on the “Manage” button beside the VPS you wish to edit the hostname for.

Next click on the “Hostname” listed beside the IP address,

This will open a new form where you can edit the hostname as you wish. Once the hostname is edited/changed, the VPS hostname is updated.

KVM Based VPS

Click on the “Manage” button beside the VPS you wish to edit the hostname for.

Next click on the “Hostname” listed beside the IP address,

This will open a new form where you can edit the hostname as you wish. Once the hostname is edited/changed, the VPS hostname is updated.

CentOS

How do I see the Host names?

hostnamectl

OR

hostnamectl status

How do I set the Host name? The new hostname can be set with the following command,

hostnamectl set-hostname YourHostname --static

To set Hostname as “myvps”, enter:

hostnamectl set-hostname myvps --static

To verify the new hostname, enter:

hostnamectl status

Ubuntu / Debian

Check your hostname status first:

hostnamectl status

Output shown will be something like:

[root@idroot ~]# hostnamectl status
Static hostname: vps.server.com
" 
"
"
Architecture: x86_64

To change the hostname to your preferred hostname, replace “YOUR_PREFERRED_HOSTNAME” with your hostname,

hostnamectl set-hostname YOUR_PREFERRED_HOSTNAME

Check your hostname status again in a new terminal:

hostnamectl status    

bookmark_borderSetting rDNS in CrownPanel

Hello!

In this week’s feature highlight, we look at how to set arDNS in CrownPanel.

Before knowing what is rDNS first let us learn what is DNS,

DNS is typically used to resolve a domain name to an IP address and this function is known as a forward resolution and is performed every time you visit a site on the internet.

rDNS which is known as Reverse DNS as its name implies it is a method of resolving an IP address back to a domain name.

Please note,

  • You will need to setup a A record on your domain to point to the IP, for eg, if you wish to setup my.domain.com on IP 127.0.0.1, then my.domain.com will have to have a A record pointing to 127.0.0.1. If this is not possible to do, please contact us via the Client Area to setup your rDNS manually.
  • Most IP(s) should be available to setup via the automated module, in some cases, you may see a message saying “Click here to contact our support team to setup rDNS for this IP Address” for these you will need to click on the message button to open a support ticket.

Login to CrownPanel at https://crownpanel.com/

To Set rDNS

Click on the rDNS button/link in the top-navbar,

rDNS

And enter the rDNS and click Update button.

rDNS

To delete rDNS

If you wish to delete or reset your rDNS, click on the Reset rDNS button.

rDNS

If using CloudFlare DNS

If you use CloudFlare, you will need to disable the proxied (orange cloud) icon for a few minutes, then you should be able to setup the rDNS.

The proxied(orange cloud) icon look like this. rDNS

Once you disabled it. it will look like this. rDNS

IPv6 rDNS

Please contact our support desk (create a ticket) at https://crowncloud.net/clients for IPv6 rDNS. We will add this to the panel soon.

bookmark_borderSetting Labels on a VPS in CrownPanel

Hey there!

In this week’s feature highlight, we will look at how to set a label on a VPS in CrownPanel.

Labels are identifiers for your VPS’s to easily mark and/or group servers together, You can set the VPS labels and color according to your usage of the server.

Setting labels on a VPS is easy as it gets:

First, Click on the “Manage” button beside the VM you wish to Label

First

Next, Switch to the “Label” Tab.

First

Next, Click on Add Label to add the label to the VPS.

First

Here, you can fill in the Label Text and select the Colour you wish to use from Red/Green/Blue. Then, Click on Add Label to Confirm.

First

After setting a label on a VPS it will look like this,

First

You can remove Label by clicking the Cross mark as shown in the below screenshot.

First

bookmark_borderUsing SSH keys with your KVM VPS on CrownPanel

Hello!

In this week’s feature highlight, we look at how to use SSH keys with your KVM VPS on CrownPanel.

SSH (Secure Shell) is a widely-used protocol for interacting with remote servers for configuration and general usage. SSH keys provide a more secure way of logging into a server with SSH than using a password alone.

Here just a few easy steps to add a new key and use it.

Click on “SSH Keys” in the navbar,

Click on “New Key” to add a new SSH key,

Once the key is added, switch to the “VPS List” from the navbar,

Click on the “Manage” button beside the VPS you wish to manage,

Switch to the “Reinstall” tab and you can now select your SSH key,

Done!