How to install aaPanel web hosting control panel on CentOS 7 or Ubuntu

aaPanel is an open-source web hosting control panel to manage a hosting service. For e.g database, websites and Cron and many more, just like Webmin. Also, you can refer top control panel to manage hosting servers. KLCWEB will see how to install and set up it on CentOS 6/7/RHEL or Ubuntu 19.04/18.04/17.04 Linux server.

Install aaPanel Linux on CentOS, Debian or Ubuntu

We are explaining the steps of a free open-source and Web-based control panel on CentOS. However, the steps will remain for other Linux OS like Ubuntu and Debian.

1. Login to CentOS serve

Firstly you need to login to your CentOS or which Linux OS you have.

2.Install Wget

After, login you need to install Wget by the following command. Which will help you to get the required installation package.

sudo yum install wget
Wget

3. Download the installation package

Once, you have done Wget installation. Now, time to install aaPanel package using the Wget command.

For, CentOS and Redhat 7/8

wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh

For, Ubuntu and Debian OS

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh
Downloading aapanel

4.) Run install.sh script

As soon as package downloading completed, we need to run the install.sh script to complete aapanel installation.

bash install.sh

And It will ask you “Do you want to install aapanel to /www directory now.” Press Y to continue

5.) Login page aaPanel web control panel

After run install.sh you will get details to access aapanel on the same command screen. The URL should localhost/number.

aapanel

6.) Install required software packages

On the Dashboard of the aaPanel web hosting, the first time, it will ask you to set up between LNMP or LAMP, click the button and install the webserver environment you want. However, we can install them later from the app section of this Linux panel.

Software packages

After install aapanel software packages, you can set up a panel per your needs. You are able to configure, firewall, Docker installation from the Software store, not docker you can install python, Postgres SQL, mail server, Java project manager…etc from the app store.

aapanel app store
Tagged :

What is a Web Server? and types of the Web Servers

Web server basically refers to CPU that receives requests from the internet and sends information to those clients.

It can widely be understood as a tool that I ready with and subsidized by using positive particular applications. That enables it to offer services to other devices that share this information with the network.

A Web Server mainly refers to the server hardware device or software that stores the site content and uses it to host the websites and produce the same results when requested by the clients on the World Wide Web.

Types of the web servers

  1. Apache HTTP Web Server
  2. Internet Information Services (IIS)
  3. Lighttpd
  4. Sun Java System Web Server
  5. LiteSpeed server
  6. Node.js Web Server

1.) Apache HTTP Web Server

The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation.

Some other noteworthy features of the Apache HTTP Server are:

  • It can be easily installed on multiple platforms and function properly.
  • Out of all the types of web servers available, the Apache HTTP servers are much more stable and easier in terms of functionality, especially the latest released versions which are capable of handling a distinguishingly greater number of client requests when compared to the other versions.
web server

2.) Internet Information Services (IIS)

Internet Information Services is an extensible web server software created by Microsoft for use with the Windows NT family. IIS supports HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP and NNTP.

The Internet Information Services is an extensible Web Server by Microsoft which was created with the Windows NT family.

It is because of this that Microsoft maintains this product and it works with each and every Windows Operating System Platform.

IIS web server

3.) Lighttp Web Server

Lighttpd is an open-source web server optimized for speed-critical environments while remaining standards-compliant, secure, and flexible.

Lighttpd gets its name from a portmanteau of ‘light’ and ‘httpd’ and has been nicknamed ‘lighty’. Lighttpd defines itself in terms of security, speed, compliance, and flexibility.

Lighttp web server

4.) Sun java system

Basically, the Sun Java System is a web server from Sun that runs under Windows, Solaris, and HP- UX and is known for supporting the JavaServer Pages (JSP) technology, Server- Side JavaScript (SSJS), and Java Servlets.

Sun Microsystems used the brand Sun Java System to market computer software and this brand superseded Sun ONE.

Sun Java system

5.) Light Speed web server

LiteSpeed Web Server, is a proprietary web server software. It is the 4th most popular web server, estimated to be used by 8.1% of websites as of December 2020. LSWS is developed by privately held LiteSpeed Technologies.

The LiteSpeed Web Servers are quite compatible with the features of the Apache Web servers since they use similar configurations.

Light speed web server

6.) NODE.JS WEB SERVER

Node.js is known for executing JavaScript code outside of a browser. It is an open-source, cross-platform, JavaScript runtime environment and enables developers to use JavaScript for writing commands.

Some of the prominent features of Node.js Web Server are:

  • Owing to the fact that it is built on Google Chrome’s V8 JavaScript Engine, it is very fast in code execution.
  • Even though it is based on the Single-threaded model, the Node.js Web Server is highly scalable which gives it an upper hand over the other traditional Web Servers.

However, KLCWEB offers all kind of server you want, Let’s connect with Worldwide web.

