Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 01:31:09

Author Topic: could not open database connection.  (Read 15516 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #30 on: 2013-08-15, 22:53:42 »
So, it's not in your current vps?.

If using Kloxo-MR, update it and switch to djbdns and switch back bind.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #31 on: 2013-08-15, 23:56:54 »
no not in current vps in some other vps.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #32 on: 2013-08-16, 00:15:22 »
Look like your other vps still using 'old' bind config. So, try switch to djbdns and then change back to bind.

Better running 'sh /script/cleanup' before above trick.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #33 on: 2013-08-16, 16:26:39 »
mustafa again could not connect to database connection error :(
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #34 on: 2013-08-16, 18:24:25 »
httpd is dead when i try to restart it gives this error "Starting httpd: /bin/bash: /usr/sbin/httpd: Permission denied"
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #35 on: 2013-08-16, 18:38:38 »
Did you mean when running 'sh /script/restart-all'?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #36 on: 2013-08-16, 18:40:13 »
yes httpd was stopped so i ran service httpd restart and it gave this error "Starting httpd: /bin/bash: /usr/sbin/httpd: Permission denied"
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #37 on: 2013-08-16, 18:50:21 »
Still the same error when running 'restart-all' second time?.

How about your website?. Not able to access after restart fail?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #38 on: 2013-08-16, 18:54:31 »
yes same after restart-all also website not working because httpd stopped :(
i tried reinstalling httpd and it gave this error

Code: [Select]
Running Transaction
  Installing     : httpd-tools                                                     1/2
error: failed to stat (deleted) /var/named/chroot/etc/named.rfc1912.zones: No such file or directory
  Installing     : httpd                                                           2/2
Error unpacking rpm package httpd-2.2.25-1.el5.i386
error: unpacking of archive failed on file /usr/sbin/httpd: cpio: rename

right now using fcgid_worker but it is very slow :(
please fix ruid2 :(
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #39 on: 2013-08-16, 19:05:49 »
I don't what happens on your server. Error like 'error: failed to stat (deleted) /var/named/chroot/etc/named.rfc1912.zones: No such file or directory' not related to install/reinstall rpm but appear on your system. Look like unfinish process at previous time.

What's you mean 'please fix ruid2'?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #40 on: 2013-08-16, 19:10:16 »
i mean ruid2 giving error "Starting httpd: /bin/bash: /usr/sbin/httpd: Permission denied"
but fcgid working fine but very slow compared to ruid2.
I want to use ruid2
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #41 on: 2013-08-16, 21:13:24 »
Hmmm. I have problem with internet connection again.

I will check your server after internet connection back to normal.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #42 on: 2013-08-16, 21:38:35 »
ok right now i am using php-fpm please check and fix ruid2 also check pm.

thanks
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #43 on: 2013-08-16, 23:25:38 »
mustafa check pm fast please
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #44 on: 2013-08-16, 23:37:06 »
I think I am not able resolve your issue. I found something weird on your system.

1. Remove httpd and install again will appear:
Code: [Select]
Running Transaction
  Installing     : httpd-tools                                              1/2
error: failed to stat (deleted) /var/named/chroot/etc/named.rfc1912.zones: No such file or directory
  Installing     : httpd                                                    2/2
Error unpacking rpm package httpd-2.2.25-1.el5.i386
warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
error: unpacking of archive failed on file /usr/sbin/httpd: cpio: rename

Installed:
  httpd-tools.i386 0:2.2.25-1.el5

Failed:
  httpd.i386 0:2.2.25-1.el5
Complete!
where have 2 error:
a. error 'failed to stat (deleted) /var/named/chroot/etc/named.rfc1912.zones: No such file or directory' -> I don't know why
b. error 'unpacking of archive failed on file /usr/sbin/httpd: cpio: rename' -> install/reinstall httpd will be create /usr/sbin/httpd, httpd.worker, httpd.itk and httpd.event and your case 'old' httpd file not able to rename. Why?. It's because permissions of this file 000. If I try to change to 755 and then found 'permissions denied'.
c. In your server, only have 'httpd' file and possible other file like 'httpd;520e560c'. No exists files like httpd.worker, httpd.itk and httpd.event.

I am worry it's related to hacking but I am not sure.

2. At this condition, your vps only use nginx or lighttpd where apache will be not work.

3. Better backup your data and then reinstall OS and Kloxo-MR, except you found someone to fix your issue.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.059 seconds with 18 queries.

web stats analysis