<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[memcached server and php-memcached]]></title><description><![CDATA[<p dir="auto">HI, I need to host a custom PHP app that is using memcache for query caching, so both memcached and php-memcached extension shall be available inside the container. Is this possible?</p>
]]></description><link>https://forum.cloudron.io/topic/3085/memcached-server-and-php-memcached</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 21:33:53 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3085.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Aug 2020 06:31:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to memcached server and php-memcached on Tue, 01 Sep 2020 09:16:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> said in <a href="/post/12678">memcached server and php-memcached</a>:</p>
<blockquote>
<p dir="auto">/etc/supervisor/conf.d/memcache.conf</p>
</blockquote>
<p dir="auto">Confirm this exists now <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">output of <strong>echo "stats settings" | nc localhost 11211</strong></p>
<p dir="auto"><img src="/assets/uploads/files/1598951752829-0d442845-118a-4aab-939e-583e3b383db8-image-resized.png" alt="0d442845-118a-4aab-939e-583e3b383db8-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/12690</link><guid isPermaLink="true">https://forum.cloudron.io/post/12690</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Tue, 01 Sep 2020 09:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Tue, 01 Sep 2020 09:07:33 GMT]]></title><description><![CDATA[<p dir="auto">Not sure what happened to my original git clone folder but by downloading the zip file from the memcache branch and then doing cloudron build --local &amp; cloudron install I got it working !</p>
]]></description><link>https://forum.cloudron.io/post/12689</link><guid isPermaLink="true">https://forum.cloudron.io/post/12689</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Tue, 01 Sep 2020 09:07:33 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Tue, 01 Sep 2020 09:06:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> said in <a href="/post/12636">memcached server and php-memcached</a>:</p>
<blockquote>
<p dir="auto">supervisorctl status</p>
</blockquote>
<p dir="auto">Yay!!!!</p>
<p dir="auto"><img src="/assets/uploads/files/1598951175236-c7d3fff5-3f47-45c5-a67a-bf853e20d50f-image-resized.png" alt="c7d3fff5-3f47-45c5-a67a-bf853e20d50f-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/12688</link><guid isPermaLink="true">https://forum.cloudron.io/post/12688</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Tue, 01 Sep 2020 09:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 22:02:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> Can you try <code>cloudron exec</code> and then check if <code>/etc/supervisor/conf.d/memcache.conf</code> exists? Otherwise, you are not using the correct build (not sure where the problem could be though).</p>
]]></description><link>https://forum.cloudron.io/post/12678</link><guid isPermaLink="true">https://forum.cloudron.io/post/12678</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 31 Aug 2020 22:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 19:42:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I'm on 4.5.2<br />
the command I used after git clone<br />
was cloudron build --local<br />
then cloudron install<br />
and that's it..</p>
]]></description><link>https://forum.cloudron.io/post/12672</link><guid isPermaLink="true">https://forum.cloudron.io/post/12672</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Mon, 31 Aug 2020 19:42:39 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 16:05:34 GMT]]></title><description><![CDATA[<p dir="auto">I think the image you are using is wrong. php-memcached is also installed in the same patch as memcached itself - <a href="https://git.cloudron.io/cloudron/php7.3-postgres-app/-/commit/12c40aba6a3f05ad245290882fef9743bafed7c5#6651ddff6eb82c840ced7c1dddee15c6e1913dd4_8_7" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/php7.3-postgres-app/-/commit/12c40aba6a3f05ad245290882fef9743bafed7c5#6651ddff6eb82c840ced7c1dddee15c6e1913dd4_8_7</a></p>
<p dir="auto">Can you tell me the command you used to build and update the image? Also, what is the CLI version ? It should be 4.5.2.</p>
<pre><code>$ cloudron --version
4.5.2
</code></pre>
]]></description><link>https://forum.cloudron.io/post/12645</link><guid isPermaLink="true">https://forum.cloudron.io/post/12645</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 31 Aug 2020 16:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 12:36:46 GMT]]></title><description><![CDATA[<p dir="auto">by inspecting php.ini in the container, I went to the extension section and added<br />
extension=memcache</p>
<pre><code>Aug 31 14:29:58 PHP Warning: PHP Startup: Unable to load dynamic library 'memcache' (tried: /usr/lib/php/20180731/memcache (/usr/lib/php/20180731/memcache: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/memcache.so (/usr/lib/php/20180731/memcache.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
</code></pre>
<p dir="auto">So does this mean the memcache server is not properly installed ?</p>
]]></description><link>https://forum.cloudron.io/post/12643</link><guid isPermaLink="true">https://forum.cloudron.io/post/12643</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Mon, 31 Aug 2020 12:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 12:20:49 GMT]]></title><description><![CDATA[<p dir="auto"><strong>I got this from the devs of the custom web app :</strong></p>
<p dir="auto">So far: postgresql and memcached servers available - OK;<br />
Missing: php-memcached extension (so I can't make use of the memcached server capabilities within a php script) - not OK</p>
<p dir="auto">Please also don't forget about nginx x-accel, can you add an entry to the nginx conf file for that?</p>
<hr />
<p dir="auto">Not sure how to proceed</p>
]]></description><link>https://forum.cloudron.io/post/12642</link><guid isPermaLink="true">https://forum.cloudron.io/post/12642</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Mon, 31 Aug 2020 12:20:49 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 10:38:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I think I did selected the correct branch, because when I do git branch I have this<br />
<img src="/assets/uploads/files/1598870050556-10a6b05b-62a2-454e-b2f7-d4d25f997c9b-image-resized.png" alt="10a6b05b-62a2-454e-b2f7-d4d25f997c9b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And I did the build and the install from this branch.</p>
<p dir="auto">I probably did something wrong tho since memcached is not even running and the test put in place by the devs goes like this :<br />
Fatal error: Uncaught Error: Class 'Memcached' not found in /app/data/public/index.php:24 Stack trace: #0 {main} thrown in /app/data/public/index.php on line 24</p>
<pre><code>if (!$connection = pg_connect ("host=".getenv("CLOUDRON_POSTGRESQL_HOST")." dbname=". getenv("CLOUDRON_POSTGRESQL_DATABASE") ." user=" . getenv("CLOUDRON_POSTGRESQL_USERNAME")." password=" .getenv("CLOUDRON_POSTGRESQL_PASSWORD") ."")) {
    $error = error_get_last();
    echo "Connection to the PostgreSQL database failed. Error was: ". $error['message']. "\n";
} else {
    echo "Connected to the PostgreSQL database.\n";
}

