If we have a problem with reading/writing in Cyrillic on terminal, for example xfce4-terminal, probably we do not have a support for en_US.utf8 locale.
First we must check our locales list with:
root@debian:~# locale -a
If output is something like this:
We are missing “en_US.utf8” locale and here is our problem with the Cyrillic.
So lets install “locales” if its not already installed on the system.
root@debian:~# apt-get install locales
Now we have to make “en_US.utf8” default locale for our system. But first lets make locale-gen for en_Us. For that purpose run:
root@debian:~# locale-gen en_US en_US.UTF-8
root@debian:~# dpkg-reconfigure locales
In the new window opened, find “en_US.UTF-8 UTF8” select it and click OK.
Chose “en_US.UTF-8” as default locale for the system environment and click OK.
We have to see “Generation complete.”
Reboot, and now we can read Cyrillic in our terminal.
Proceed with the following steps:
- Install dependencies
aptitude install apache2-dbg libapr1-dbg libaprutil1-dbg
- Add in the beginning of script ‘/etc/init.d/apache2’, the following:
# set ulimit for debugging
ulimit -c unlimited
- Add in to “/etc/apache2/httpd.conf”:
# 20150129 add coredump to investigate the "Segmentation fault" event
- Create the folder and set proper permissions:
chown www-data:www-data /tmp/apache2_coredump
chmod 777 /tmp/apache2_coredump
- Test apache2 configuration for errors:
- If there are no errors, restart the apache2 server:
- When you see this in error_log:
[Thu Feb 05 10:44:06 2015] [notice] child pid 5886 exit signal Segmentation fault (11),
possible coredump in /tmp/apache2_coredump
you will be able to extract useful information from coredump:
gdb apache2 /tmp/apache2_coredump/core
The guide was borrowed from: jrs-s.net