Cloudron LAMP App (PHP 7.2)


Overview

This page is a placeholder showing information on how to use the LAMP stack (PHP 7.2.24-0ubuntu0.18.04.2) This page will get overwritten, when an index.php or index.html is uploaded. You can always access the database credentials from the file credentials.txt with SFTP.

The credentials shown here can only be used from within your app. They will not work from outside the Cloudron.


MySQL Credentials

Use the following environment variables in the PHP code to access MySQL:

MYSQL_HOST mysql
MYSQL_PORT 3306
MYSQL_USERNAME 63875cfb07e1a094
MYSQL_PASSWORD f73d7550d3f5305be173447fbba7debcc7e5b35cc877c2e3
MYSQL_DATABASE 63875cfb07e1a094

phpMyAdmin Access

It is installed here. For login credentials see phpmyadmin_login.txt via SFTP.


Cron

Put a file called crontab into the directory /app/data and it will picked up at next app restart. It has to be in the cron syntax without username and must end with a newline. For example, the following crontab updates feeds every hour:

0 * * * * php /app/code/update.php --feeds

Commands are executed as the user www-data. Generate cron patterns via crontabgenerator.


Sendmail Credentials

Use the following environment variables in the PHP code to send email:

MAIL_SMTP_SERVER mail
MAIL_SMTP_PORT 2525
MAIL_SMTPS_PORT 2465
MAIL_SMTP_USERNAME gaestehaus-edeltraud.app@nebulon.de
MAIL_SMTP_PASSWORD eb425e2ffcaf43b024f74522ea37ec07b8e54c35c573ca00
MAIL_FROM gaestehaus-edeltraud.app@nebulon.de
MAIL_DOMAIN nebulon.de

Redis Credentials

Use the following environment variables in the PHP code to connect to Redis:

REDIS_URL redis://redisuser:e41b38634315ee3b7d6a99e5721998f9c8a2f5b04c5e3084@redis-425872fa-b9c2-4a21-b869-6a7a02206cc2
REDIS_HOST redis-425872fa-b9c2-4a21-b869-6a7a02206cc2
REDIS_PORT 6379
REDIS_PASSWORD e41b38634315ee3b7d6a99e5721998f9c8a2f5b04c5e3084