index.phtml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <head>
  2. <link rel="stylesheet" type="text/css" href="css/setup/config-check.css">
  3. </head>
  4. <?php
  5. $phpDependencies = checkPhpDependencies();
  6. $externalServices = checkExternalServices();
  7. $zend = $phpDependencies["zend"];
  8. $postgres = $phpDependencies["postgres"];
  9. $database = $externalServices["database"];
  10. $rabbitmq = $externalServices["rabbitmq"];
  11. $pypo = $externalServices["pypo"];
  12. $liquidsoap = $externalServices["liquidsoap"];
  13. $mediamonitor = $externalServices["media-monitor"];
  14. $r1 = array_reduce($phpDependencies, "booleanReduce", true);
  15. $r2 = array_reduce($externalServices, "booleanReduce", true);
  16. $result = $r1 && $r2;
  17. ?>
  18. <table width="60%" cellpadding="0" cellspacing="0" border="0" class="statustable">
  19. <thead>
  20. <tr class="ui-state-default strong">
  21. <td><?php echo _("Service") ?></td>
  22. <td><?php echo _("Description") ?></td>
  23. <td><?php echo _("Status") ?></td>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <!--
  28. <tr class="odd">
  29. <td><?php echo sprintf(_("%s Version"), PRODUCT_NAME) ?></td>
  30. <td>1.9.3</td>
  31. <td>&nbsp;</td>
  32. </tr>
  33. -->
  34. <tr>
  35. <td class="component">
  36. Zend
  37. </td>
  38. <td class="description">
  39. Zend MVC Framework
  40. </td>
  41. <td class="solution <?php if ($zend) {echo 'check';?>">
  42. <?php
  43. } else {
  44. ?>">
  45. <b>Ubuntu</b>: try running <code>sudo apt-get install libzend-framework-php</code>
  46. <br/><b>Debian</b>: try running <code>sudo apt-get install zendframework</code>
  47. <?php
  48. }
  49. ?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="component">
  54. Postgres
  55. </td>
  56. <td class="description">
  57. PDO and PostgreSQL libraries
  58. </td>
  59. <td class="solution <?php if ($postgres) {echo 'check';?>">
  60. <?php
  61. } else {
  62. ?>">
  63. Try running <code>sudo apt-get install php5-pgsql</code>
  64. <?php
  65. }
  66. ?>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="component">
  71. Database
  72. </td>
  73. <td class="description">
  74. Database configuration for Airtime
  75. </td>
  76. <td class="solution <?php if ($database) {echo 'check';?>">
  77. <?php
  78. } else {
  79. ?>">
  80. Make sure you aren't missing any of the Postgres dependencies in the table above.
  81. If your dependencies check out, make sure your database configuration settings in
  82. <code>/etc/airtime.conf</code> are correct and the Airtime database was installed correctly.
  83. <?php
  84. }
  85. ?>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td class="component">
  90. RabbitMQ
  91. </td>
  92. <td class="description">
  93. RabbitMQ configuration for Airtime
  94. </td>
  95. <td class="solution <?php if ($rabbitmq) {echo 'check';?>">
  96. <?php
  97. } else {
  98. ?>">
  99. Make sure RabbitMQ is installed correctly, and that your settings in /etc/airtime/airtime.conf
  100. are correct. Try using <code>sudo rabbitmqctl list_users</code> and <code>sudo rabbitmqctl list_vhosts</code>
  101. to see if the airtime user (or your custom RabbitMQ user) exists, then checking that
  102. <code>sudo rabbitmqctl list_exchanges</code> contains entries for airtime-media-monitor, airtime-pypo,
  103. and airtime-uploads.
  104. <?php
  105. }
  106. ?>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td class="component">
  111. Media Monitor
  112. </td>
  113. <td class="description">
  114. Airtime media-monitor service
  115. </td>
  116. <td class="solution <?php if ($mediamonitor) {echo 'check';?>">
  117. <?php
  118. } else {
  119. ?>">
  120. Check that the airtime-media-monitor service is installed correctly in <code>/etc/init</code>,
  121. and ensure that it's running with
  122. <br/><code>initctl list | grep airtime-media-monitor</code><br/>
  123. If not, try <br/><code>sudo service airtime-media-monitor start</code>
  124. <?php
  125. }
  126. ?>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="component">
  131. Pypo
  132. </td>
  133. <td class="description">
  134. Airtime playout service
  135. </td>
  136. <td class="solution <?php if ($pypo) {echo 'check';?>">
  137. <?php
  138. } else {
  139. ?>">
  140. Check that the airtime-playout service is installed correctly in <code>/etc/init</code>,
  141. and ensure that it's running with
  142. <br/><code>initctl list | grep airtime-playout</code><br/>
  143. If not, try <br/><code>sudo service airtime-playout restart</code>
  144. <?php
  145. }
  146. ?>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td class="component">
  151. Liquidsoap
  152. </td>
  153. <td class="description">
  154. Airtime liquidsoap service
  155. </td>
  156. <td class="solution <?php if ($liquidsoap) {echo 'check';?>">
  157. <?php
  158. } else {
  159. ?>">
  160. Check that the airtime-liquidsoap service is installed correctly in <code>/etc/init</code>,
  161. and ensure that it's running with
  162. <br/><code>initctl list | grep airtime-liquidsoap</code><br/>
  163. If not, try <br/><code>sudo service airtime-liquidsoap restart</code>
  164. <?php
  165. }
  166. ?>
  167. </td>
  168. </tr>
  169. <tr id="partitions" class="even">
  170. <th colspan="5"><?php echo _("Disk Space") ?></th>
  171. </tr>
  172. </tbody>
  173. </table>