php5-fpm not working on raspberian

I could install the php5-fpm package on my current raspberian, but it always stops with a SIGSEV (Segmentation fault).

As strace did not give me any hints, running it with gdb tells me the following:


root@raspberrypi:~# gdb php5-fpm
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/php5-fpm...(no debugging symbols found)...done.
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n

Starting program: /usr/sbin/php5-fpm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x401264c0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) bt
#0 0x401264c0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
Cannot access memory at address 0x0
#1 0x40122ee4 in OPENSSL_cpuid_setup ()
from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#2 0x4000f250 in ?? () from /lib/ld-linux-armhf.so.3
#3 0xbefffe20 in ?? ()
Cannot access memory at address 0x0
#4 0xbefffe20 in ?? ()
Cannot access memory at address 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) cont
Continuing.

Program received signal SIGILL, Illegal instruction.
0x401264c8 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) cont
Continuing.
Cannot access memory at address 0x0

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x002ad0e0 in zend_register_ini_entries ()
#2 0x00000000 in ?? ()

I found the following bug report at bugs.php.net but I don’t know if this is really the issue.

Ubuntu 12.04 LTS released

“Imagination is as vital to any advance in science as learning and
precision are essential for starting points.”   - Percival Lowell

The Ubuntu team is very pleased to announce the release of Ubuntu 12.04 LTS
(Long-Term Support) for Desktop, Server, Cloud, and Core products.

Codenamed “Precise Pangolin”, 12.04 continues Ubuntu’s proud tradition
of integrating the latest and greatest open source technologies into a
high-quality, easy-to-use Linux distribution.  The team has been hard
at work through this cycle, introducing a few new features and improving
quality control.

Continue reading

Updates and WordPress update

Again a lot of updates, especially for php5 and wordpress jumped to 3.3.

13 packages can be updated.
13 updates are security updates.

aptitude safe-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
The following packages will be upgraded:
  bzip2 libapache2-mod-php5 libbz2-1.0 php-pear php5 php5-cgi php5-cli 
  php5-common php5-curl php5-dev php5-gd php5-mysql php5-pgsql 
13 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.3MB of archives. After unpacking 0B will be used.

End of support for Ubuntu 10.04 (Lucid Lynx) Netbook and ARM

Ubuntu announced the 10.04 Netbook Edition and Ubuntu for ARM products
18 months ago, on April 29, 2010. At that time, Ubuntu committed to
ongoing security and critical fixes for a period of 18 months for these
specific products.

This support period is now ending, and on October 29, 2011 the 10.04
Netbook Edition and Ubuntu for ARM products will no longer be supported.
Ubuntu 10.04 LTS Desktop and Server products continue to be supported.

The upgrade path from Ubuntu 10.04 Netbook and ARM is to Ubuntu 10.10.
Instructions and caveats for the upgrade may be found at

https://help.ubuntu.com/community/MaverickUpgrades.

Ubuntu 10.04 LTS for Desktop and Server products continues to be
actively supported with security updates and select high-impact bug
fixes. All announcements of official security updates for Ubuntu
releases are sent to the ubuntu-security-announce mailing list,
information about which may be found at

https://lists.ubuntu.com/mailman/listinfo/ubuntu-security-announce.

Since its launch in October 2004 Ubuntu has become one of the most
highly regarded Linux distributions with millions of users in homes,
schools, businesses and governments around the world. Ubuntu is Open
Source software, costs nothing to download, and users are free to
customise or alter their software in order to meet their needs.

Kate Stewart,
Ubuntu Release Manager

Ubuntu Security Notice USN-1231-1 October 18, 2011 php5 vulnerabilities

==========================================================================
Ubuntu Security Notice USN-1231-1
October 18, 2011

php5 vulnerabilities
==========================================================================

A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 11.10
- Ubuntu 11.04
- Ubuntu 10.10
- Ubuntu 10.04 LTS
- Ubuntu 8.04 LTS

Summary:

Several security issues were fixed in PHP.

Software Description:
- php5: HTML-embedded scripting language interpreter

Continue reading

