ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE Install on Windows

January 10, 2011 1:44pm

Subscribe [4]
  • #1 / Jan 10, 2011 1:44pm

    Far*

    14 posts

    Experimenting with EE 2 install on Windows Server 2003.  First stage of install goes ok before error message like the example below appears.  Hosting provider support has offered to help but asked how to obtain the real error message? or details on how to test it?

    This is the basic error message by default:

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

    Filename: D:\domains\domainname.com\wwwroot\systemfolder\codeigniter\system\database\DB_driver.php

    Line Number: 124


    I tried the EE Minimum requirements wizard and everything checked out okay using the same SQL database details.

    Maybe this error is because I set the system path in ‘index.php’ in the system folder to:
    $system_path D:\domains\domainname.com\wwwroot\systemfolder

    but anything else I tried there breaks it.

    Thanks David

  • #2 / Jan 10, 2011 7:02pm

    Marco Galasso

    3 posts

    Hello, same here but locally on Xampp (Win7 Professional).

    Unable to connect to your database server using the provided settings.
    Filename: C:\xampp\htdocs\eetest\system\codeigniter\system\database\DB_driver.php
    Line Number: 124

    Line #124:

    $this->display_error('db_unable_to_connect');
  • #3 / Jan 11, 2011 8:50am

    Sue Crocker

    26054 posts

    Hi, David.

    Have you tried just using

    $system_path = './system';

    ?

    Marco, did you run the Server Wizard?

  • #4 / Jan 11, 2011 10:41am

    Marco Galasso

    3 posts

    Hello, just ran it:
    MySQL (Version 4.1+) support in PHP   required   supported NO
    Strange because XAMPP has:
    Apache/2.2.14 (Win32)
    DAV/2 mod_ssl/2.2.14
    OpenSSL/0.9.8l
    mod_autoindex_color
    PHP/5.3.1 mod_apreq2-20090110/2.7.1
    mod_perl/2.0.4
    Perl/v5.10.1

    Versione MySQL client: 5.1.41

    All other CMS installs I use on my localhost run smoothly.

  • #5 / Jan 12, 2011 3:35am

    John Henry Donovan

    12339 posts

    Marco - teethgrinder,

    You may have the recent MySQL Client but what is failing is its support in PHP

    Do you the the mysql extension installed in PHP

  • #6 / Jan 12, 2011 8:29am

    Far*

    14 posts

    Hi, David.

    Have you tried just using

    $system_path = './system';

    ?

    Marco, did you run the Server Wizard?

    Hi Sue, no changing it to that results in:

    Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

    So I set it back to:

    $system_path D:\domains\domainname.com\wwwroot\systemfolder

    It works ok until the error message above.  Hosting support are trying to help but with out a proper error message they can not determine the cause of the error.  Please see their response:

    Thank you for your email. Yes, this is on Windows Server 2003 (IIS 6), it is MySQL 5.1. All of the requirements listed on that page are met easily.

    It could be the path, I’m not sure. The fact that the Server Wizard connects fine shows that the details are correct, so some other error is causing the problem in the setup script, but they are “hiding” the error message so that we can’t see it.

    Thanks David

  • #7 / Jan 12, 2011 8:44am

    Far*

    14 posts

    Just a small observation on testing it again.  The first stage of the installation wizard instructions user guide Installation wizard step 4.b Server Settings asks 2 “What type of server are you hosted on?”.  I don’t get that option. Does that make any difference?

    David

  • #8 / Jan 12, 2011 1:03pm

    Marco Galasso

    3 posts

    Marco - teethgrinder,

    You may have the recent MySQL Client but what is failing is its support in PHP
    Do you the the mysql extension installed in PHP


    I deleted the previous dbase and create another one and now it works…  :lol:

  • #9 / Jan 13, 2011 2:26am

    John Henry Donovan

    12339 posts

    David ,

    Can I confirm that this is the syntax you used?

    $system_path = 'D:\domains\domainname.com\wwwroot\systemfolder ';

    The first stage of the installation wizard instructions user guide Installation wizard step 4.b Server Settings asks 2 “What type of server are you hosted on?”.

    Where exactly did you see this? In our install docs?

  • #10 / Jan 14, 2011 7:10am

    Far*

    14 posts

    David ,

    Can I confirm that this is the syntax you used?

    $system_path = 'D:\domains\domainname.com\wwwroot\systemfolder ';

    The first stage of the installation wizard instructions user guide Installation wizard step 4.b Server Settings asks 2 “What type of server are you hosted on?”.

    Where exactly did you see this? In our install docs?

     

    John,

    Yes I saw that in the online user guide:
    http://ellislab.com/expressionengine/user-guide/installation/installation_wizard.html

    I tried the above system path syntax both with single and double quotes.  Still no joy getting EE 2 to install.

    Thanks David

  • #11 / Jan 14, 2011 4:21pm

    Sue Crocker

    26054 posts

    Hi, Far*. Installing on a Windows server can be tricky. I’m going to escalate this to our dev/testing team. Thanks in advance for your patience.

  • #12 / Jan 14, 2011 4:40pm

    Barry Cogan

    291 posts

    Hi all,

    I run all my test environments on Windows.

    Anytime I get this error: “Unable to connect to your database server using the provided settings.” it means that there is something wrong in the system/expressionengine/config/database.php file.

    $db['expressionengine']['hostname'] = "127.0.0.1";                  // This can be an ip address or address.
    $db['expressionengine']['username'] = "some_username";       // database user's username 
    $db['expressionengine']['password'] = "some_password";        // password for database user
    $db['expressionengine']['database'] = "dbname";             // Database name the user has access to.
    $db['expressionengine']['dbdriver'] = "mysql";          // You will want to make sure you have the correct driver for your database

    Can you guys confirm that you have the correct details in your database.php files?

    Sincerely,
    Barry

  • #13 / Jan 20, 2011 3:13pm

    Far*

    14 posts

    It’s now installing ok on Windows Server.  Is it relatively easy to migrate EE2 from Linux to Windows or visa versus?  Thanks David

  • #14 / Jan 21, 2011 2:32am

    John Henry Donovan

    12339 posts

    Glad you are up and running. Feel free to start a new thread if you have anymore questions

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases