Mapbender Postgresql

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mapbender Postgresql

tarekben
This post has NOT been accepted by the mailing list yet.
Hi,

I try to create the Postgresql Database for my Mapbeder but  I still get this error
 [Symfony\Component\Config\Exception\FileLoaderLoadException]
 Cannot import resource "C:\mapbender3\app/config\parameters.yml" from "C:\m
 apbender3\app/config\config.yml". (There is no extension able to load the c
 onfiguration for "database_driver" (in C:\mapbender3\app/config\parameters.
 yml). Looked for namespace "database_driver", found "framework", "security"
 , "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framewor
 k_extra", "jms_aop", "jms_di_extra", "jms_security_extra", "fos_js_routing"
 , "fom_core", "fom_manager", "fom_user", "mapbender_core", "mapbender_wms",
  "mapbender_mobile", "ows_proxy3_core", "web_profiler", "sensio_distributio
 n")

This is my parameters.yml

database_driver:   pdo_pgsql
database_host:     localhost
database_port:     5432
database_name:     mapbender
database_path:     ~
database_user:     postgres
database_password: postgres

and my config.yml
imports:
    - { resource: parameters.yml }
    - { resource: security.yml }

framework:
    #esi:             ~
    translator:      { fallback: %fallback_locale% }
    secret:          %secret%
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: %kernel.debug%
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig'] } #assets_version: SomeVersionScheme
    default_locale:  %locale%
    session:
        cookie_httponly: true
        cookie_secure: %cookie_secure%
        cookie_lifetime: %cookie_lifetime%


# Twig Configuration
twig:
    debug:            %kernel.debug%
    strict_variables: %kernel.debug%
    globals:
        fom:    %fom%
    form:
        resources:
            - 'FOMCoreBundle:Form:fields.html.twig'

# Assetic Configuration
assetic:
    debug: %kernel.debug%
    use_controller: true
    filters:
        cssrewrite: ~
        sass: ~

# Doctrine Configuration
doctrine:
    dbal:
        connections:
            default:
                driver:   %database_driver%
                host:     %database_host%
                port:     %database_port%
                dbname:   %database_name%
                path:     %database_path%
                user:     %database_user%
                password: %database_password%
                charset:  UTF8
                logging: %kernel.debug%
                profiling: %kernel.debug%
    orm:
        auto_generate_proxy_classes: %kernel.debug%
        auto_mapping: true

# Swiftmailer Configuration
swiftmailer:
    transport: %mailer_transport%
    host:      %mailer_host%
    username:  %mailer_user%
    password:  %mailer_password%
    spool:     { type: memory }

# FOM Manager Configuration
fom_manager:
    route_prefix: /manager

# FOM User Configuration
fom_user:
    selfregister: false
    reset_password: true
    max_registration_time: 1
    max_reset_time: 1
    mail_from_address: wizard@oz.net
    mail_from_name: Wizard of Oz
    profile_entity: FOM\UserBundle\Entity\BasicProfile
    profile_formtype: FOM\UserBundle\Form\Type\BasicProfileType
    profile_template: FOMUserBundle:User:basic_profile.html.twig
    self_registration_groups:
        - Self Registered
        - Demo Group

    # Allow to create user log table on the fly if the table doesn't exits.
    # Default: true
    auto_create_log_table: false

    # Time between to check login tries
    login_check_log_time: "-5 minutes"

    # Login attemps before delay starts
    login_attempts_before_delay: 3

    # Login delay after all attemps are failed
    login_delay_after_fail: 5 # Seconds

# OWSProxy Configuration
ows_proxy3_core:
    logging: %ows_proxy3_logging%
    obfuscate_client_ip: %ows_proxy3_obfuscate_client_ip%
    proxy:
        host: %ows_proxy3_host%
        port: %ows_proxy3_port%
        connecttimeout: %ows_proxy3_connecttimeout%
        timeout: %ows_proxy3_timeout%
        user: %ows_proxy3_user%
        password: %ows_proxy3_password%
        checkssl: true
        noproxy: %ows_proxy3_noproxy%

# Mapbender Configuration
mapbender_core: ~
--------------------------------


Any Idea what schould be the Problem ?

Thank you a lot