Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c211b7c4352e87e1ceefcce715e0b0aa7841f997 1 parent 299bf8b
textagroup textagroup authored
Showing with 9 additions and 0 deletions.
  1. +3 −0  dev/install/config-form.html
  2. +6 −0 dev/install/install.php5
3  dev/install/config-form.html
View
@@ -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">
6 dev/install/install.php5
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.