CategoriesCloudlinux Directadmin

How to install CloudLinux on DirectAdmin

CloudLinux is now available on DirectAdmin.

Before you begin, however, there are a few things to do first.

– Please note this tutorial is based on a fresh installation – if you are upgrading an existing installation, please backup the databases before continuing! –

In case you’re missing some, make sure to enter the pre-requirements provided below into the command terminal to make the process go much smoother.

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronies bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automaker libtool which patch mail bzip2-devel lost psmisc net-tools systemd-devel libdb-devel perl-DBI xfsprogs -y

If you haven’t installed DirectAdmin yet, run the following command:

wget http://www.directadmin.com/setup.sh;chmod 755 setup.sh;./setup.sh

Enable the ports in the firewall:

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=2222/tcp --permanent
firewall-cmd --reload

Now you can finally install CloudLinux:

Download the installer:

wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy

Activate your CloudLinux license or search through our store for the one you need (We issue licenses via IP):

sh cldeploy -i

Then reboot:

reboot

Now you need to install CloudLinux CageFS. CageFS offers complete separation from anyone else on your server, keeping you secure and with minimal service interruptions, regardless of the strain on resources.

yum install cagefs -y
/usr/sbin/cagefsctl --init

Next, you need to install their Alt-PHP (the CloudLinux PHP Selector):

yum groupinstall alt-php -y

DirectAdmin comes with MariaDB already installed by default. If you wish to install the MySQL Governor or check your version of MariaDB, enter the following commands.

mysql -V
yum install governor-mysql -y
/usr/share/lve/dbgovernor/db-select-mysql --mysql-version=mariadb55
/usr/share/lve/dbgovernor/mysqlgovernor.py --install

If you upgraded MariaDB using the CustomBuild 2.0 you will need to change 55 to one of the following:

100 for MariaDB v10.0
101 for MariaDB v10.1

If you still have questions or concerns about the CloudLinux installation, feel free to contact us by opening a support ticket or by using our live chat feature.

CategoriesCloudlinux Directadmin Linux Server

Converting CentOS server with DirectAdmin

CloudLinux OS Shared is simple to install. Here, you will learn how to convert a DirectAdmin based server from CentOS to CloudLinux OS Shared.

First, you will need a software activation key or an IP-based license. The 30-day trial key can be obtained for free by requesting it from the CLN portal via our website (note that CLN requires registration). If you have a paid license key, it can be found in CLN, or in your welcome email. For more information, refer to our “licensing” article.

To install, open an SSH connection to your server using your preferred SSH console application.

Here is the syntax we are using to execute the conversion process:

$ wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy$ sh cldeploy -k <activation_key> # if you have activation keyor $ sh cldeploy -i # if you have IP based license $ reboot

 

CloudLinux OS Shared install script is smart – it detects the environment, type of virtualization, control panel, specific hardware which might require additional drivers installation and more.

Once the installation is completed, the server needs to be rebooted. It is required in order to boot the server with our kernel, which is specifically crafted for the LVE support and limits operation.

To make sure that our server is running the correct kernel, we can access the server via SSH again and execute the “uname -a” command.

CloudLinux kernel contains “lve” in its name – when you see this, you’ll know that the server is running using the correct kernel.

Now let’s check the DirectAdmin interface. CloudLinux LVE Manager plugin has been installed during the conversion process. For more details regarding LVE Manager features and usage, please refer to this video.

You are all set – the CentOS server with DirectAdmin has been successfully converted to CloudLinux OS Shared.

CategoriesLinux Server

Hosting Performance By CloudLinux

CloudLinux OS เป็น Linux Distribution ที่มุ่งเน้นไปที่กลุ่มผู้ให้บริการ Shared Hosting​ เป็นหลัก ถูกพัฒนาโดยบริษัท CloudLinux, Inc.ตัว CloudLinux นั้นถูกพัฒนาขึ้นจากพื้นฐาน​ของ CentOS โดยใช้ OpenVZ kernel และ RPM Package Manager มีการ CloudLinux พบครั้งแรกในปี 2009 โดย Igor Seletskiy และได้ทำการออกตัว Initial Release ครั้งแรกเมื่อ มกราคม 2010 ​

 

blobid0.jpg

โดยนับตั้งแต่ CloudLinux เปิดตัวสู่ตลาดในปี 2010 เรื่อยมานั้น ปัจจุบันมีกลุ่มผู้ให้บริการ Shared Hosting ที่ใส่ใจเรื่องความมั่นคงความปลอดภัยมากกว่า 2,000 บริษัท คิดเป็นเครื่องเซิร์ฟเวอร์มากกว่า 20,000 เครื่อง ที่เลือกใช้ CloudLinux เพราะมันได้รับการปรับแต่งให้เหมาะสมที่สุดสำหรับ Shared Hosting โดยแยกลูกค้าแต่ละรายด้วย Technology ที่ชื่อ “Lightweight Virtualized Environment” (LVE) โดยที่ LVE แต่ละตัวได้รับการจัดสรรทรัพยากรจำนวนหนึ่งตามที่กำหนด​

เราสามารถสรุปเป็นประเด็นหลักๆ ได้ตามนี้