Ubuntu 11.10 (Oneiric Ocelot) released!!

“There is nothing like a dream to create the future.” – Victor Hugo

The Ubuntu team is pleased to announce Ubuntu 11.10, code-named
“Oneiric Ocelot”. 11.10 continues Ubuntu’s proud tradition of
integrating the latest and greatest open source technologies
into a high-quality, easy-to-use Linux distribution.

Continue reading

DIY: Location mapping Part 3 – Google Earth live updates

Trails Munich Horizon

Trails Munich Horizon

This is part 3 of the DIY Location mapping. This time we will integrate with google earth to see live updates from our devices, we tracked with part 1.

Therefore I have had the tracking running for some days with an update interval of 15 minutes, so that I does not drain my battery too much. By enhancing the update frequency you will get fine grained location data.

We need to add the following PHP script to deliver a valid KML file, which is loaded by another KML file. The second KML file is loaded into Google Earth and does poll data via the PHP scripts to enable the live updates. Continue reading

DIY: Location mapping Part 1 – Getting the location data

Location based services needs to be switched on

Location based services needs to be switched on

Inspired by the question in the http://fanbóys.org/ podcast, I will write down, what I have up and running for over two years now.

Goal: Have a background method running, which collects your location during the day and displays it on a map and has some export functionality.

Ingredients: An Apple iPhone, an Apple ID, activated Find My iPhone, a LAMP system and additional Google Maps. Continue reading

Rescue mission

I had three primary partitions on my hard-drive:

  1. Win7 NTFS (300G)
  2. linux /  (600G)
  3. linux swap (30G)

As I needed more space on Win7 I deleted the second partition inside windows and grow the NTFS to incorporate the free space. Worked fine until the next reboot. This what I saw then:

grub rescue

grub rescue

Continue reading

How to setup nginx varnish apache on a CentOS

This small script does install all necessary parts to get nginx, varnish and apache running on your CentOS:

yum install screen sysstat net-snmp htop
rpm --nosignature -i http://repo.varnish-cache.org/redhat/el5/noarch/varnish-release-2.1-2.noarch.rpm
yum install varnish
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5-4.noarch.rpm 
yum install nginx
chkconfig varnish on
chkconfig httpd on
chkconfig nginx on
vi /etc/nginx/nginx.conf
vi /etc/nginx/conf.d/virtual.conf 
vi /etc/varnish/default.vcl 
vi /etc/httpd/conf/httpd.conf

htop

I like this version of top most:

  1  [|                         1.3%]     Tasks: 197 total, 1 running
  2  [|                         1.1%]     Load average: 0.30 0.31 0.25 
  3  [                          0.0%]     Uptime: 59 days, 00:50:09
  4  [|                         1.3%]
  5  [                          0.0%]
  6  [                          0.0%]
  7  [                          0.0%]
  8  [                          0.0%]
  Mem[|||||||||||||||||||1760/7995MB]
  Swp[|                    16/4100MB]

  PID USER     PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root      20   0 23692  1736  1232 S  0.0  0.0  0:04.56 /sbin/init
