mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Added some simple code to show the location of the loaded php.ini file when php configuration or file permision errors exist
This commit is contained in:
parent
299bf8b9c6
commit
c211b7c435
@ -34,6 +34,9 @@
|
||||
You aren't currently able to install the software. Please <a href="#requirements">see below</a> for details.<br>
|
||||
If you are having problems meeting the requirements, see the <a href="http://doc.silverstripe.org/doku.php?id=server-requirements">server requirements wiki page</a>.
|
||||
</p>
|
||||
<?php if (isset($phpIniLocation)) { ?>
|
||||
<p>Your php.ini file is located at <?php echo $phpIniLocation; ?></p>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if($alreadyInstalled) { ?>
|
||||
<div class="warning">
|
||||
|
@ -160,6 +160,12 @@ if($req->isIIS()) {
|
||||
|
||||
if($req->hasErrors()) {
|
||||
$hasErrorOtherThanDatabase = true;
|
||||
if ( function_exists('php_ini_loaded_file')) {
|
||||
// show the location of the php.ini if any issues exist
|
||||
$phpIniLocation = php_ini_loaded_file();
|
||||
} else {
|
||||
$phpIniLocation = null;
|
||||
}
|
||||
}
|
||||
|
||||
if($databaseConfig) {
|
||||
|
Loading…
Reference in New Issue
Block a user