​1. Make Your Server Stable​  Stability คือกุญแจสู่ความสำเร็จในการทำ Shared Hosting เพราะเซิร์ฟเวอร์ที่เสถียรทำให้ทั้งคุณและลูกค้ามี​ความสุข ไม่มีปัญหาการใช้งานที่ผิดปกติและยังช่วยให้คุณเพิ่มจำนวนลูกค้าและขยายผลกำไรของคุณ ความเสถียรของ CloudLinux จะช่วยปกป้องเซิร์ฟเวอร์จากปัญหา Performance Spikes และป้องกันการทำงานที่ช้าลงจนถึงระดับหยุดทำงาน โดยการจำกัด และแบ่งทรัพยากรต่อ User ซึ่งช่วยลดการใช้งานทรัพยากรเซิร์ฟเวอร์ที่ผิดปกติ และ ยังควบคุมตนทุนในการให้บริการอย่างคุ้มค่า​
Lightweight Virtualized Environment เป็นเทคโนโลยีระดับ Kernel ที่แยกผู้เช่าแต่ละรายออกเป็นสภาพแวดล้อมของตนเองและจัดหาทรัพยากรจำนวน (CPU, IO, Memory,Number of Process ฯลฯ ) ที่สามารถใช้งานได้ – เฉพาะสำหรับลูกค้าแต่ละราย . หากผู้เช่าถึงขีดจำกัด ผู้ใช้รายอื่นจะไม่สังเกตเห็นอะไรเลยเนื่องจากผู้กระทำผิดถูกควบคุมปริมาณทันที สิ่งนี้จะช่วยลดการใช้ทรัพยากรทรัพยากรเซิร์ฟเวอร์เกิน Resource

blobid2.png

2. Make Your Server Secure​ ด้วยเหตุบริการ Shared Hosting ที่มีระบบเซิร์ฟเวอร์ที่เป็น Linux Based นั้นเมื่อมี User จำนวนมากอยู่บนระบบหากมีผู้ใช้บริการรายใดรายนึงมีช่องโหว่ใน Coding ของตนเองจนส่งผลให้ถูก Hack เข้ามาในระบบ สิ่งนี้ย่อมมีโอกาสสร้างปัญหาให้ผู้ให้บริการ Shared Hosting ได้ เพราะโดยดั้งเดิมของระบบมันยังมีช่องให้เหล่าผู้ไม่ประสงดีเหล่านี้เชื่อมโยงแพร่กระจายปัญหาไปยัง User รายอื่นๆบนเครื่องเซิร์ฟเวอร์ได้ ​CloudLinux สามารถจัดการปัญหานี้ได้ ด้วยเทคโนโลยีของ CageFS และ SecureLinks ทำให้ User จะได้รับการจำลองเสมือนในระบบไฟล์ของตัวเองป้องกันไม่ให้ User แต่ละคนเห็นผู้ใช้รายอื่นบนเซิร์ฟเวอร์ได้

 

blobid3.png      blobid4.jpg       blobid5.jpg

 

3. Make Your Server Profitable​ ความเสถียรในระดับสูงซึ่ง CloudLinux มีนั้นทำให้เซิร์ฟเวอร์ทุกเครื่องมีประสิทธิภาพมากขึ้นและช่วยให้สามารถเพิ่มจำนวนลูกค้าบนเซิร์ฟเวอร์แต่ละเครื่องได้โดยคุ้มค่ากับทรัพยากรที่มี สิ่งนี้จะช่วยให้คุณสามารถปรับปรุงการใช้ประโยชน์จากเซิร์ฟเวอร์ของคุณได้อย่างมาก อีกทั้งตัวระบบเซิร์ฟเวอร์ที่มีความปลอดภัยสูงก็จะช่วยให้ลูกค้าของคุณมีความมั่นใจและอยากใช้บริการที่ปลอดภัยด้วย​
สิ่งนี้สามารถทำได้ด้วยการตั้งค่าขีดจำกัดของทรัพยากรสำหรับลูกค้าแต่ละราย ทำให้เมื่อผู้ใช้ถึงขีด จำกัด คุณสามารถเพิ่มยอดขายให้สูงขึ้นหรือวางแผนได้ดีขึ้นโดยไม่ย้ายไปยังเซิร์ฟเวอร์อื่น นอกจากนี้ด้วยการสร้างแพ็คเกจโฮสติ้งตามการใช้ทรัพยากรและคุณสมบัติความยืดหยุ่นเช่นการสนับสนุนเวอร์ชัน PHP ต่างๆคุณสามารถเปลี่ยนนโยบายการกำหนดราคาของคุณได้อย่างสมบูรณ์

blobid6.png            blobid7.jpg            blobid8.jpg                                                              blobid9.jpg

4. Make Your Server High-Performing​  ระบบ CloudLinux เสนอชุดของคุณสมบัติที่มีประสิทธิภาพที่เพิ่มประสิทธิภาพการทำงานของเซิร์ฟเวอร์ของคุณอย่างมาก ตัวอย่างเช่น mod_lsapi เร็วกว่าวิธีอื่น ๆ ในการให้บริการ PHP กับ Apache

blobid10.jpg                             blobid11.jpg

 

5. Highly Compatible    ระบบ  CloudLinux สามารถทำงานได้ร่วมกันกับ Control Panels ที่เด่นๆ ในปัจจุบันได้โดยที่ Panels เหล่านั้น Based on CentOS และ RHEL

                    blobid12.jpg