<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.balinskis.lt/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.balinskis.lt/feed.php">
        <title>MyWiki - cagefs</title>
        <description></description>
        <link>https://wiki.balinskis.lt/</link>
        <image rdf:resource="https://wiki.balinskis.lt/_media/wiki:dokuwiki.svg" />
       <dc:date>2026-04-18T07:42:21+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.balinskis.lt/cagefs:cagefs?rev=1556230317&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.balinskis.lt/cagefs:install?rev=1518530275&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.balinskis.lt/cagefs:nodejs?rev=1508245670&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.balinskis.lt/cagefs:php-per-directory?rev=1530083116&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.balinskis.lt/cagefs:slab?rev=1534081305&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.balinskis.lt/_media/wiki:dokuwiki.svg">
        <title>MyWiki</title>
        <link>https://wiki.balinskis.lt/</link>
        <url>https://wiki.balinskis.lt/_media/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://wiki.balinskis.lt/cagefs:cagefs?rev=1556230317&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-04-25T22:11:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cagefs</title>
        <link>https://wiki.balinskis.lt/cagefs:cagefs?rev=1556230317&amp;do=diff</link>
        <description>CageFS notes

Here I will write some useful notes for Cloudlinux CageFS.

How to

	*  Add nodejs to CageFS

Useful links

	*  &lt;http://docs.cloudlinux.com/index.html?cagefs.html&gt;</description>
    </item>
    <item rdf:about="https://wiki.balinskis.lt/cagefs:install?rev=1518530275&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-02-13T13:57:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>install</title>
        <link>https://wiki.balinskis.lt/cagefs:install?rev=1518530275&amp;do=diff</link>
        <description>CageFS install

Before install:
If you don't have enough disk space in /usr/share, use following commands to have cagefs-skeleton being placed in a different location.


mkdir /home/cagefs-skeleton
ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton</description>
    </item>
    <item rdf:about="https://wiki.balinskis.lt/cagefs:nodejs?rev=1508245670&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-10-17T13:07:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>nodejs</title>
        <link>https://wiki.balinskis.lt/cagefs:nodejs?rev=1508245670&amp;do=diff</link>
        <description>Installing NODEJS to CageFS

First of all enable epel repository:


yum install epel-release -y


Install NODEJS with npm and other dependencies:


yum install nodejs npm http-parser libuv -y


Optional install gulp:


npm install -g gulp


Configure CageFS to support gulp:</description>
    </item>
    <item rdf:about="https://wiki.balinskis.lt/cagefs:php-per-directory?rev=1530083116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-06-27T07:05:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>php-per-directory</title>
        <link>https://wiki.balinskis.lt/cagefs:php-per-directory?rev=1530083116&amp;do=diff</link>
        <description>Cloudlinux PHP per directory

More info: &lt;https://www.cloudlinux.com/cloudlinux-os-blog/entry/different-php-versions-per-directories-using-mod-lsapi&gt;

I assume, that on DA is used lsphp handler by default.

1) Create /etc/container/php.handler with this:


application/x-lsphp52 /opt/alt/php52/usr/bin/lsphp
application/x-lsphp53 /opt/alt/php53/usr/bin/lsphp
application/x-lsphp54 /opt/alt/php54/usr/bin/lsphp
application/x-lsphp55 /opt/alt/php55/usr/bin/lsphp</description>
    </item>
    <item rdf:about="https://wiki.balinskis.lt/cagefs:slab?rev=1534081305&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-12T13:41:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>slab</title>
        <link>https://wiki.balinskis.lt/cagefs:slab?rev=1534081305&amp;do=diff</link>
        <description>SLAB CACHE optimize.

More info here: &lt;https://cloudlinux.zendesk.com/hc/en-us/articles/115004738025-What-to-do-if-Slab-cache-grows-and-overall-server-performance-is-bad&gt;

Check slab:


cat /proc/meminfo | egrep &quot;MemTotal|Cached|Slab|SReclaimable|Buffers&quot;


Paste to /etc/sysctl.conf


vm.vfs_cache_min_ratio=0
vm.vfs_cache_pressure=1000


DROP caches:


echo 2 &gt; /proc/sys/vm/drop_caches</description>
    </item>
</rdf:RDF>
