Portal Home > Knowledgebase > Articles Database > Internal Server Error


Internal Server Error




Posted by mbekhit, 09-17-2014, 10:10 AM
i always have Internal Server Error in websites on my server Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@sohofkhana.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.4.10 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fcgid/2.3.9 Server at sohofkhana.com Port 80 this is error log [Wed Sep 17 14:44:47.542516 2014] [fcgid:warn] [pid 8564] mod_fcgid: process 20386 graceful kill fail, sending SIGKILL [Wed Sep 17 14:45:41.457562 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getDBO() $ [Wed Sep 17 14:45:41.457608 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JTable::getInstance$ [Wed Sep 17 14:45:41.457617 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getDBO() $ [Wed Sep 17 14:45:41.457624 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JoomFishManager::ge$ [Wed Sep 17 14:45:41.457641 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JoomFishManager::ge$ [Wed Sep 17 14:45:41.457649 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getConfig$ [Wed Sep 17 14:45:41.457656 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JLoader::import() s$ [Wed Sep 17 14:45:41.457663 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JClientHelper::getC$ [Wed Sep 17 14:45:41.457670 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getConfig$ [Wed Sep 17 14:45:41.457677 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getLangua$ [Wed Sep 17 14:45:41.457684 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JoomFishManager::ge$ [Wed Sep 17 14:45:41.457691 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getConfig$ [Wed Sep 17 14:45:41.457698 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getLangua$ [Wed Sep 17 14:45:41.457706 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JFactory::getConfig$ [Wed Sep 17 14:45:41.457713 2014] [fcgid:warn] [pid 20278] [client 183.60.215.56:35585] mod_fcgid: stderr: PHP Strict Standards: Non-static method JoomFishManager::ge$ [Wed Sep 17 14:45:50.350187 2014] [fcgid:warn] [pid 20349] (32)Broken pipe: [client 41.36.173.38:12599] mod_fcgid: ap_pass_brigade failed in handle_request_ipc functio$ [Wed Sep 17 14:46:07.347868 2014] [fcgid:warn] [pid 21239] (32)Broken pipe: [client 41.130.178.28:51416] mod_fcgid: ap_pass_brigade failed in handle_request_ipc functi$ [Wed Sep 17 14:46:39.335008 2014] [fcgid:warn] [pid 22163] (32)Broken pipe: [client 117.218.173.236:49638] mod_fcgid: ap_pass_brigade failed in handle_request_ipc func$ [Wed Sep 17 14:46:48.070928 2014] [fcgid:warn] [pid 20986] [client 41.130.178.28:51434] mod_fcgid: read data timeout in 40 seconds, referer: http://www.swishschool.inf$ [Wed Sep 17 14:46:48.071001 2014] [core:error] [pid 20986] [client 41.130.178.28:51434] End of script output before headers: do.php, referer: http://www.swishschool.in$ [Wed Sep 17 14:46:54.452923 2014] [fcgid:warn] [pid 22082] [client 41.130.178.28:51435] mod_fcgid: read data timeout in 40 seconds, referer: http://www.swishschool.inf$ [Wed Sep 17 14:46:54.452991 2014] [core:error] [pid 22082] [client 41.130.178.28:51435] End of script output before headers: do.php, referer: http://www.swishschool.in$ [Wed Sep 17 14:46:59.662643 2014] [fcgid:warn] [pid 16962] (32)Broken pipe: [client 41.130.178.28:51438] mod_fcgid: ap_pass_brigade failed in handle_request_ipc functi$ [Wed Sep 17 14:47:00.812822 2014] [fcgid:warn] [pid 20980] (32)Broken pipe: [client 41.130.178.28:51439] mod_fcgid: ap_pass_brigade failed in handle_request_ipc functi$ [Wed Sep 17 14:47:01.126168 2014] [fcgid:warn] [pid 22088] (104)Connection reset by peer: [client 41.130.178.28:51433] mod_fcgid: ap_pass_brigade failed in handle_requ$ [Wed Sep 17 14:47:05.202309 2014] [fcgid:warn] [pid 21230] (104)Connection reset by peer: [client 41.130.178.28:51443] mod_fcgid: ap_pass_brigade failed in handle_requ$ [Wed Sep 17 14:47:24.791823 2014] [fcgid:warn] [pid 23242] (32)Broken pipe: [client 74.112.131.244:54124] mod_fcgid: ap_pass_brigade failed in handle_request_ipc funct$ [Wed Sep 17 14:47:41.565930 2014] [fcgid:warn] [pid 22093] [client 41.36.173.38:12743] mod_fcgid: read data timeout in 40 seconds [Wed Sep 17 14:47:41.566007 2014] [core:error] [pid 22093] [client 41.36.173.38:12743] End of script output before headers: index.php [Wed Sep 17 14:47:46.842881 2014] [fcgid:warn] [pid 14459] [client 69.30.254.162:57043] mod_fcgid: read data timeout in 40 seconds [Wed Sep 17 14:47:46.842974 2014] [core:error] [pid 14459] [client 69.30.254.162:57043] End of script output before headers: index.php [Wed Sep 17 14:47:53.537434 2014] [fcgid:warn] [pid 8564] mod_fcgid: process 20359 graceful kill fail, sending SIGKILL [Wed Sep 17 14:47:53.537522 2014] [fcgid:warn] [pid 8564] mod_fcgid: process 22121 graceful kill fail, sending SIGKILL and i have sumit ticket to Cpanel and replay me that : " From the log you pasted, these are the errors I see related to that IP: [Wed Sep 17 14:45:50.350187 2014] [fcgid:warn] [pid 20349] (32)Broken pipe: [client 41.36.173.38:12599] mod_fcgid: ap_pass_brigade failed in handle_request_ipc functio$ [Wed Sep 17 14:47:41.565930 2014] [fcgid:warn] [pid 22093] [client 41.36.173.38:12743] mod_fcgid: read data timeout in 40 seconds [Wed Sep 17 14:47:41.566007 2014] [core:error] [pid 22093] [client 41.36.173.38:12743] End of script output before headers: index.php You may want to adjust your fcgid configuration or change to another PHP handler to see if this issue persists. " i don't know what i can do now or the best setting

Posted by Johnny Cache, 09-17-2014, 10:53 AM
Your site seems to work at this time, were you able to repair this?

Posted by mbekhit, 09-17-2014, 11:45 AM
i get this problem more time and if i make refresh more time it disappear ; not always you can show it

Posted by AdroitSSD LLC, 09-17-2014, 12:07 PM
Check your memory. Is it out of memory when you facing the issue.

Posted by my247webhosting, 09-17-2014, 03:08 PM
Recompile php and apache in server with php 5.3 and also set apache in prefork mode with basic needed modules it should help you fix it

Posted by I-Hosting, 09-17-2014, 03:10 PM
Also change your php handler to suphp or DSO

Posted by mbekhit, 09-18-2014, 06:55 AM
System information Server load 10.97 (4 CPUs) Memory Used 27.73% (2,004,928 of 7,231,444) Swap Used 83.72% (3,511,536 of 4,194,288)

Posted by mbekhit, 09-18-2014, 07:20 AM
5.3.29 END OF LIFE

Posted by Srv24x7, 09-18-2014, 09:49 AM
Hi, It seems to be PHP compatibility issues. You will have to stick to same PHP that it worked on. cPanel will remove PHP 5.3 from their repository soon, so its better to switch back to PHP 5.3. Other option is having multiple PHP or cloudlinux installed.

Posted by virtono, 09-18-2014, 10:01 AM
Do you have Cloudlinux installed? try to give more memory from your LVE settings. Also you should try to recompile your PHP and pay attention at the modules /extensions you are installing, maybe that's the problem. You can change to SuPHP from FCGI . A good idea is to install PHP selector from cloudlinux.

Posted by FRH Lisa, 09-18-2014, 12:37 PM
That right there is a sign of a deeply troubled system. None of those things by itself indicates a problem, but a high CPU load and heavy swap use together tell me that something isn't behaving correctly. Put very very simply, your CPU load gives you a rough indication of how much CPU you're using. With 4 CPUs, a load of 4.0 means you're using 100% of each CPU. A load of 2.0 means you're using half your CPU power. A load of 10.97 indicates you're trying to use more CPU power than you have, and processes are waiting in line for CPU attention. This isn't always a sure-fire measure of system stability, but it's a good first place to look. Also, when you dip into swap, you take a tremendous performance hit. Swap should be viewed as a last-ditch effort to prevent your server from crashing from memory exhaustion. It should not be used on a regular basis. Most systems will survive with temporary high load and temporary use of swap, but if those numbers are common for you, your environment needs tuning. If you've done all the performance optimization (both server side AND app side) you can, you may simply have outgrown whatever method of hosting (shared, VPS, etc) you're currently using.

Posted by critihost, 09-18-2014, 08:47 PM
What's odd to me is the low memory usage + high swap usage. It would be worth looking into that further, iowait iotop etc could be helpful to see if you're hitting a disk issue but it seems more like memory causing that issue. Within cPanel Daily process log, and process manager could be helpful as well. What I would imagine is that you are having memory usage spikes to over the total amount due to a configuration problem (could be apache, mySQL or PHP most likely but anything is possible). Are you on a VPS (what kind) or dedicated? If you have any monitoring software running a graph my be helpful to see if you're just missing what's happening during the spike.

Posted by Kailash12, 09-19-2014, 01:41 AM
Your VPS/Dedicated server has enough free memory but yet it using large swap and this can cause performance issue as well as high CPU usage due to disk IO. You should first find the root cause of this issue and also monitor the processes which are using high CPU. You may need to optimize your website as well. If you are on VPS, it is possible that main node in oversold by the provider.

Posted by mbekhit, 09-20-2014, 07:41 AM
i running on dedicated sever what the best way to monitor the server and know what case the problem ?

Posted by mbekhit, 09-20-2014, 08:23 AM
CENTOS 6.5 x86_64 xenpv – host This my Apache Setting: Apache 2.4.10 PHP 5.4.32 Short Options List screenshot https://www.dropbox.com/s/n86sttlo8z...sList.jpg?dl=0 Exhaustive Options List screenshot https://www.dropbox.com/s/ilmer9kybj...sList.jpg?dl=0 Mysql Stting: [mysql] # CLIENT # port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld] # GENERAL # user = mysql default-storage-engine = InnoDB socket = /var/lib/mysql/mysql.sock pid-file = /var/lib/mysql/mysql.pid # MyISAM # key-buffer-size = 32M myisam-recover = FORCE,BACKUP # SAFETY # max-allowed-packet = 16M max-connect-errors = 1000000 skip-name-resolve sql-mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL _GROUP_BY sysdate-is-now = 1 innodb = FORCE innodb-strict-mode = 1 # DATA STORAGE # datadir = /var/lib/mysql/ # BINARY LOGGING # log-bin = /var/lib/mysql/mysql-bin expire-logs-days = 14 sync-binlog = 1 # CACHES AND LIMITS # tmp-table-size = 32M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 0 max-connections = 500 thread-cache-size = 50 open-files-limit = 65535 table-definition-cache = 4096 table-open-cache = 10240 # INNODB # innodb-flush-method = O_DIRECT innodb-log-files-in-group = 2 innodb-log-file-size = 256M innodb-flush-log-at-trx-commit = 1 innodb-file-per-table = 1 innodb-buffer-pool-size = 6G # LOGGING # log-error = /var/lib/mysql/mysql-error.log log-queries-not-using-indexes = 1 slow-query-log = 1 slow-query-log-file = /var/lib/mysql/mysql-slow.log

Posted by johnduper, 09-21-2014, 04:06 AM
upgrade php and see the timeout in php conf file.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.