Configure Apache for core dump on segmentation faults
2012-10-22 14:02
507 查看
Configure Apache for core dump on segmentation faults
Filed under: Cpanel, General, WHM — 1Comment
July
26, 2010
Rate This
Sometimes it is noticed that apache logs is generating segmentation faults and is crashing and all or some PHP pages are showing blank when you browse them. Check the apache error logs:
[Mon July 26 11:20:09 2010] [notice] child pid 9876 exit signal Segmentation fault (11)
[b][Mon July 26 11:20:09 2010][notice] child pid 9866 exit signal Segmentation fault (11)
[Mon July 26 11:20:09 2010] [notice] child pid 9983 exit signal Segmentation fault (11)[/b]
Apache supports CoreDumpDirectory directive. This controls the directory to which Apache attempts to switch before dumping core.In order to solve this error you can follow following steps.
1) Login to the server as root.
2) We will need to edit the apache’s main configuration file for this.
[root@server~]# vi /etc/httpd/conf/httpd.conf
3) Add following line in the main config.
CoreDumpDirectory /tmp/apache2-gdb-dump
4) create the respective folder in /tmp.
root@server [~]# mkdir -p /tmp/apache2-gdb-dump
5) Lets configure the permissions for the folder.
[root@server ~] # chmod 0777 /tmp/apache2-gdb-dump
[root@server~]# chown user.group /tmp/apache2-gdb-dump
Note: you Please can replace owner and group owner as per your requirement.
6) You can also make changes to following file if required.
root@server [~] vi /usr/sbin/httpd
7) Locate the lines which say “ulimit” and add the “ulimit -c 0″ line below all these entries.
ulimit -n 1024
ulimit -n 4096
ulimit -n 8192
ulimit -n 16384
ulimit -c 0
8 ) Once done just restart the apache service.
root@server [~] /etc/init.d/httpd restart
This should help you to eliminate the error.
相关文章推荐
- The tag handler class for "c:set"(org.apache.taglibs.standard.tag.rt.core.UrlTag)was not found on the Java Build Path
- Configure SSL for Secure Websites Using Apache 2 on Ubuntu 10.10
- The tag handler class for "c:forEach" (org.apache.taglibs.standard.tag.rt.core.ForEachTag) was not found on the Java Build Path
- Core Dump Management on the Solaris OS
- 实时语义分割--ICNet for Real-Time Semantic Segmentation on High-Resolution Images
- Java SSH工程报错 Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD suppo
- Installing Apache, PHP, and MySQL on Fedora Core
- How To Create a SSL Certificate on Apache for Debian 7 |htttps
- PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
- Install and configure a ready for use subversion based on fedora
- [ICME 2014, paperId 293]AN APPROACH FOR FAST AND PARALLEL VIDEO PROCESSING ON APACHE HADOOP CLUSTERS
- segmentation fault core dump
- Configure Always On Availability Group for SQL Server on RHEL——Red Hat Enterprise Linux上配置SQL Server Always On Availability Group
- Core_Dump for Linux and Windows
- Simple Tutorial for installing Apache, PHP, MySQL and phpMyAdmin on Ubuntu
- Semantic Segmentation--ICNet for Real-Time Semantic Segmentation on High-Resolution Images论文解读
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- Semantic Segmentation--ICNet for Real-Time Semantic Segmentation on High-Resolution Images论文解读
- Howto Install and Configure Doxygen for QtCreator on Ubuntu
- Eclipse 运行崩溃 报错 Failed to write core dump. Minidumps are not enabled by default on client versions解决