In my previous post, I outlined how the Cloudron can run custom LAMP apps. You simply install the LAMP app and upload your app using SFTP. Everything around the LAMP app including DNS setup, Let's Encrypt certificate installation and renewal, backups and restores are completely taken care of by the Cloudron.
Today, we will see how to install custom PHP extensions in the LAMP app.
The LAMP app already includes most of the popular PHP extensions including the following:
You can check the complete list of pre-installed extensions by visiting the default index.php
of the app that prints out
phpInfo(). Alternately, you can view the source code of the LAMP
Pre-installed extensions will be kept up-to-date automatically.
As an example, we will install ionCube Loader, which is often required to install commercial PHP apps.
Upload the extracted directory to the SFTP root directory (
/app/data) of the Cloudron app
(i.e one level above
In the top level directory of the Cloudron app (in
/app/data), you will find a
Add the following line to enable the extension (just add it before the many
The LAMP app has thread safety disabled, so we choose the extension without the
Lastly, restart the app for the extension to be enabled. You can do this using the
in the app's configure dialog (the pencil icon in the app grid).
Visit the LAMP app's default page to verify that the extension is enabled.