Tagged :

How to install Apache in Ubuntu?

Apache is open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. In this article, we will guide how to install Apache server in Ubuntu?

How to install Apache in Ubuntu?

How to install Apache in Ubuntu?

1.) you need to install latest version of meta-package apache2.0 by running the below command.

sudo apt update
sudo apt install apache2

Once you run these command al required package will be installed and you can check it by typing your server IP. If you will able to see the below screen on your server, it means new package were installed correctly.

Create a website…

Apache comes with its default site, you can edit the site contents from /var/www/HTML or you can directly edit the Apache host file which is located at /etc/apache2/sites-enabled/000-default.conf.You are able to modify apache to handle incoming requests and rub multiple websites on the same server. Let’s create a new site in Apache.

How to create a new website?

We strongly recommended that to leave the default Apache site that’s pointing to www.yourdomain.com and create a new virtual host(subsite) E.x.: klc.klcweb.com

1.) create a new folder for a new site inside var > www by running the below command. I am mentioning KLCWEB as a folder name you can give any name of the site folder. It will work

sudo mkdir /var/www/klcweb/

2.) Now, you need to create html file for testing purpose inside var > www > klcweb by using this command.

cd /var/www/klcweb/
nano index.html

3.) You can create your own testing HTML code or you can simply copy and paste the below code.

<html>
<head>
  <title> Apache working </title>
</head>
<body>
  <p> Hello, this is a first HMTL page to check how Apache works on Ubuntu server? </p>
</body>
</html>

4.) Now, we need to create virtual host configuration file to run test.klcweb.com

How to create a virtual host configuration file?

First, go to the virtual host file by following the below command.

cd /etc/apache2/sites-available/

However, Apache comes with the default site so we need to go with klc.cnf file by using this command.

sudo cp 000-default.conf klc.conf

Once you arrived at virtual host configuration file, you need to edit this file.

sudo nano klc.conf

If Apache facing error you can reach at using serveradmin’s email address “Serveradmin [email protected]

Now, Default root directly is must be to point site files are hosted on this server.

DocumentRoot /var/www/klcweb/

The default file did not come with the server name so you will have to set and find it by using the command.

ServerName klc.klcweb.com

It will help you to run the right website you have created for a testing purpose instead of running the Apache default site.

Last and final step is activate virtual host

How to activate virtual host?

After installing Apache and configure it, you have to active virtual hosting by running the below command.

sudo a2ensite klc.conf

After running this command, you might able to see the below output result.

Enabling site klc.
To activate the new configuration, you need to run:
  service apache2 reload
root@ubuntu-server:/etc/apache2/sites-available#

In output screen, you can see server asks to restart the apache by hitting the displayed command.

service apache2 reload

After restating the server, browse the website in a browser.

Tagged : /

How to install an SSL certificate on CentOS?

KLCWEB always cares about Security let’s discuss How to install an SSL certificate on CentOS? A trusted 1/3 birthday celebration known as a Certificate Authority (CA) problems the three varieties of virtual certificates: Domain Validation (DV), Organization Validation (OV), and Extended Validation (EV). The CA ensures the digital certificate’s authenticity with a virtual signature so that quit users (or their software program) can accept as true that the server is actually the website it purports to be. Not sure which virtual certificates are satisfactory? More…

How to install an SSL certificate on CentOS?

How to install an SSL certificate on CentOS?

Installing SSL digital certificates for the Apache HTTPd won’t bust the brain. However, in case you hit an obstacle on CentOS or Fedora even as running through the subsequent steps, drop me a line inside the remarks phase at the lowest of this put up.

1. Log in to the server as root using SSH.

2. Check the OpenSSL client software.

Make sure the OpenSSL client software needed for a secure website is in place with:

# yum install mod_ssl openssl

This will either install OpenSSL or inform you that it’s already present.

3. Make a directory to store the server key and certificate.

# mkdir /etc/httpd/ssl

4. Copy the SSL certificate file and server key to the new directory.

5. Edit the ssl.conf or httpd.conf file. Below is an example using the vi text processor.

# vi /etc/httpd/conf.d/ssl.conf

Once open, edit the file so that it points to the correct files in the web server. It will look something like this:

DocumentRoot /var/www/html2
ServerName www.your_very_own_domain.com
SSLEngine on
SSLCertificateFile /path/to/your_very_own_domain.crt
SSLCertificateKeyFile /path/to/your_private.key
SSLCertificateChainFile /path/to/DigiCertCA.crt

Be sure to uncomment any of the above lines, and use the correct details for the website.

SSLCertificateChainFile instead of SSLCertificateKeyFile.

6. Check to ensure the Apache configuration files does not contain any errors.

# apachectl configtest

7. Restart the Apache server.

Use the following command to restart the Web server:

# /etc/init.d/httpd restart
Tagged : /