Directory G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net is the root. These users/groups have full control in the root and all subdirectories: Application pool group, Plesk Domain User. Plesk FTP subaccount can only list the folder contents.
I modified index.php as follows:
<?php
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
ini_set('display_errors', 1);
$path_to_root=$_SERVER["DOCUMENT_ROOT"];
echo "index.php: path_to_root = ".$path_to_root."<br />";
if(is_writable($path_to_root)){
echo ' It IS writable<br />';
}else{
echo ' It is NOT writable<br />';
}
if (file_exists($path_to_root.'/install.html'))
echo 'index.php: File '.$path_to_root.'/install.html exists<br />';
if (!file_exists($path_to_root.'/config_db.php'))
echo 'index.php: File '.$path_to_root.'/config_db.php does not exist<br />';
/*
if (!file_exists($path_to_root.'/config_db.php'))
header("Location:".$path_to_root."/install/index.php");
$page_security = 'SA_OPEN';
ini_set('xdebug.auto_trace',1);
include_once("includes/session.inc");
add_access_extensions();
$app = &$_SESSION["App"];
if (isset($_GET['application']))
$app->selected_application = $_GET['application'];
$app->display();
*/
?>
Running the website resulted in:
index.php: path_to_root = G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net
It IS writable
index.php: File G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net/install.html exists
index.php: File G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net/config_db.php does not exist
Then I modified index.php again by moving the /* down a couple of lines so that the existence of config_db.php would be tested. Running the web site resulted in "This site can't be reached" ... ERR_UNSAFE_REDIRECT
Already a couple of days ago I modified the start of install/index.php as follows:
<?php
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
... See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 'SA_OPEN';
$path_to_root=$_SERVER["DOCUMENT_ROOT"];
echo "install/index.php: path_to_root=".$path_to_root."<br>";
die("Dies intentionally in install/index.php");
if (file_exists($path_to_root.'/config_db.php'))
header("Location: $path_to_root/index.php");
..
..
..
Execution never gets to install/index.php since I have never seen the message 'Dies intentionally in install/index.php'.
What else should I do towards getting the installation going?
By the way, I have another website that is written in PHP and runs well under IIS and GoDaddy:
http://tng11.rad129.net/login.php
I derived it from http://www.tngsitebuilding.com/
r4
r4