Exception: Serialization of ‘Mage_Core_Model_Config_Element’ is not allowed
if you get the Error above by executing Magento Unittest look at your Configuration Options for PHPUnit. backupStaticAttributes must set to false.
if you get the Error above by executing Magento Unittest look at your Configuration Options for PHPUnit. backupStaticAttributes must set to false.
For my work I have developed a little shellscript to configure and install my php installations:
My folder Structure is like following:
/usr/local/bin/php/phpversion
There is a symlink to current phpversion:
/usr/local/bin/php/current -> /usr/local/bin/php/phpversion
The Script configure php with some standard flags and create the binary files in the folders above:
#!/bin/bash EXTENSION_DIR="/usr/local/bin/php/$1/extensions" if [ $# -lt 1 ]; then echo "Usage: $0 php5.3.2 [more options for php configure]" exit; fi if [ -d /usr/local/bin/php/$1/ ]; then mkdir /usr/local/bin/php/$1 fi OPTIONS="$2" OPTIONS="--without-pear --with-pdo-mysql --with-mysql --with-mysqli --without-pear --enable-force-cgi-redirect $OPTIONS" cd $1 ./configure --prefix=/usr/local/bin/php/$1 $OPTIONS if [ "$?" -eq "0" ]; then make make install fi if [ -d "$EXTENSION_DIR" ]; then mkdir -p $EXTENSION_DIR fi |
you can pass additional configure arguments as second parameter to the script.
Usage
Now I share the script on github:
https://github.com/Forestsoft-de/forestsoft/tree/master/bash/php
Today I had an issue about the shared memory for my apache server. It want reserve memory for a fcgid process and stop with message:
No space left on device: mod_fcgid: Can’t create shared memory for size
After a liittle bit research i´ve found out that one of my customers locked over 4000 processes with such 1024bytes of shared memory. These commands delete these locks:
ipcs | awk '/username/ { print $2 }' > ~/ipcid.log for i in `cat ~/ipcid.log`; do ipcrm -m $i; done |