آموزش نصب CageFS

آموزش نصب CageFS بعد از نصب CloudLinux یک مورد مهم وجود دارد و آن نیز CageFS است که برای راه اندازی کلود نیز ضروری می باشد ؛ بعد از نصب کلود باید cageFS نصب گردد.

آموزش نصب CageFS

برای نصب CageFS وارد محیط ssh  شوید و دستورات زیر را اجرا کنید


yum install cagefs
/usr/sbin/cagefsctl --init
mkdir /home/cagefs-skeleton ; ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton

بعد از انجام تمامی مراحل فوق  حال در فایروال خود که اکثرا  csf می باشد گزینه مربوط به کلود نیز برطرف شده ولی CloudLinux Disable ptrace فعال شده که برای امنیت آن نیز واجب است برای این امر دستورات زیر را اجرا نمایید :

nano /etc/sysctl.conf

 

و بعد از باز شدن می توانید فرمان زیر را در انتهای فایل فوق قرار دهید

kernal.user ptrace = 0

و بعد از ذخیره سازی که با Ctrl+X ld می باشد به خط فرمان رفته و دستور زیر را وارد کنید

sysctl -p

آموزش نصب CageFS

آموزش انگلیسی البته کمی متفاوت تر:

A Virtualized File System along with a Set of Tools to have each user in its own "Cage" is known as CageFS. This allows the availability of only safe binaries to users while not allows the users to see server configuration files. The installation process is detailed in the following text.

Minimum Requirements to Install CageFS

Minimum requirements to Install CageFS are CL5 with lve0.8.54 or later CL6 with lve1.2.17.1 or later CL7 Kernel and 7 GB Disk Space. Apart from these, you may also nedd up to 8 MB Space per user in /var directory and 5 to 20 GB in /usr/share directory.

Install cagefs on cpanel

You should use the following commands to install CageFS

Code:
$ yum install cagefs $ /usr/sbin/cagefsctl –init

This Command creates a skeleton directory of around 7 GB. If there is not enough space in /usr/share then you should use the commands given next to place the cagefs-skeleton into a different location
Code
$ mkdir /home/cagefs-skeleton $ ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton

If you want to place skeleton into /home directory on cPanel servers then you have to configure with the below option

  • cPanel WHM >> Server Configuration >> Basic cPanel/WHM Setup >> Basic Config >> Additional home directories.
  • Change the value to blank from the not default "home".

If you don't change these options then cPanel automatically create new accounts in wrong places.

3. CageFS automatically detect as well as configure all necessary files for the following

  • cPanel
  • DirectAdmin
  • Interworx
  • ISPmanager
  • LiteSpeed
  • MySQL
  • Plesk
  • PostgreSQL

4. To manage CageFS, Web interface is available for cPanel, DirectAdmin, Interworx, ISPmanager and Plesk 10+ while you will have to use command line tool for other control panels.

5. CageFS is disabled for all users by default but after doing the process above, you can start enabling CageFS for users.

Note : If you want to uninstall CageFS then you should properly follow the uninstall instructions.

آموزش نصب CageFS

توجه

کلیک

اگر با این مشکل آشنا هستید خودتان انجام دهید ولی اگر نمی دانید که این کار را چطور انجام دهید می توانید هم اکنون در ناحیه کاربری ثبت نام کرده و اطلاعات سایت را تیکت کنید تا با اندک هزینه ای کار شما را انجام دهیم . اگر خواستید می توانید برای مشاوره با شماره های 09179059350 و یا 07734824382 با ما در ارتباط باشید.