30572 proxy     20   0 28768  6860  1860 S  0.0  0.1  0:53.03  `- /usr/sbin/squi
30573 proxy     20   0  3860   428   340 S  0.0  0.0  0:00.07  |   `- (unlinkd)
28675 root      20   0 28412  1288   320 S  0.0  0.0  0:00.00  `- nginx: master
28677 www-data  20   0 29180  2812   940 S  0.0  0.0  0:31.35  |   `- nginx: wor
28676 www-data  20   0 29180  2808   936 S  0.0  0.0  0:33.21  |   `- nginx: wor
28345 bind      20   0  273M 68152  2404 S  0.0  0.8  0:00.01  `- /usr/sbin/name
28355 bind      20   0  273M 68152  2404 S  0.0  0.8  1:32.96  |   `- /usr/sbin/
28354 bind      20   0  273M 68152  2404 S  0.0  0.8  0:04.61  |   `- /usr/sbin/
28353 bind      20   0  273M 68152  2404 S  0.0  0.8  1:00.34  |   `- /usr/sbin/
F1Help  F2Setup F3SearchF4InvertF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit

How to renew SSL certificates for courier pop3 and imap server on Debian or Ubuntu?

This articles describes the renewal of SSL certificates for courier pop3 and imap server. This is nescessary e.g. when the certificates are expired or contain the wrong hostname.

First delete the exsiting certificates:

rm -f /etc/courier/imapd.pem
rm -f /etc/courier/pop3d.pem

Then edit the template that contains the details for the ecrtificates so that the hostname in the certificate matches the hsotanme of your server and that the email address matches your postmaster email address:

vi /etc/courier/imapd.cnf
vi /etc/courier/pop3d.cnf

and create the new certificates:

mkimapdcert
mkpop3dcert

Courier pop3 and imap have to be restarted so they pick up the new certificates:

/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop-ssl restart

Ubuntu 10.04.3 LTS released

“Be brief, be pointed, let your matter stand lucid in order, solid and
at hand; spend not your words on trifles but condense; strike with the
mass of thought, not drops of sense; press to the close with vigor,
once begun, and leave – how hard the task” – Joseph Story

The Ubuntu team is proud to announce the release of Ubuntu 10.04.3 LTS,
the third maintenance update to Ubuntu’s 10.04 LTS release. This
release includes updated server, desktop, alternate installation CDs
and DVDs for the i386 and amd64 architectures.

Continue reading

Switched to nginx varnish apache

Today I switched from the normal LAMP stack to the NVA Nginx Varnish Apache stack.

Tweaks needed are the following in PHP:

if (IsSet($_SERVER['HTTP_X_REAL_IP'])) {
  $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'];
}

and setting the proxy stuff in piwik

proxy_client_headers[] = HTTP_X_REAL_IP

Updates


19 packages can be updated.
13 updates are security updates.

The following packages will be upgraded:
apt apt-transport-https apt-utils bind9 bind9-host bind9utils dnsutils
initscripts libbind9-60 libdns64 libisc60 libisccc60 libisccfg60
liblwres60 libpam-modules libpam-runtime libpam0g sysv-rc sysvinit-utils
19 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,758kB of archives. After unpacking 12.3kB will be used.

Updates


11 packages can be updated.
11 updates are security updates.
The following packages will be upgraded:
libapache2-mod-php5 php-pear php5 php5-cgi php5-cli php5-common php5-curl
php5-dev php5-gd php5-mysql php5-pgsql
11 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2MB of archives. After unpacking 36.9kB will be used.

11 packages can be updated.
11 updates are security updates.
The following packages will be upgraded:
libapache2-mod-php5 php-pear php5 php5-cgi php5-cli php5-common php5-curl
php5-dev php5-gd php5-mysql php5-pgsql
11 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2MB of archives. After unpacking 36.9kB will be used.

Updates

Updated to WordPress 3.1.2 and the following ubuntu updates

5 packages can be updated.
1 update is a security update.

The following packages will be upgraded:
grub-common grub-pc linux-firmware rsync tzdata
5 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.1MB of archives. After unpacking 582kB will be used.

Updates


19 packages can be updated.
7 updates are security updates.

The following packages will be upgraded:
dhcp3-client dhcp3-common initscripts libgssapi-krb5-2 libk5crypto3
libkrb5-3 libkrb5support0 libpq5 libtiff4 ntp ntpdate postgresql
postgresql-8.4 postgresql-client postgresql-client-8.4 postgresql-contrib
postgresql-contrib-8.4 sysv-rc sysvinit-utils
19 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,763kB of archives. After unpacking 8,192B will be used.

19 packages can be updated.
7 updates are security updates.

The following packages will be upgraded:
dhcp3-client dhcp3-common initscripts libgssapi-krb5-2 libk5crypto3
libkrb5-3 libkrb5support0 libpq5 libtiff4 ntp ntpdate postgresql
postgresql-8.4 postgresql-client postgresql-client-8.4 postgresql-contrib
postgresql-contrib-8.4 sysv-rc sysvinit-utils
19 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,763kB of archives. After unpacking 8,192B will be used.