Error: Could not save config file with 3.1.8 installation

Discussion in 'Installation' started by caroline, Oct 11, 2009.

  1. caroline

    caroline New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    I am trying to install a full version 3.1.8 on my server.

    I am getting the error:

    Could not save config file
    Installation script is unable to save file /home/bounddo/public_html/amember/config.inc.php.
    For complete setup you may download new config files to your computer and upload it back to your server.

    File config.inc.php. Upload it to your FTP:
    /home/bounddo/public_html/amember/config.inc.php

    When the file is saved to the server correctly I still get this error message.

    Here is the content of the saved config.inc.php file on my server:

    <?php
    /**
    * aMember Pro Config
    *
    * Author: Alex Scott
    * Email: alex@cgi-central.net
    * Web: http://www.cgi-central.net
    * Details: Plugins config
    * FileName $RCS0$
    * Release: 3.1.8PRO ($Revision: 3602 $)
    *
    * Please direct bug reports,suggestions or feedback to the cgi-central forums.
    * http://www.cgi-central.net/forum/
    *
    * aMember PRO is a commercial software. Any distribution is strictly prohibited.
    *
    *
    */
    //error_reporting(E_ALL ^ (E_NOTICE | E_DEPRICATED));
    error_reporting(E_ALL ^ (E_NOTICE | 8192)); //E_DEPRICATED since PHP 5.3.0 only

    if (!defined('INCLUDED_AMEMBER_CONFIG')){
    define('INCLUDED_AMEMBER_CONFIG', 1);

    ini_set('session.bug_compat_warn', 0);
    ini_set('session.bug_compat_42', 1);

    @set_magic_quotes_runtime(0);
    global $config, $plugins, $plugin_config;

    $pc = array();
    $pc['db'] = 'bounddo_amember';
    $pc['user'] = 'bounddo_bounddo';
    $pc['pass'] = '************';
    $pc['host'] = 'localhost';
    $pc['prefix'] = 'amember_';
    $pc['charset'] = ''; // replace with 'utf8' for example

    $config = array();
    $config['db']['mysql'] = $pc;
    $config['use_mysql_connect'] = 1;
    $config['root_dir'] = dirname(__FILE__);

    if (!strlen(dirname(__FILE__))) {
    die("Script cannot detect path to the script automatically.<br />
    Please edit 0 <i>amember/config.inc.php</i> and replace line<br />
    <b>\$config['root_dir'] = dirname(__FILE__);</b><br />
    to
    <b>\$config['root_dir'] = '/home/bounddo/public_html/amember';</b><br />
    Of course, <i>/home/user/public_html/amember<i> must be replaced to the <br />
    actual UNIX 0system path (not URL!) to aMember folder.<br />
    ");
    }
    if (!defined('AMEMBER_ONLY_DB_CONFIG')){
    require_once("$config[root_dir]/rconfig.inc.php");
    }
    }
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Sounds like you need to investigate the permissions on your folders. Seems like your web account does not have sufficient rights to create/modify files in your aMember folder.

    Either CHMOD yourself or ask the host to help.
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    CHMOD /amember/ folder to 777 before installation.
    Then when aMember will be installed, chmod amember folder back to 755 this should help.

Share This Page