Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
J

jepster

@jepster
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • LAMP stack Composer: Cannot require any package, cannot write into cache
    J jepster

    Hi,

    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:

    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://
    

    I see that Composer is not able to create its cache. Also it gets killed, when I try to require a package:

    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#
    

    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.

    Kind regards
    Peter

    LAMP lamp

  • Composer is installed, but cannot require any package
    J jepster

    Hi,

    I have seen that the Composer PHP package manager is installed via the LAMP stack. However, I cannot use it. Tried to install a package globally:

    root@5585a070-9420-4f84-bd98-5198b471ffb4:/# composer global require drush/drush
    
    In GlobalCommand.php line 77:
    
      chdir(): No such file or directory (errno 2)
    
    
    global <command-name> [<args>]...
    
    root@5585a070-9420-4f84-bd98-5198b471ffb4:/#
    

    What am I doing wrong here?

    Kind regards
    Peter

    LAMP lamp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search