Topic: Big Bad Install . . .

have Karmic 9.10, all was going well with the install until a power failure occurred during  the FrontAccount html creation page and the first login page.

Have tries to delete and re-install files for the tar package yet still get the same errors:
Warning: include_once(./installed_extensions.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/account/frontaccounting.php on line 22

Warning: include_once() [function.include]: Failed opening './installed_extensions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/account/frontaccounting.php on line 22

Warning: include_once(./lang/installed_languages.inc) [function.include-once]: failed to open stream: No such file or directory in /var/www/account/includes/lang/language.php on line 15

Warning: include_once() [function.include]: Failed opening './lang/installed_languages.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/account/includes/lang/language.php on line 15

Warning: include_once(./config_db.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/account/includes/session.inc on line 147

Warning: include_once() [function.include]: Failed opening './config_db.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/account/includes/session.inc on line 147

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/account/frontaccounting.php:22) in /var/www/account/includes/session.inc on line 161

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/account/frontaccounting.php:22) in /var/www/account/includes/session.inc on line 161

Warning: Cannot modify header information - headers already sent by (output started at /var/www/account/frontaccounting.php:22) in /var/www/account/includes/session.inc on line 163

Warning: Invalid argument supplied for foreach() in /var/www/account/includes/current_user.inc on line 489

Warning: Invalid argument supplied for foreach() in /var/www/account/includes/current_user.inc on line 489
FrontAccounting 2.2.5 - Login

So as a chemist I am lost. as a programer never had a chance.

Re: Big Bad Install . . .

Remove config.php from your main FA directory and retry install.
Janusz

Re: Big Bad Install . . .

tried that and now getting this set of warnings:

Warning: copy(../config.php) [function.copy]: failed to open stream: Permission denied in /var/www/account/install/save.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /var/www/account/install/save.php:300) in /var/www/account/install/save.php on line 58

my sys is:

ubuntu 9.10 server ed. , AMD 64

thanx in advance

Re: Big Bad Install . . .

Main directory of FA have to be writable at the time of installation/upgrade, otherwise config file cannot be written and you end with above messages.
Do not ignore the checks displayed in red during install - you have to fix them before install.
Janusz

Re: Big Bad Install . . .

Is there any way to "zero out" this install and start over fresh ?

Re: Big Bad Install . . .

To start over just delete all the files in the directory where you installed Front Accounting and then delete all the tables from the MySQL database you were using for the install.

Once this is done just re-upload the files to the directory and start the install again.

Make sure all the green ticks are lit up on the setup page and everything will install and be created as expected.

Re: Big Bad Install . . .

as there is no tables that were installed and therefore no data can i just delete the db and recreate?

also, the creation of the config.php file in the dir is done by the Install page and therefore is shown as "unwritable" ?

8 (edited by kerrsmith 02/21/2010 03:59:10 pm)

Re: Big Bad Install . . .

If the database is empty you can just leave it as it is.

The install process creates all the config files you just need to make sure the installation directory is writeable. If unsure just chmod it to 777 for the install and then change it back once everything is installed and working.

As long as all the tick boxes are green on the top of the setup page then the install will work fine.

Re: Big Bad Install . . .

ok.....
dropped db from MySql,
Purged Account folder from www Dir and re-tar-ed to www Dir.
Assigned permission to user for RW access to the following: www, account,company,0,tmp.
Loaded browser and set cookies to accept all.
Called the FrontAccounting Instalation Wizard html page.
Set OS to Linux/Unix os Based.
Selected  World-writeable file permissions (777)
Set hostname to localhost.
Set user to root.
DB name set to frontaccount
Set password to root login password for OS.
Accepted defaults for 0_ prefix, Install tables, and Fill database with demo data
Set admin e-mail.
Set admin password to same as root.
Clicked on "Install Front Accounting;
received the following:
Warning: copy(../config.php) [function.copy]: failed to open stream: Permission denied in /var/www/account/install/save.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /var/www/account/install/save.php:300) in /var/www/account/install/save.php on line 58

Returned to previous page, and at the top of the page an error message, Error: Cannot open the extension setup file '../installed_extensions.php' for writing.

installed_extensions.php cannot be found.

what next.

Re: Big Bad Install . . .

It might be worth setting the permissions on the directories to 777 at the start as it sounds like it is still having problems writing the config files.

Were all the ticks at the top green when you started?

Re: Big Bad Install . . .

looked up the chmod cmd for ubuntu 9.10..... somewhat formidable any specifics on the correct syntax. undersand that this is major MOJO for novices.

sorry, I was reared as a chemist and only had to take pascal or basic made a B+ lucky to have survived.

12 (edited by kerrsmith 02/21/2010 06:25:52 pm)

Re: Big Bad Install . . .

If you are setting this on the command line then type:

chmod 777 [directory name]

for example:

chmod 777 frontaccounting

For the company directory use:

chmod -R 777 company

The -R is for recursive so it sets the permissions on all the sub files and folders in the given directory.

If you have an FTP server running you can always use a client such a Filezilla and set the permissions on the directories using this - much easier and less chance of making an error.

Re: Big Bad Install . . .

that dood it. !!! now for the real work.

Need coffee ?

www.mawkercoffee.com

14 (edited by zenx 03/10/2010 01:00:57 pm)

Re: Big Bad Install . . .

Sorry for sharing this  thread; just felt that a single thread for installation issues would do.

Downloaded a fresh new installation instance last week. Tried installing it; terminated with following message:

Parse error: syntax error, unexpected $end, expecting ']' in /home/xxxxxxx/public_html/acs/admin/db/maintenance_db.inc on line 34
The url on browser address bar had changed to http://xxxxxx/xxx/install/save.php

Able to display login page, but after many sql error statements.

Update.... went snooping into the file public_html/acs/admin/db/maintenance_db.inc :

<?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>.
***********************************************************************/

/**
 * @return Returns the array sorted as required
 * @param $aryData Array containing data to sort
 * @param $strIndex name of column to use as an index
 * @param $strSortBy Column to sort the array by
 * @param $strSortType String containing either asc or desc [default to asc]
 * @desc Naturally sorts an array using by the column $strSortBy
 */
function array_natsort($aryData, $strIndex, $strSortBy, $strSortType=false)
{
   //    if the parameters are invalid
   if (!is_array($aryData) || !$strSortBy)
       //    return the array
       return $aryData;

   //    create our temporary arrays
   $arySort = $aryResult = array();

   //    loop through the array
   foreach ($aryData as $key => $aryRow)
       //    set up the value in the array
       $arySort[$strIn

Looks truncated, checked file sizes...all different from distribution. The ftp process must have gone bersek, for many files are effected. Iam doing a complete delete and re-upload/installation.