index.php 2.4 KB

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