2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
5
* LICENSE: GNU General Public License, version 2 (GPLv2)
6
* Copyright 2001 - 2013 Ampache.org
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License v2
10
* as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
<td valign="top"><?php echo T_('PHP version'); ?></td>
26
<?php echo debug_result(check_php_version()); ?>
29
<?php echo T_('This tests whether you are running at least the minimum version of PHP required by Ampache.'); ?>
33
<td valign="top"><?php echo T_('PHP hash extension'); ?></td>
35
<?php echo debug_result(check_php_hash()); ?>
38
<?php echo T_('This tests whether you have the hash extension enabled. This extension is required by Ampache.'); ?>
42
<td valign="top"><?php echo T_('SHA256'); ?></td>
44
<?php echo debug_result(check_php_hash_algo()); ?>
47
<?php echo T_('This tests whether the hash extension supports SHA256. This algorithm is required by Ampache.'); ?>
51
<td valign="top"><?php echo T_('PHP PDO extension'); ?></td>
53
<?php echo debug_result(check_php_pdo()); ?>
56
<?php echo T_('This tests whether you have the PDO extension enabled. This extension is required by Ampache.'); ?>
60
<td valign="top"><?php echo T_('MySQL'); ?></td>
62
<?php echo debug_result(check_php_pdo_mysql()); ?>
65
<?php echo T_('This tests whether the MySQL driver for PDO is enabled. This driver is required by Ampache.'); ?>
69
<td valign="top"><?php echo T_('PHP session extension'); ?></td>
71
<?php echo debug_result(check_php_session()); ?>
74
<?php echo T_('This tests whether you have the session extension enabled. This extension is required by Ampache.'); ?>
78
<td valign="top"><?php echo T_('PHP iconv extension'); ?></td>
80
<?php echo debug_result(UI::check_iconv()); ?>
83
<?php echo T_('This tests whether you have the iconv extension enabled. This extension is required by Ampache.'); ?>
87
<td valign="top"><?php echo T_('PHP JSON extension'); ?></td>
89
<?php echo debug_result(check_php_json()); ?>
92
<?php echo T_('This tests whether you have the JSON extension enabled. This extension is required by Ampache.'); ?>
96
<td valign="top"><?php echo T_('PHP safe mode disabled'); ?></td>
98
<?php echo debug_result(check_php_safemode()); ?>
101
<?php echo T_('This test makes sure that PHP is not running in safe mode. Some features of Ampache will not work correctly in safe mode.'); ?>
105
<td valign="top"><?php echo T_('PHP memory limit override'); ?></td>
107
<?php echo debug_result(check_override_memory()); ?>
110
<?php echo T_('This tests whether Ampache can override the memory limit. This is not strictly necessary, but may result in a better experience.'); ?>
114
<td valign="top"><?php echo T_('PHP execution time override'); ?></td>
116
<?php echo debug_result(check_override_exec_time()); ?>
119
<?php echo T_('This tests whether Ampache can override the limit on maximum execution time. This is not strictly necessary, but may result in a better experience.'); ?>
123
if (!defined('INSTALL')) {
126
<td valign="top"><?php echo T_('Configuration file readability'); ?></td>
128
<?php echo debug_result(is_readable($configfile)); ?>
131
<?php echo T_('This test attempts to read config/ampache.cfg.php. If this fails the file either is not in the correct location or is not currently readable.'); ?>
136
<?php echo T_('Configuration file validity'); ?>
140
$results = @parse_ini_file($configfile);
141
Config::set_by_array($results);
142
echo debug_result(check_config_values($results));
146
<?php echo T_("This test makes sure that you have set all of the required configuration variables and that we are able to completely parse your config file."); ?>
150
<td valign="top"><?php echo T_("Database connection"); ?></td>
152
<?php echo debug_result(check_php_pdo() && Dba::check_database()); ?>
155
<?php echo T_('This attempts to connect to your database using the values read from your configuration file.'); ?>
159
<td valign="top"><?php echo T_('Database tables'); ?></td>
161
<?php echo debug_result(check_php_pdo() && Dba::check_database_inserted()); ?>
164
<?php echo T_('This checks a few key tables to make sure that you have successfully inserted the Ampache database and that the user has access to the database'); ?>
169
<td valign="top"><?php echo T_('Web path'); ?></td>
172
if ($results['force_ssl']) {
173
$http_type = 'https://';
176
$results['web_path'] = $http_type . $_SERVER['HTTP_HOST'] . Config::get('web_path');
177
if (check_config_values($results)) {
178
echo " <img src=\"" . $results['web_path'] ."/images/icon_enable.png\" /> ";
181
echo debug_result(false);
187
<?php echo T_('This test makes sure that your web_path variable is set correctly and that we are able to get to the index page. If you do not see a check mark here then your web_path is not set correctly.'); ?>