Not to each of you, for example, will pleasantly sit in the console and to set necessary for software, or to make management of your websites through a touch the command line. At such moments many webmasters are come to the rescue by control bars a hosting and as it is pleasant when this panel — qualitative and free software. Quite recently we already told about one free software product, and today it will be a question of one more interesting control bar a hosting, namely of "coin" …
I think many of you guessed that it will be a question of CentOS Web Panel (CWP). Unlike many other CWP control bars will allow to unroll automatically a complete stack of LAMP with a caching at the level of the Web server by means of Varnish Cache — it is remarkable a solution for storage of the "hot" cached content of your web pages in random access memory. It will allow to accelerate your website, and at the same time will reduce load of the processor.
But we will return to the panel, before installation it would be desirable to select its several primary benefits:
- the possibility of switching of versions of PHP is by default available — the administrator can install on the side in several clicks the necessary version, and the user in turn can select the necessary audit of PHP for the websites;
- the panel is oriented both to management of servers, and to rendering of services of a hosting (support of tariff plans, restrictions, etc.);
- there is a possibility of counteraction to small DDoS-attacks and blockings of an unwanted traffic due to use of expansions for work with CSF (Config Server Firewall);
- from a box of CWP supports CloudLinux — the commercial CentOS expansion oriented first of all to a hosting providers;
- quite convenient hosting of projects with stream broadcasting of video due to the built-in support of ffmpeg;
- CWP has the integrated mechanism of fight against spam based on AmaVIS, ClamAV, OpenDKIM, checks of RBL, SpamAssassin;
- the panel supports placement on the server as own name servers, and use of FreeDNS;
- existence of the built-in monitors.
You can study the complete list of opportunities CentOS Web Panel on the official site of the software product on the following link. As it is possible to notice the majority of commercial management systems the server and a hosting have no such wide range an opportunity and what already to speak about free products.
As for system requirements, according to the statement of developers to be necessary for us the server at least from 512 MB random access memory (for the 32-bit version of OS) and the set "coin", namely CentOS 6.x. If you want to enjoy all opportunities of this panel, for example such as anti-virus scanning of mail, then onboard your "machine" there have to be not less than 4 GB OZU. CWP also supports such operating systems as RedHat 6.x and CloudLinux 6.x.
Preparation of the server
After the hosting provider provided the server with CentOS it is necessary to make several useful effects before the CWP installation. If you did not set the utility of Wget — the console program for loading of files for a network, then are connected to "machine" on SSH and we enter the following command:
yum -y install wget
Further we will update your server by means of command:
yum -y update
Also we do not forget to reboot "machine" that changes became effective:
Now we are ready to the CentOS Web Panel installation. We pass into directory/usr/local/src:
Where we load the latest version of installation files:
If the main link does not work, then use the following command:
Then we start installation:
Installation process can last about 30 minutes therefore quietly go on kitchen behind a cup of good drink (tastes at everyone the). As soon as the panel is established in the console, you will see the following message:
############################# # CWP Installed # ############################# go to CentOS WebPanel Admin GUI at http://SERVER_IP:2030/ http://xxx.xxx.xxx.xxx:2030 SSL: https://xxx.xxx.xxx.xxx:2031 --------------------- Username: root Password: ssh server root password MySQL root Password: xxxxxxxxxxxx
Do not forget to save accesses, in particular the password of the superuser of MySQL. Later, according to the instruction of developers, we reboot the server by means of the ENTER button. If it did not yield result, then we use the reboot command which we remembered earlier. In attempt again to be connected to the server on SSH you will see a welcome screen of CWP on which it will be displayed short information on the registered users and the current situation on use of disk space:
******************************************** Welcome to CWP (CentOS WebPanel) server Restart CWP using: service cwpsrv restart ******************************************** if you can not access CWP try this command: service iptables stop 15:20:19 up 23 min, 1 user, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 18.104.22.168 15:20 1.00s 0.01s 0.01s -bash Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-root 33G 1.9G 30G 6% / tmpfs 504M 0 504M 0% /dev/shm /dev/vda1 485M 68M 392M 15% /boot /dev/mapper/vg0-temp 2.0G 369M 1.5G 20% /tmp
Let's come into a panel by means of the favourite browser, using one of the following links, the same accesses, as to the server:
http://xxx.xxx.xxx.xxx:2030 SSL: https://xxx.xxx.xxx.xxx:2031
After successful authentication we get on a Dashboard menu page, from here you will be able to manage all settings of the CWP panel. We will try to tell about each block of a panel briefly:
- Navigation — the menu of navigation for viewing of different settings of each service;
- Top 5 Processes — displays in real time of 5 most "gluttonous" processes on your server;
- Disk Details — this block provides information on disks of your "machine";
- Service Status — shows a current status of services, and also gives the chance to manage them in case of need (to start, stop, etc.);
- System Stats — displays consumption of random access memory, the number of processes and letters in queue;
- Application Version — shows versions of installed applications, such as Apache, PHP, MySQL and FTP;
- System Info — displays information on processor model, quantity of kernels, their frequency, the version to an operating system, server operating time, etc.;
- CWP Info — shows what name servers are configured for your "machine" at present, and also displays the IP address of the server and the version of a panel.
Further we will carry out setup of several key parameters which are necessary for us for work with CWP. For a start we will configure name servers. For this purpose we go to the section of the DNS Functions menu and we select the item Edit Nameservers IPs.
We specify the name servers and we click Save changes. To study the instruction of the DNS (BIND) setup use the following link which is also available on a page of Edit Nameservers IPs.
The shared setup of the IP address will be the following step and mails of the superuser are very important actions for placement of the websites on your server. As a rule IP servers it is specified as it is, but to be convinced of it, we pass into the section of the CWP Settings menu, and further we select Edit Settings.
We see that in the field of Shared IP most likely there is an IP address of your "machine" (if it not so, then specify it), and in the field of Root Email you need to specify the mail. After the indication of all necessary data we do not forget to click Save changes. Now CWP is ready to accept the websites for placement.
You remember that the panel is capable to provide services of a hosting. In CWP you have an opportunity to configure any quantity of tariff plans. For this purpose we pass into the section of the Packages menu and we select the item Add a Package. We fill all necessary fields according to that quantity of resources of the server which you are ready to provide potential the client, and as usual, we do not forget to apply changes — in given cases by clicking of the Create button.
To add the domain to a panel you have to have at least one user account. We go to User Accounts, we select New Account and we create the account. I pay your attention that by default access to shell for the new created user is turned off. I advise several times think before activating this functionality to the clients. Also here it is possible to set limits of inode for each user. After filled all fields we click Create.
Now let's add the new domain. For this purpose we pass into the section of the Domains menu and we select the item Add Domain. We specify the necessary domain, we appropriate it to the corresponding user and we fix all actions by the Create button.
The panel is standardly configured has to consume a small amount of resources of your server, let's it check. For check of consumption of OZU we will be connected to the server on SSH and we will enter the following command:
On the screen of our "machine" such data were displayed here:
total used free shared buffers cached Mem: 1006 522 483 0 162 218 -/+ buffers/cache: 142 864 Swap: 4095 0 4095
I think, you will have a similar result. As we see from the total amount of random access memory in 1 GB about a half — 522 MB is used that quite meets with the statement of developers. Such consumption of resources is a hosting, quite low for control bars.
Also installation by default already contains the last stable release of PHP with the Zend Optimizer application and the utility of ionCube PHP Loader that it is easy to check by means of command:
In the console at you the following information has to be displayed:
PHP 5.4.45 (cli) (built: Dec 5 2015 14:22:25) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.19, Copyright (c) 2002-2015, by ionCube Ltd.
If you loyally treat CentOS and about $13 in a month of the budget of a hosting (for comparison we took the cost of the license ISPmanager Business) are ready to enclose in iron, but not software, then the CWP panel you like be pleasant. Perhaps, just now you think of start the first a hosting server why and really not to direct these funds from licensed software to lease of more productive "machine" and by that to make the potential clients a little bit happier. Not always what is free — it is bad. It is not necessary to be afraid of something new, at first sight unknown.
Test for health, and at you everything will turn out!
To be continued …
This article is a translation of the original post at habrahabr.ru/post/272633/
If you have any questions regarding the material covered in the article above, please, contact the original author of the post.
If you have any complaints about this article or you want this article to be deleted, please, drop an email here: firstname.lastname@example.org.
We believe that the knowledge, which is available at the most popular Russian IT blog habrahabr.ru, should be accessed by everyone, even though it is poorly translated.
Shared knowledge makes the world better.