Permalink
Browse files

Added some simple code to show the location of the loaded php.ini fil…

…e when php configuration or file permision errors exist
  • Loading branch information...
1 parent 299bf8b commit c211b7c4352e87e1ceefcce715e0b0aa7841f997 @textagroup textagroup committed Mar 4, 2012
Showing with 9 additions and 0 deletions.
  1. +3 −0 dev/install/config-form.html
  2. +6 −0 dev/install/install.php5
@@ -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">
View
@@ -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) {

0 comments on commit c211b7c

Please sign in to comment.