123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <html>
- <head>
- <title> Cloudron LAMP app </title>
- <style>
- html {
- margin: 0 33%;
- font-family: Helvetica;
- color: #333;
- }
- pre {
- font-family: monospace;
- background: #333;
- color: white;
- border: none;
- width: 100%;
- padding: 10px;
- text-align: left;
- font-size: 13px;
- border-radius: 5px;
- margin-bottom: 15px;
- box-shadow: 0px 1px 12px rgba(0, 0, 0, 0.176);
- }
- h1 {
- text-align: center;
- }
- .center > table {
- width: 100%;
- }
- .h, .e {
- background-color: white !important;
- }
- </style>
- </head>
- <body>
- <h1>Cloudron LAMP App</h1>
- <br/>
- <h2>MySQL credentials</h2>
- <p>Use the following environment variables in the PHP code to access MySQL:</p>
- <pre>
- $_ENV["MYSQL_HOST"]
- $_ENV["MYSQL_PORT"]
- $_ENV["MYSQL_USERNAME"]
- $_ENV["MYSQL_PASSWORD"]
- $_ENV["MYSQL_DATABASE"]
- </pre>
- <br/>
- <h2>Logs</h2>
- <p>Apache logs can be viewed using the <a href="https://cloudron.io/references/cli.html" target="_blank">cloudron commandline tool</a>.</p>
- <pre>
- cloudron logs -f
- </pre>
- <br/>
- <h2>SFTP Transfer</h2>
- <p>
- You can SFTP files to the <b>public</b> folder using <a href="https://cyberduck.io/" target="_blank">Cyberduck</a>,
- <a href="https://filezilla-project.org/" target="_blank">FileZilla</a> or <a href="https://www.gftp.org/" target="_blank">gFTP</a>
- (use your cloudron credentials to authenticate).
- </p>
- <pre>
- sftp -P 2222 surfer.nebulon.info:public/
- </pre>
- <br/>
- <h2>Addons</h2>
- <p>The app is configured to have access to the following Cloudron addons:</p>
- <ul>
- <li><a href="https://cloudron.io/references/addons.html#mysql" target="_blank">mysql</a></li>
- <li><a href="https://cloudron.io/references/addons.html#localstorage" target="_blank">localstorage</a></li>
- <li><a href="https://cloudron.io/references/addons.html#sendmail" target="_blank">sendmail</a></li>
- <li><a href="https://cloudron.io/references/addons.html#redis" target="_blank">redis</a></li>
- <li><a href="https://cloudron.io/references/addons.html#ldap" target="_blank">ldap</a></li>
- <li><a href="https://cloudron.io/references/addons.html#oauth" target="_blank">oauth</a></li>
- <li><a href="https://cloudron.io/references/addons.html#simpleauth" target="_blank">simpleauth</a></li>
- </ul>
- <p>Read more about Cloudron addons and how to use them <a href="https://cloudron.io/references/addons.html" target="_blank">here</a>.</p>
- <br/>
- <h2>PHP Setup</h2>
- <?php
- echo phpInfo();
- ?>
- </body>
- </html>
|