From 2d3701c5a3a706ef3bbbf614f60f1aa54dad5315 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 15 Feb 2010 12:49:38 +0000 Subject: [PATCH] - fixing the "Could not open input file: [...]/install_scripts/configure install" issue in ApsInstaller --- lib/classes/aps/class.ApsInstaller.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/classes/aps/class.ApsInstaller.php b/lib/classes/aps/class.ApsInstaller.php index e7ec293e..25979c9f 100644 --- a/lib/classes/aps/class.ApsInstaller.php +++ b/lib/classes/aps/class.ApsInstaller.php @@ -135,10 +135,20 @@ class ApsInstaller extends ApsParser { //setup right path and run installation script + if(!is_dir($this->RealPath . $this->DomainPath . '/install_scripts/')) + { + echo 'Directory: '. $this->RealPath . $this->DomainPath . '/install_scripts/ does not exist'; + return; + } + chdir($this->RealPath . $this->DomainPath . '/install_scripts/'); $Return = array(); $ReturnStatus = 0; - $Return = safe_exec('php ' . escapeshellarg($this->RealPath . $this->DomainPath . '/install_scripts/configure install'), $ReturnStatus); + + // make configure-script executable + chmod($this->RealPath . $this->DomainPath . '/install_scripts/configure', 0755); + + $Return = safe_exec('php ' . escapeshellarg($this->RealPath . $this->DomainPath . '/install_scripts/configure') . ' install', $ReturnStatus); if($ReturnStatus != 0) {