Skip to content

Instantly share code, notes, and snippets.

<Directory "/www/sites">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
<VirtualHost *:80>
VirtualDocumentRoot /www/sites/%0/
</VirtualHost>
@maaarghk
maaarghk / ballache.md
Last active August 22, 2017 23:16
Dual PHP - Run PHP 5.3 using mod_php and PHP 5.6 using php_fpm on Apache 2.2, as distributed by CentOS 6.5. Also tested on CentOS 6.3!

Dual PHP - Apache 2.2 running PHP 5.3 mod_php and PHP 5.6 php_fpm on CentOS 6.5

Introduction

We have a CentOS 6.5 server in production, running sites which are not compatible with PHP 5.4+. For this reason, we are running Apache 2.2 + PHP 5.3 (mod_php). We also run some newer sites on the server and we would like to run them on PHP 5.6 in order to take advantage of the performance improvements which have been realised in the newer versions of PHP. To minimize pain, we will run both versions side by side. This will require mod_php to be overridden in the VirtualHost by mod_fastcgi. We will install PHP 5.6 FPM to achieve this.

This procedure has also been tested and works on an up to date install of CentOS 6.3!

@maaarghk
maaarghk / sof-log-20200930
Created September 30, 2020 11:18
firmware 1.6 bitcrush issue
Sep 30 11:46:00 applecross kernel: PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Sep 30 11:46:00 applecross kernel: software IO TLB: mapped [mem 0x4755a000-0x4b55a000] (64MB)
Sep 30 11:46:00 applecross systemd[1]: Listening on LVM2 metadata daemon socket.
Sep 30 11:46:00 applecross systemd[1]: Listening on LVM2 poll daemon socket.
Sep 30 11:46:01 applecross kernel: snd: loading out-of-tree module taints kernel.
Sep 30 11:46:01 applecross kernel: snd: module verification failed: signature and/or required key missing - tainting kernel
Sep 30 11:46:01 applecross kernel: snd-soc-dummy snd-soc-dummy: ASoC: dynamically register DAI snd-soc-dummy
Sep 30 11:46:01 applecross kernel: snd-soc-dummy snd-soc-dummy: ASoC: Registered DAI 'snd-soc-dummy-dai'
Sep 30 11:46:02 applecross kernel: sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
Sep 30 11:46:02 applecross kernel: sof-audio-pci 0000:00:1f.3: PCI DSP detected