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


Skip to content

LAMP

120 Topics 785 Posts
  • Using MongoDB instead of MySQL in a LAMP app?

    Moved Solved
    7
    0 Votes
    7 Posts
    626 Views
    S

    @girish sorry for spamming this old thread. I added a complete new post: https://forum.cloudron.io/topic/4203/git-push-ci-cd-workflow-for-the-lamp-app

  • 0 Votes
    9 Posts
    694 Views
    girishG
    apt install -y cron apache2-dev php7.4 php7.4-{bcmath,bz2,cgi,cli,common,curl,dba,dev,enchant,fpm,gd,gmp,imap,interbase,intl,json,ldap,mbstring,mysql,odbc,opcache,pgsql,phpdbg,pspell,readline,soap,sqlite3,sybase,tidy,xml,xmlrpc,xsl,zip} libapache2-mod-php7.4 php-{apcu,date,geoip,gettext,imagick,gnupg,mailparse,pear,redis,twig,uuid,validate,zmq} ghostscript libgs-dev ffmpeg && \

    is what we install. exiftool is there in the base image.

  • How to enable LDAP support in LAMP app?

    Moved Solved
    13
    1 Votes
    13 Posts
    1k Views
    girishG

    The latest LAMP app now has LDAP addon enabled. For existing installations, LDAP will still be off (sorry).

  • Changing DocumentRoot

    Solved
    3
    4 Votes
    3 Posts
    260 Views
    A

    @girish Thank you girish

  • PHP mailparse extension/modul

    Solved
    7
    0 Votes
    7 Posts
    297 Views
    A

    @girish said in PHP mailparse extension/modul:

    @andirahmat OK, I learnt a bit more about this now.

    PECL is PHP extensions written in C. PEAR is PHP extensions written in PHP.

    Luckily, as you pointed out mailparse is already there in apt. So, I have pushed an update for the PHP 7.4 app to have mailparse in it. I also added it to the php-postgres repo.

    Thank you! I'll try again.

  • PostgreSQL and Memcached in LAMP

    10
    0 Votes
    10 Posts
    320 Views
    rmdesR

    @girish Hmm indeed, that's bad... couldn't some kind of basic auth be used instead a bit like the Youtube-DL app ?

  • Support at command in LAMP app

    Moved Solved
    5
    0 Votes
    5 Posts
    276 Views
    alex-adestechA

    @girish you're a genius man! I think it should work, I'll try it and come back. Thanks!!

  • php version 5.6

    2
    0 Votes
    2 Posts
    206 Views
    nebulonN

    This is unlikely to be supported by a specific LAMP app. In such a case it is probably better to build a customized app package following the documentation at https://cloudron.io/documentation/custom-apps/tutorial/

  • LDAP support in php

    2
    0 Votes
    2 Posts
    216 Views
    nebulonN

    Currently the Lamp app still does not have LDAP enabled for the same reasons about the username:password mentioned in the linked forum thread.

  • Lamp App with Git

    Moved Solved
    5
    0 Votes
    5 Posts
    525 Views
    murgeroM

    @girish & @jdelon02

    I believe LAMP app supports cron, in that case use the following script to auto-pull from a git repo whenever an update is pushed to that repo:

    Put in /app/data/updateGit

    #!/bin/sh ## CD to the path where the app is installed. cd /app/data/public UPSTREAM=${1:-'@{u}'} LOCAL=$(git rev-parse @) REMOTE=$(git rev-parse "$UPSTREAM") BASE=$(git merge-base @ "$UPSTREAM") if [ $LOCAL = $REMOTE ]; then echo "Up-to-date" elif [ $LOCAL = $BASE ]; then echo "Need to pull" git pull elif [ $REMOTE = $BASE ]; then echo "Need to push? Some files changed / commited here, this should not have happened." else echo "Diverged?? Help!" fi

    Then in /app/data/crontab:

    */5 * * * * bash /app/data/updateGit 2>&1 ## Or if you wanna avoid filling logs: */5 * * * * bash /app/data/updateGit 2>&1 > /dev/null

    This will check if a pull is needed from a repo every 5 minutes. (Re: https://crontab.guru/every-5-minutes)

    You can also modify the bash script to rebuild, npm install, composer install, etc when needed too.

  • LAMP does not activate locales?

    Moved Unsolved
    13
    0 Votes
    13 Posts
    634 Views
    girishG

    @jeau It looks like I closed https://git.cloudron.io/cloudron/lamp-app/issues/14 by mistake and this went off our radar. I have reopened it.

  • ionCube PHP Loader not detected

    Moved Solved
    4
    0 Votes
    4 Posts
    335 Views
    girishG

    @hdavy2002 Pushed an update to fix this now.

  • Shlink on LAMP, APC absent?

    Moved Solved
    9
    0 Votes
    9 Posts
    344 Views
    yusfY

    Okay, I understand. It's fine by me.

    The separate admin panel's latest release just renders a blank page for me (locally and on LAMP) ¯_(ツ)_/¯

  • 0 Votes
    3 Posts
    413 Views
    girishG

    @mathieuepitech Apps on Cloudron send email with a specific email id and with a SMTP username/password. This is not just a security measure but also prevents misconfigured apps from sending emails with arbitrary domains resulting in your server being blacklisted as a spam bot.

    The specific email id/mail from that the app will use is the in the app configure dialog. The SMTP credentials for sending email are available as environment variables. In PHP, you can simply use getenv('MAIL_SMTP_SERVER') etc instead of hardcoding the credentials.

  • Where do i find the apache Access Log?

    Moved Solved
    2
    0 Votes
    2 Posts
    224 Views
    girishG

    @jensbee4 If you click on the logs button in the app icon in the dashboard, you will see the access logs. We log in the combined format - "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"". More information about the format is http://httpd.apache.org/docs/current/mod/mod_log_config.html#customlog

  • Configuring ServerTokens & ServerSignature?

    Moved Solved
    4
    0 Votes
    4 Posts
    252 Views
    girishG

    @murgero I added it after you asked the question 🙂

  • 0 Votes
    4 Posts
    343 Views
    girishG

    @jepster We have pushed an update that should make it simpler now. Also updated the docs - https://cloudron.io/documentation/apps/lamp/#running-composer

  • Composer is installed, but cannot require any package

    Moved Solved
    2
    0 Votes
    2 Posts
    235 Views
    girishG

    Let's discuss this in https://forum.cloudron.io/topic/1700/lamp-stack-composer-cannot-require-any-package-cannot-write-into-cache

  • LAMP App - How to enable mod_expires.c ?

    Moved Solved
    5
    0 Votes
    5 Posts
    358 Views
    M-arcusM

    A bunch of mods are already installed, but not activated.

    I would separate this into:

    Activating already installed mods Installing and activating new monds
  • 0 Votes
    4 Posts
    873 Views
    nebulonN

    Would be great if you could update this thread with your findings. Also please note that the memory settings for the addons are currently not preserved across app restores or even server reboots. We are working on this fix and you can see the status of it at https://git.cloudron.io/cloudron/box/issues/566