<?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[LAMP stack Composer: Cannot require any package, cannot write into cache]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have noticed that Composer comes pre-installed with the Cloudron LAMP stack. If I change into a terminal, I can use it by executing "composer". However, if I run the following command:</p>
<pre><code>root@5585a070-9420-4f84-bd98-5198b471ffb4:/app/data/public# composer require drush/drush
Cannot create cache directory /root/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /root/.composer/cache/files/, or directory is not writable. Proceeding without cache
Do not run Composer as root/super user! See https://
</code></pre>
<p dir="auto">I see that Composer is not able to create its cache. Also it gets killed, when I try to require a package:</p>
<pre><code>root@5585a070-9420-4f84-bd98-5198b471ffb4:/app/data/public# composer require drush/drush
Cannot create cache directory /root/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /root/.composer/cache/files/, or directory is not writable. Proceeding without cache
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^9.5 for drush/drush
./composer.json has been updated
Cannot create cache directory /root/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /root/.composer/cache/files/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
root@5585a070-9420-4f84-bd98-5198b471ffb4:/app/data/public#
</code></pre>
<p dir="auto">What am I doing wrong? Is there an error on your end? Could not find any info about Composer usage. I need Composer for my PHP app.</p>
<p dir="auto">Kind regards<br />
Peter</p>
]]></description><link>https://forum.cloudron.io/topic/1700/lamp-stack-composer-cannot-require-any-package-cannot-write-into-cache</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 02:14:47 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/1700.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Mar 2019 18:55:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LAMP stack Composer: Cannot require any package, cannot write into cache on Wed, 06 Mar 2019 03:50:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jepster" aria-label="Profile: jepster">@<bdi>jepster</bdi></a> We have pushed an update that should make it simpler now. Also updated the docs - <a href="https://cloudron.io/documentation/apps/lamp/#running-composer" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/apps/lamp/#running-composer</a></p>
]]></description><link>https://forum.cloudron.io/post/3148</link><guid isPermaLink="true">https://forum.cloudron.io/post/3148</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 06 Mar 2019 03:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to LAMP stack Composer: Cannot require any package, cannot write into cache on Wed, 06 Mar 2019 00:21:44 GMT]]></title><description><![CDATA[<p dir="auto">For reference, the killed issue is also documented here - <a href="https://github.com/composer/composer/issues/1815" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/composer/composer/issues/1815</a></p>
]]></description><link>https://forum.cloudron.io/post/3147</link><guid isPermaLink="true">https://forum.cloudron.io/post/3147</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 06 Mar 2019 00:21:44 GMT</pubDate></item><item><title><![CDATA[Reply to LAMP stack Composer: Cannot require any package, cannot write into cache on Tue, 05 Mar 2019 23:19:05 GMT]]></title><description><![CDATA[<p dir="auto">The <code>Killed</code> at the end is because composer ran out of memory. By default, the package only has 256MB memory, increasing it should fix the problem.</p>
<p dir="auto">As for running composer as root, the packaging is to blame. I am looking into fixing this.</p>
]]></description><link>https://forum.cloudron.io/post/3146</link><guid isPermaLink="true">https://forum.cloudron.io/post/3146</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 05 Mar 2019 23:19:05 GMT</pubDate></item></channel></rss>