CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Install error after Green Bar
Pages: [1]

Author Topic: Install error after Green Bar  (Read 2788 times)

two7design

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Install error after Green Bar
March 24, 2012, 08:12:13 pm
I get the green bar but when I click the install button I get a blank screen (other than wordpress sidebar) and this error. My DB name of course has been changed

Cannot open mysql://dbo000000000:Password1@localhost:/tmp/mysql5.sock/db000000000?new_link=true: DB Error: connect failed

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Install error after Green Bar
March 25, 2012, 07:47:38 am

and does the error message have the right string with user name / password etc for your DB.

Does your user name / password / db name have any non-alphanumeric characters in it? If so, might want to try removing them

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

two7design

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: Install error after Green Bar
March 26, 2012, 07:18:28 am
Yes, the name, username and password are all correct. As I said before I get the green bars when I click re-check requirements, however when i click the install button it gives me that error.

two7design

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: Install error after Green Bar
March 27, 2012, 08:07:06 am
Can no one answer this?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install error after Green Bar
March 27, 2012, 09:01:35 am
The issue is /tmp/mysql5.sock I think. Remove that and if it fails, then set your php.ini to make the default port for mysql /tmp/mysql5.sock and then it should work.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

two7design

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: Install error after Green Bar
March 30, 2012, 08:57:31 am
Ok so I have tried everything I can think of. I created an .htacces file and php.ini file and nothing. I called 1and1 and they said there should be a file within the crm that I can adjust the default socket. There is no direct domain because I am on a dedicated server. The crm is obviously seeing the database because it gives me green bars, but when it goes to install something is not connecting properly. I appreciate all the help and hopefully we can fix this. FYI...i also installed on our GoDaddy hosting plan and it worked great. However I would like to get it on the dedicated server because it was just running to slow on GoDaddy

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install error after Green Bar
March 31, 2012, 11:17:29 am
Your host is wrong. Please see here:

http://php.net/manual/en/mysql.configuration.php

The mysql.default_socket directive has been in PHP since version 4.0, meaning for a few years already. If your host is not able to assist with a basic issue such as this, I would consider finding a more professional host.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

two7design

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: Install error after Green Bar
September 11, 2012, 02:20:37 pm
Wanted to add a solution to this problem. I replaced the dsn code with this and fixed the problem

$dsn = array(
    'phptype'  => 'pgsql',
    'username' => 'someuser',
    'password' => 'apasswd',
    'hostspec' => 'localhost',
    'database' => 'thedb',
);

$options = array(
    'debug'       => 2,
    'portability' => DB_PORTABILITY_ALL,
);

$db =& DB::connect($dsn, $options);
if (PEAR::isError($db)) {
    die($db->getMessage());
}


Conte01

  • I post occasionally
  • **
  • Posts: 79
  • Karma: -1
  • www.aidboard.com
    • Aidboard
  • CiviCRM version: latest
  • CMS version: Drupal
Re: Install error after Green Bar
February 17, 2015, 09:25:11 am
hey,

got the same issue and got no clue how to solve it.

all is green and then the error

any ideas?
thanks
http://www.aidboard.com

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install error after Green Bar
February 17, 2015, 09:30:23 am
Can you copy and paste here the text of the error you see?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Conte01

  • I post occasionally
  • **
  • Posts: 79
  • Karma: -1
  • www.aidboard.com
    • Aidboard
  • CiviCRM version: latest
  • CMS version: Drupal
Re: Install error after Green Bar
February 17, 2015, 09:33:26 am
here:

Cannot open mysql://dbuXXXXXXXX:XXXXXXXX@localhost/dbXXXXXXXXXXX?new_link=true: DB Error: connect failed
http://www.aidboard.com

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install error after Green Bar
February 17, 2015, 09:35:13 am
Did you / can you ask your host for help?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Conte01

  • I post occasionally
  • **
  • Posts: 79
  • Karma: -1
  • www.aidboard.com
    • Aidboard
  • CiviCRM version: latest
  • CMS version: Drupal
Re: Install error after Green Bar
February 17, 2015, 09:36:45 am
I dont think they can assist me.

the database works, civi says all green to go and the fail.
is definately a civi thing

had no problems on drupal and will like switch back if this already fails before installation
http://www.aidboard.com

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install error after Green Bar
February 17, 2015, 09:47:26 am
Quote from: Conte01 on February 17, 2015, 09:36:45 am
I dont think they can assist me.

Well, if you don't ask them, then they for sure won't help you. :)

I would definitely suggest you ask them because the installer has been successfully used thousands of times so we know it works on a normal server setup. I am uncertain as to the true identity of your host as they are somewhat unlisted, but we anyhow have no data regarding your server and the various settings used so perhaps they have some unusual configuration options set and the installer is not expecting those. The installer can not account for every possible server configuration.

Quote from: Conte01 on February 17, 2015, 09:36:45 am
the database works, civi says all green to go and the fail.
is definately a civi thing

Based on what you wrote, the only idea I have is perhaps mysql vs mysqli is the issue.

Did you however, see what Lobo wrote above? Is that applicable?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Conte01

  • I post occasionally
  • **
  • Posts: 79
  • Karma: -1
  • www.aidboard.com
    • Aidboard
  • CiviCRM version: latest
  • CMS version: Drupal
Re: Install error after Green Bar
February 17, 2015, 11:31:11 pm
hey,

must have overread Lobos suggestion. It was the non-alphanumeric pasword.

still strange
http://www.aidboard.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Install error after Green Bar

This forum was archived on 2017-11-26.