Configuring FUEL CMS in server
  • Hello,

    I have configured FUEL CMS in my localhost and all works without problems. Now I have uploaded all files and database tables and data to my server (changing database.php config) but when I try load default page I and get these errors:

    A PHP Error was encountered

    Severity: Warning

    Message: mysqli::real_connect(): (HY000/1045): Access denied for user 'MYDATABASENAME'@'212.227.18.72' (using password: YES)

    Filename: mysqli/mysqli_driver.php

    Line Number: 201

    Backtrace:

    File: /MYPATH/fuel/modules/fuel/core/Loader.php
    Line: 473
    Function: DB

    File: /MYPATH/fuel/modules/fuel/core/MY_Model.php
    Line: 155
    Function: database

    File: /MYPATH/fuel/modules/fuel/core/MY_Model.php
    Line: 108
    Function: initialize

    File: /MYPATH/fuel/modules/fuel/core/Loader.php
    Line: 241
    Function: load_class

    File: /MYPATH/fuel/modules/fuel/core/Loader.php
    Line: 455
    Function: model

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 645
    Function: module_model

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 558
    Function: assign_location

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 525
    Function: initialize

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 65
    Function: __construct

    File: /MYPATH/fuel/criptodirectorybot/fuel/modules/fuel/controllers/Page_router.php
    Line: 70
    Function: create

    File: /MYPATH/fuel/criptodirectorybot/index.php
    Line: 364
    Function: require_once
    A PHP Error was encountered

    Severity: Warning

    Message: Cannot modify header information - headers already sent by (output started at /MYPATHt/fuel/criptodirectorybot/fuel/codeigniter/core/Exceptions.php:271)

    Filename: core/Common.php

    Line Number: 573

    Backtrace:

    File: /MYPATH/fuel/modules/fuel/core/Loader.php
    Line: 473
    Function: DB

    File: /MYPATH/fuel/modules/fuel/core/MY_Model.php
    Line: 155
    Function: database

    File: /MYPATH/fuel/modules/fuel/core/MY_Model.php
    Line: 108
    Function: initialize

    File: /MYPATH/fuel/modules/fuel/core/Loader.php
    Line: 241
    Function: load_class

    File: /MYPATH/fuel/modules/fuel/core/Loader.php
    Line: 455
    Function: model

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 645
    Function: module_model

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 558
    Function: assign_location

    File: /MYPATHt/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 525
    Function: initialize

    File: /MYPATH/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 65
    Function: __construct

    File: /MYPATH/fuel/modules/fuel/controllers/Page_router.php
    Line: 70
    Function: create

    File: /MYPATH/fuel/criptodirectorybot/index.php
    Line: 364
    Function: require_once

    ----

    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: /MYPATH/fuel/modules/fuel/core/MY_Model.php

    Line Number: 108

    --------


    Someone know how solve it? I must to change any more parameter?

    Thank you very much.


  • Sounds like your MySQL server is set to work from localhost only? Change the IP address in ./config/database.php to localhost and see if that helps?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!