index.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <html>
  2. <head>
  3. <title> Cloudron LAMP app </title>
  4. <style>
  5. html {
  6. margin: 0 33%;
  7. font-family: Helvetica;
  8. color: #333;
  9. }
  10. pre {
  11. font-family: monospace;
  12. background: #333;
  13. color: white;
  14. border: none;
  15. width: 100%;
  16. padding: 10px;
  17. text-align: left;
  18. font-size: 13px;
  19. border-radius: 5px;
  20. margin-bottom: 15px;
  21. box-shadow: 0px 1px 12px rgba(0, 0, 0, 0.176);
  22. }
  23. h1 {
  24. text-align: center;
  25. }
  26. .center > table {
  27. width: 100%;
  28. }
  29. .h, .e {
  30. background-color: white !important;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <h1>Cloudron LAMP App</h1>
  36. <br/>
  37. <h2>MySQL credentials</h2>
  38. <p>Use the following environment variables in the PHP code to access MySQL:</p>
  39. <pre>
  40. $_ENV["MYSQL_HOST"]
  41. $_ENV["MYSQL_PORT"]
  42. $_ENV["MYSQL_USERNAME"]
  43. $_ENV["MYSQL_PASSWORD"]
  44. $_ENV["MYSQL_DATABASE"]
  45. </pre>
  46. <br/>
  47. <h2>Logs</h2>
  48. <p>Apache logs can be viewed using the <a href="https://cloudron.io/references/cli.html" target="_blank">cloudron commandline tool</a>.</p>
  49. <pre>
  50. cloudron logs -f
  51. </pre>
  52. <br/>
  53. <h2>SFTP Transfer</h2>
  54. <p>
  55. You can SFTP files to the <b>public</b> folder using <a href="https://cyberduck.io/" target="_blank">Cyberduck</a>,
  56. <a href="https://filezilla-project.org/" target="_blank">FileZilla</a> or <a href="https://www.gftp.org/" target="_blank">gFTP</a>
  57. (use your cloudron credentials to authenticate).
  58. </p>
  59. <pre>
  60. sftp -P 2222 surfer.nebulon.info:public/
  61. </pre>
  62. <br/>
  63. <h2>Addons</h2>
  64. <p>The app is configured to have access to the following Cloudron addons:</p>
  65. <ul>
  66. <li><a href="https://cloudron.io/references/addons.html#mysql" target="_blank">mysql</a></li>
  67. <li><a href="https://cloudron.io/references/addons.html#localstorage" target="_blank">localstorage</a></li>
  68. <li><a href="https://cloudron.io/references/addons.html#sendmail" target="_blank">sendmail</a></li>
  69. <li><a href="https://cloudron.io/references/addons.html#redis" target="_blank">redis</a></li>
  70. <li><a href="https://cloudron.io/references/addons.html#ldap" target="_blank">ldap</a></li>
  71. <li><a href="https://cloudron.io/references/addons.html#oauth" target="_blank">oauth</a></li>
  72. <li><a href="https://cloudron.io/references/addons.html#simpleauth" target="_blank">simpleauth</a></li>
  73. </ul>
  74. <p>Read more about Cloudron addons and how to use them <a href="https://cloudron.io/references/addons.html" target="_blank">here</a>.</p>
  75. <br/>
  76. <h2>PHP Setup</h2>
  77. <?php
  78. echo phpInfo();
  79. ?>
  80. </body>
  81. </html>