Setup - .htconfig.php write access is now required for automated installation. [String change - leave in dev for the next release]
This commit is contained in:
		| @@ -563,16 +563,20 @@ class Setup extends \Zotlabs\Web\Controller { | |||||||
| 		$status = true; | 		$status = true; | ||||||
| 		$help = ''; | 		$help = ''; | ||||||
|  |  | ||||||
| 		if( (file_exists('.htconfig.php') && !is_writable('.htconfig.php')) || | 		$fname = '.htconfig.php'; | ||||||
| 			(!file_exists('.htconfig.php') && !is_writable('.')) ) { |  | ||||||
| 				$status = false; | 		if((file_exists($fname) && is_writable($fname)) ||  | ||||||
| 				$help = t('The web installer needs to be able to create a file called ".htconfig.php" in the top folder of your web server and it is unable to do so.') .EOL; | 			(! (file_exists($fname) && is_writable('.')))) { | ||||||
| 				$help .= t('This is most often a permission setting, as the web server may not be able to write files in your folder - even if you can.').EOL; | 			$this->check_add($checks, t('.htconfig.php is writable'), $status, true, $help); | ||||||
| 				$help .= t('At the end of this procedure, we will give you a text to save in a file named .htconfig.php in your Red top folder.').EOL; | 			return; | ||||||
| 				$help .= t('You can alternatively skip this procedure and perform a manual installation. Please see the file "install/INSTALL.txt" for instructions.').EOL; |  | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		$this->check_add($checks, t('.htconfig.php is writable'), $status, false, $help); | 		$status = false; | ||||||
|  | 		$help = t('The web installer needs to be able to create a file called ".htconfig.php" in the top folder of your web server and it is unable to do so.') .EOL; | ||||||
|  | 		$help .= t('This is most often a permission setting, as the web server may not be able to write files in your folder - even if you can.').EOL; | ||||||
|  | 		$help .= t('Please see install/INSTALL.txt for additional information.'); | ||||||
|  |  | ||||||
|  | 		$this->check_add($checks, t('.htconfig.php is writable'), $status, true, $help); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user