<#Save Database Configuration#>

Your database settings need to be saved to the config.php file located in your PsychoStats website. You must use one of the methods shown below to save your config.

{if $is_saved and !$can_write}

<#Configuration is Saved#>

<#Your database configuration is up to date and does not need to be saved.#>

{else} {* ---- LOCAL CONFIG ----------------------------------------------------- *}

<#Attempt 1#>: <#Save config locally#>

{if $can_write}

<#Your configuration has been saved successfully!#> <#Click "Next" to continue!#>

{else}

<#Your configuration can not be saved directly!#>

Local config file: {$real_config_file}

The web server user {if $web_user}"{$web_user.name}"{/if} does not have permission to write to the config file. Either change the permissions on the file so the web server user can write to it, or try to upload the config.php using the FTP form below.

{/if}
{if !$can_write} {* ---- FTP CONFIG ----------------------------------------------------- *}

<#Attempt 2#>: <#Upload config via FTP server#>

{if !$can_ftp} {if !$can_write}

I can not write to the config.php locally and FTP support is disabled.

{/if}

Your server does not have FTP support enabled. See http://php.net/ftp for more information.

{else}

Fill in the form and click "Save Config" below to try and upload your configuration..

<#FTP Settings#>

Upload config.php via FTP to your web server. Make sure the settings below match your FTP server settings.

Path to your PsychoStats directory where the config.php is located.

{* .config-frame *} {/if} {* if $can_ftp *} {/if} {* if !$can_write ... *} {/if} {* if $is_saved else ... *} {* ---- MANUAL CONFIG ----------------------------------------------------- *}

<#Manually save config#> ( click here to show config )

{if $is_saved} The configuration that was saved can be viewed below. {else} Manually saving the config requires you have direct access to the config.php file on this website (via ssh or local access). {/if}

{* #manual .config-frame *}