print_r(get_loaded_extensions());

$memcached = new Memcached();
$memcached-&gt;addServer('172.18.0.158', 11211);

phpinfo();
exit;

?&gt;
</code></pre>
]]></description><link>https://forum.cloudron.io/post/12637</link><guid isPermaLink="true">https://forum.cloudron.io/post/12637</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Mon, 31 Aug 2020 10:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Mon, 31 Aug 2020 10:32:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I have</p>
<pre><code>root@659d2867-1273-4c51-b7e7-765edf705c2d:/app/data# supervisorctl status
apache2                          RUNNING   pid 19, uptime 1 day, 22:13:15
cron                             RUNNING   pid 18, uptime 1 day, 22:13:15
</code></pre>
]]></description><link>https://forum.cloudron.io/post/12636</link><guid isPermaLink="true">https://forum.cloudron.io/post/12636</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Mon, 31 Aug 2020 10:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Sat, 29 Aug 2020 18:11:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> Can you check if memcached is running at all (just to make sure you selected the correct branch when building). You can do this with <code>supervisorctl status</code>.</p>
<pre><code>root@dfa78176-bd47-44ed-9d07-3e66265886b7:/app/data# supervisorctl status
apache2                          RUNNING   pid 22, uptime 0:00:15
cron                             RUNNING   pid 21, uptime 0:00:15
memcached                        RUNNING   pid 20, uptime 0:00:15
root@dfa78176-bd47-44ed-9d07-3e66265886b7:/app/data# echo "stats settings" | nc localhost 11211
STAT maxbytes 67108864
STAT maxconns 1024
STAT tcpport 11211
STAT udpport 0
STAT inter 127.0.0.1
STAT verbosity 0
....
</code></pre>
]]></description><link>https://forum.cloudron.io/post/12617</link><guid isPermaLink="true">https://forum.cloudron.io/post/12617</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 29 Aug 2020 18:11:44 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Sat, 29 Aug 2020 12:29:26 GMT]]></title><description><![CDATA[<p dir="auto">When I test <strong>echo "stats settings" | nc localhost 11211</strong> on the web terminal I get :<br />
localhost [127.0.0.1] 11211 (?) : Connection refused</p>
<p dir="auto">Do I need to make this test under a specific user perhaps ?</p>
]]></description><link>https://forum.cloudron.io/post/12604</link><guid isPermaLink="true">https://forum.cloudron.io/post/12604</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 29 Aug 2020 12:29:26 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Sat, 29 Aug 2020 12:14:31 GMT]]></title><description><![CDATA[<p dir="auto">Alright install ran smoothly, now just waiting for feedback from the devs.</p>
]]></description><link>https://forum.cloudron.io/post/12603</link><guid isPermaLink="true">https://forum.cloudron.io/post/12603</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Sat, 29 Aug 2020 12:14:31 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Fri, 28 Aug 2020 15:00:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> yay! Thank you so much!<br />
Going to test and see if now that fits their requirements!<br />
Thanks a lot!</p>
]]></description><link>https://forum.cloudron.io/post/12572</link><guid isPermaLink="true">https://forum.cloudron.io/post/12572</guid><dc:creator><![CDATA[rmdes]]></dc:creator><pubDate>Fri, 28 Aug 2020 15:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Thu, 27 Aug 2020 21:11:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/b247_eu" aria-label="Profile: b247_eu">@<bdi>b247_eu</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> I have pushed changes to the <code>memcached</code> branch. It removed redis addon and adds memcached instead. <a href="https://git.cloudron.io/cloudron/php7.3-postgres-app/-/commit/12c40aba6a3f05ad245290882fef9743bafed7c5" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/php7.3-postgres-app/-/commit/12c40aba6a3f05ad245290882fef9743bafed7c5</a></p>
<p dir="auto">One you install the app, memcached is running on port 11211 on localhost.  You can test this with:</p>
<pre><code>root@a95330af-2470-45e7-a7cb-fe170bd184ed:/app/data# echo "stats settings" | nc localhost 11211
STAT maxbytes 67108864
STAT maxconns 1024
STAT tcpport 11211
STAT udpport 0
STAT inter 127.0.0.1
STAT verbosity 0
STAT oldest 0
STAT evictions on
STAT domain_socket NULL
STAT umask 700
STAT growth_factor 1.25
</code></pre>
]]></description><link>https://forum.cloudron.io/post/12561</link><guid isPermaLink="true">https://forum.cloudron.io/post/12561</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 27 Aug 2020 21:11:50 GMT</pubDate></item><item><title><![CDATA[Reply to memcached server and php-memcached on Wed, 26 Aug 2020 21:17:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/b247_eu" aria-label="Profile: b247_eu">@<bdi>b247_eu</bdi></a> Currently, one has to make a custom package. I think <a class="plugin-mentions-user plugin-mentions-a" href="/user/rmdes" aria-label="Profile: rmdes">@<bdi>rmdes</bdi></a> wanted a similar thing at <a href="https://forum.cloudron.io/topic/1742/memcache-addon/6">https://forum.cloudron.io/topic/1742/memcache-addon/6</a>. I will share the package once I have something working.</p>
]]></description><link>https://forum.cloudron.io/post/12534</link><guid isPermaLink="true">https://forum.cloudron.io/post/12534</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 26 Aug 2020 21:17:12 GMT</pubDate></item></channel></rss>