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, 08:05:07

Author Topic: Fatal Error  (Read 7728 times)

0 Members and 1 Guest are viewing this topic.

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Fatal Error
« on: 2014-06-02, 10:55:36 »
Hello..

I have an error. Randomize my kloxo servers drupal webpages going down, with

Fatal error: Class 'PDO' not found in includes/database/database.inc on line 187

Many of websites tell, that i must write to the php.ini file the following

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

when i write to it, and restart the server, my php log show, that those extensions are loaded, and i must delete  those lines from php.ini

What is the problem, because my drupal sites going down twice a day, and i must restart every time (after it is going well)

In the PHP error log message i see only one thing

ERROR: failed to ptrace(PEEKDATA) pid 21396: Input/output error (5)


How can i handle the problem, because it is very strange to me?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #1 on: 2014-06-02, 11:03:20 »
Inform here 'sh /script/sysinfo'.

Normally, pdo already enabled.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Fatal Error
« Reply #2 on: 2014-06-02, 11:41:26 »
Sorry its worked, but, it was really slow.....


A. Kloxo-MR: 6.5.1.b-2014053003

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.37-1.ius.el6.x86_64
   2. PHP: php54-5.4.28-2.ius.el6.x86_64
   3. Httpd: httpd-2.2.27-1.mr.e6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.6-1.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         31989       2754      29235          0        515       1046
   -/+ buffers/cache:       1192      30796
   Swap:         3999          0       3999



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #3 on: 2014-06-02, 12:03:56 »
You need optimize your server. Default setting only optimize for server with 512-1024MB RAM.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Fatal Error
« Reply #4 on: 2014-06-02, 12:22:52 »
How can i do that?

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Fatal Error
« Reply #5 on: 2014-06-02, 15:59:52 »
Sorry, but can you help me?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #6 on: 2014-06-02, 16:02:05 »
Search this forum about 'optimize' or hire a people to optimize your server.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Fatal Error
« Reply #7 on: 2014-06-02, 16:23:17 »
So, you said, that my Fatal Error problem reason is the optimization? I think it is very strange, because i have a very strong server, and you see my sysinfo, that i have many free memory available.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #8 on: 2014-06-02, 16:35:53 »
Example. Default max_children of php=fpm is 6. Increasing to higher make possible faster execute.

Need another optimize like mysql optimize, enable php cache and application (example wordpress) cache.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Fatal Error
« Reply #9 on: 2014-06-02, 18:58:43 »
It seems you've got some hardware failure. Check SMART of your disk/disks.

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Fatal Error
« Reply #10 on: 2014-06-03, 14:00:25 »
I dont have hardware error. I have checked it.. I have made the changes what mustafa said, but the system randomize FORGET the pdo -s


Here is my phpinfo HERE


I dont know why forget randomize the PDO-s because its loaded well... Any suggestion?
« Last Edit: 2014-06-04, 14:15:11 by NetMajom »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #11 on: 2014-06-04, 17:30:16 »
I didn't understand with 'randomize FORGET the pdo -s'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline NetMajom

  • Valuable Member
  • *
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Fatal Error
« Reply #12 on: 2014-06-04, 19:24:37 »
It mean, the PDO-s are loaded well, and its working, But every morning i have an error message all of my sites

Fatal error: Class 'PDO' not found in includes/database/database.inc on line 187

I read many articles in google, and all of the suggestions wrote, that this error message mean the PDO-s are not loaded.

I checked all of the files/settings in my dedicated server, and i see, that the PDO-s are working, and loaded well (all of them), but randomize the server "forget" to load the PDO-s and all of the sites are going to be fatal error, and the webmails too...

I have check the server logs, but there arent any informations about that error.

So, it is very strange, that the server is working perfectly, but randomize it is forget to load the extension pdo-s

My solution, that if i do an 'sh /script/restart-all' and if i had an PDO error before, everything is going to be Normal, but that is nonsense (to restart every time when the problem exist), and i dont know how can i "repair" that strange problem!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #13 on: 2014-06-04, 20:11:39 »
In 'advanced php configiure' (server, admin and client level), change 'memory limit' to '128M'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fatal Error
« Reply #14 on: 2014-06-04, 20:12:46 »
Like I said before, your server need optimized.
..:: 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.07 seconds with 18 queries.

web stats analysis