Index: branches/5.1.x/core/install/steps_db.xml =================================================================== diff -u -N -r13086 -r13392 --- branches/5.1.x/core/install/steps_db.xml (.../steps_db.xml) (revision 13086) +++ branches/5.1.x/core/install/steps_db.xml (.../steps_db.xml) (revision 13392) @@ -74,9 +74,9 @@

In case if you see a Failure notice saying that In-Portal Installation cannot continue until all permissions are set correctly please continue reading below.

Permissions can be set by using FTP program or directly in shell running "chmod" command. Please refer to the following guide to learn how to set permissions using your FTP program. In case if you have access to shell in your account you can simply run fix_perms.sh files located in /tools folder or do

-    # chmod -R 777 ../system ../themes ../config.php

+    # chmod -R 777 ../system ../themes ../system/config.php

-

Security reasons you will be asked to change permissions back to 755 on /config.php file and root / folder of In-Portal on the last step of this installation process!

+

Security reasons you will be asked to change permissions back to 755 on /system/config.php file and root / folder of In-Portal on the last step of this installation process!

]]> Index: branches/5.1.x/core/install/install_toolkit.php =================================================================== diff -u -N -r13370 -r13392 --- branches/5.1.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 13370) +++ branches/5.1.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 13392) @@ -1,6 +1,6 @@ defaultWritablePath = DIRECTORY_SEPARATOR . 'system'; + if (class_exists('kApplication')) { // auto-setup in case of separate module install $this->Application =& kApplication::Instance(); $this->Conn =& $this->Application->GetADODBConnection(); } - $this->INIFile = FULL_PATH . DIRECTORY_SEPARATOR . 'config.php'; + $this->INIFile = FULL_PATH . $this->defaultWritablePath . DIRECTORY_SEPARATOR . 'config.php'; $this->systemConfig = $this->ParseConfig(true); } Index: branches/5.1.x/core/kernel/startup.php =================================================================== diff -u -N -r13168 -r13392 --- branches/5.1.x/core/kernel/startup.php (.../startup.php) (revision 13168) +++ branches/5.1.x/core/kernel/startup.php (.../startup.php) (revision 13392) @@ -1,6 +1,6 @@ toolkit->INIFile)) { // if config.php found, then check his write permission too - $this->writeableFolders[] = '/config.php'; + $this->writeableFolders[] = $this->toolkit->defaultWritablePath . '/config.php'; } - else { - $this->writeableFolders[] = '/'; - } if (!$this->toolkit->getSystemConfig('Misc', 'WriteablePath')) { // set global writable folder when such setting is missing - $this->toolkit->setSystemConfig('Misc', 'WriteablePath', DIRECTORY_SEPARATOR . 'system'); + $this->toolkit->setSystemConfig('Misc', 'WriteablePath', $this->toolkit->defaultWritablePath); $this->toolkit->SaveConfig(true); // immediately save, because this path will be used in Application later } @@ -389,7 +385,7 @@ } $write_check = true; - $check_paths = Array ('/', '/index.php', '/config.php', ADMIN_DIRECTORY . '/index.php'); + $check_paths = Array ('/', '/index.php', $this->toolkit->defaultWritablePath . '/config.php', ADMIN_DIRECTORY . '/index.php'); foreach ($check_paths as $check_path) { $path_check_status = $this->toolkit->checkWritePermissions(FULL_PATH . $check_path); Index: branches/5.1.x/core/units/helpers/modules_helper.php =================================================================== diff -u -N -r13113 -r13392 --- branches/5.1.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 13113) +++ branches/5.1.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 13392) @@ -1,6 +1,6 @@ _ParseLicense($license); Index: branches/5.1.x/INSTALL =================================================================== diff -u -N -r13086 -r13392 --- branches/5.1.x/INSTALL (.../INSTALL) (revision 13086) +++ branches/5.1.x/INSTALL (.../INSTALL) (revision 13392) @@ -222,14 +222,14 @@ will guide you through the rest of the installation. -Once installation completed you should have /config.php file +Once installation completed you should have /system/config.php file created in the root folder of your In-Portal installation. In some rare cases servers might be configured the way when -WEB INSTALLATION fails to create /config.php. In this case +WEB INSTALLATION fails to create /system/config.php. In this case and you'll have to manually - a. copy /tools/config.php-dist file into the root folder + a. copy /tools/config.php-dist file into the /system subfolder of your In-Portal installation. b. rename it from config.php-dist to config.php. Make sure you Index: branches/5.1.x/core/install/step_templates/security.tpl =================================================================== diff -u -N -r12657 -r13392 --- branches/5.1.x/core/install/step_templates/security.tpl (.../security.tpl) (revision 12657) +++ branches/5.1.x/core/install/step_templates/security.tpl (.../security.tpl) (revision 13392) @@ -12,7 +12,7 @@ $output = ''; $write_check = true; - $check_paths = Array ('/', '/index.php', '/config.php', ADMIN_DIRECTORY . '/index.php'); + $check_paths = Array ('/', '/index.php', $this->toolkit->defaultWritablePath . '/config.php', ADMIN_DIRECTORY . '/index.php'); foreach ($check_paths as $check_path) { $path_secure = true; Index: branches/5.1.x/.htaccess =================================================================== diff -u -N -r13377 -r13392 --- branches/5.1.x/.htaccess (.../.htaccess) (revision 13377) +++ branches/5.1.x/.htaccess (.../.htaccess) (revision 13392) @@ -6,16 +6,10 @@ deny from all -# Exclude direct access - - order allow,deny - deny from all - - ## Enable mod-rewrite RewriteEngine On -###### Rewrite rule to force 'www.' prefix. Use only if needed +###### Rewrite rule to force 'www.' prefix. Use only if needed # If your site can be accessed both with and without the 'www.' prefix, # use the following setting to redirect all users to access the site with the 'www.' # when they access without 'www.'. Uncomment and MAKE sure to adapt for your domain name